rendered paste bodysub_10B1A1A0 proc near ; CODE XREF: sub_10B1A320+3Ap
.text:10B1A1A0 ; sub_10B1A970+D3p ...
.text:10B1A1A0
.text:10B1A1A0 var_1E = byte ptr -1Eh
.text:10B1A1A0 var_1A = byte ptr -1Ah
.text:10B1A1A0 var_19 = byte ptr -19h
.text:10B1A1A0 var_9 = dword ptr -9
.text:10B1A1A0 var_4 = dword ptr -4
.text:10B1A1A0 arg_0 = dword ptr 4
.text:10B1A1A0 arg_4 = dword ptr 8
.text:10B1A1A0
.text:10B1A1A0 sub esp, 0Ch
.text:10B1A1A3 push ebx
.text:10B1A1A4 push esi
.text:10B1A1A5 mov esi, [esp+14h+arg_0]
.text:10B1A1A9 test esi, esi
.text:10B1A1AB mov ebx, ecx
.text:10B1A1AD jz loc_10B1A2DE
.text:10B1A1B3 mov eax, [esi+0ECh]
.text:10B1A1B9 test eax, eax
.text:10B1A1BB jnz short loc_10B1A1C1
.text:10B1A1BD xor ecx, ecx
.text:10B1A1BF jmp short loc_10B1A1C7
.text:10B1A1C1 ; ---------------------------------------------------------------------------
.text:10B1A1C1
.text:10B1A1C1 loc_10B1A1C1: ; CODE XREF: sub_10B1A1A0+1Bj
.text:10B1A1C1 mov ecx, [esi+0E8h]
.text:10B1A1C7
.text:10B1A1C7 loc_10B1A1C7: ; CODE XREF: sub_10B1A1A0+1Fj
.text:10B1A1C7 push ebp
.text:10B1A1C8 push edi
.text:10B1A1C9 lea eax, [esp+1Ch+var_9]
.text:10B1A1CD push eax
.text:10B1A1CE push 20000B5h
.text:10B1A1D3 mov byte ptr [esp+24h+var_9], 0
.text:10B1A1D8 call sub_10971680
.text:10B1A1DD movzx eax, byte ptr [esp+1Ch+var_9]
.text:10B1A1E2 lea ecx, [eax+eax*2]
.text:10B1A1E5 lea ebp, [ebx+ecx*4]
.text:10B1A1E8 mov ecx, [ebp+4]
.text:10B1A1EB mov edi, 1
.text:10B1A1F0 cmp ecx, edi
.text:10B1A1F2 jle loc_10B1A2DC
.text:10B1A1F8 mov eax, [ebp+0Ch]
.text:10B1A1FB add eax, 0Ch
.text:10B1A1FE mov edi, edi
.text:10B1A200
.text:10B1A200 loc_10B1A200: ; CODE XREF: sub_10B1A1A0+71j
.text:10B1A200 mov edx, [eax]
.text:10B1A202 test edx, edx
.text:10B1A204 jz short loc_10B1A20B
.text:10B1A206 cmp [edx+24h], esi
.text:10B1A209 jz short loc_10B1A21D
.text:10B1A20B
.text:10B1A20B loc_10B1A20B: ; CODE XREF: sub_10B1A1A0+64j
.text:10B1A20B inc edi
.text:10B1A20C add eax, 0Ch
.text:10B1A20F cmp edi, ecx
.text:10B1A211 jl short loc_10B1A200
.text:10B1A213 pop edi
.text:10B1A214 pop ebp
.text:10B1A215 pop esi
.text:10B1A216 pop ebx
.text:10B1A217 add esp, 0Ch
.text:10B1A21A retn 8
.text:10B1A21D ; ---------------------------------------------------------------------------
.text:10B1A21D
.text:10B1A21D loc_10B1A21D: ; CODE XREF: sub_10B1A1A0+69j
.text:10B1A21D mov edx, [ebp+0Ch]
.text:10B1A220 mov ecx, [esp+1Ch+arg_4]
.text:10B1A224 lea esi, [edi+edi*2]
.text:10B1A227 shl esi, 2
.text:10B1A22A lea eax, [edx+esi+4]
.text:10B1A22E cmp [eax], ecx
.text:10B1A230 jge short loc_10B1A23A
.text:10B1A232 mov dword ptr [eax], 0
.text:10B1A238 jmp short loc_10B1A23C
.text:10B1A23A ; ---------------------------------------------------------------------------
.text:10B1A23A
.text:10B1A23A loc_10B1A23A: ; CODE XREF: sub_10B1A1A0+90j
.text:10B1A23A sub [eax], ecx