Function at 0x1005acb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x1d20
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x1d1c], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x1d44]
mov eax, dword [esp + 0x1d38]
mov ecx, dword [esp + 0x1d40]
mov dword [esp + 0x64], edx
lea edx, [esp + 0xa8]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x10]
shr edx, 1
mov dword [esp + 0x88], edx
mov ebp, dword [esp + 0x1d34]
mov edx, dword [ebp + 0x10]
shr edx, 1
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x1d50]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x1d4c]
imul ecx, dword [esp + 0x8c]
add edx, 0xfffffff0
mov edi, dword [esp + 0x1d48]
imul edi, dword [esp + 0x4c]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub edx, dword [esp + 0x58]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x64]
sub eax, ebp
inc eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x18]
add ecx, edi
inc edx
xor ebx, ebx
lea ecx, [eax + ecx*2]
lea esi, [esp + 0x42c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xa4], ecx
cmp edx, 0x640
jle 0x1005ada9
add edx, edx
add edx, edx
push edx
call sub.MSVCR100.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x1005ade4
mov edi, ebp
imul edi, dword [esp + 0x58]
cmp edi, 0xe1
jle 0x1005adee
lea eax, [edi*4]
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
jne 0x1005adf2
lea ecx, [esp + 0x42c]
cmp esi, ecx
je 0x1005ade4
push esi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, 1
jmp 0x1005bf44
mov eax, dword [esp + 0x74]
test edi, edi
jle 0x1005ae0d
mov ecx, dword [esp + 0x1d3c]
sub ecx, eax
nop
movsx edx, word [ecx + eax + 2]
mov dword [eax], edx
add eax, 4
dec edi
jne 0x1005ae00
mov dword [esp + 0x80], ebx
cmp dword [esp + 0x4c], ebx
jle 0x1005bf16
mov edi, edi
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x80]
mov eax, 1
dec ecx
shl eax, cl
test dword [esp + 0x1d54], eax
je 0x1005befd
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x94]
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x7c], edx
lea edx, [ecx + eax*2]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
jle 0x1005ae78
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, edx
cmp dword [esp + 0x90], 0
mov dword [esp + 0x78], 0
jle 0x1005befd
mov edi, edi
cmp dword [esp + 0x64], 0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], 0
jle 0x1005bdf4
jmp 0x1005aeb0
mov edx, dword [esp + 0x70]
imul edx, dword [esp + 0x88]
cmp dword [esp + 0x58], 0
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + edx*2]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x6c], 0
jle 0x1005bde1
mov ecx, dword [esp + 0x4c]
lea ebp, [ecx + ecx]
lea eax, [ebp + ebp]
mov dword [esp + 0x18], eax
lea eax, [ecx + ebp]
add eax, eax
mov dword [esp + 0x98], eax
lea eax, [ecx + ecx*4]
add eax, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x9c], eax
jmp 0x1005af14
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0xa0]
mov edx, edi
imul edx, ecx
mov ecx, dword [esp + 0x84]
lea ebx, [eax + edx*2]
mov eax, dword [esp + 0x58]
sub eax, edi
mov dword [esp + 0x10], ecx
cmp eax, 0xe
jle 0x1005af44
mov eax, 7
jmp 0x1005af4e
cmp eax, 7
jle 0x1005af4e
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + ebx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x98]
movzx ecx, word [ecx + ebx]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx + ebp*4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x9c]
movzx ecx, word [ecx + ebx]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x14]
movzx edx, word [ebx]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x60]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x60], ecx
lea ecx, [eax - 1]
imul ecx, dword [esp + 0x4c]
add edi, eax
mov dword [esp + 0x6c], edi
movzx edi, word [ebx + ebp]
lea ebx, [ebx + ecx*2]
mov dword [esp + 0x38], ebx
cmp eax, 7
jne 0x1005b2c9
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005b1c5
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x1005b1c5
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
jmp 0x1005b030
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx]
mov dword [esp + 0x54], ecx
movzx ecx, word [ebx + ebp]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x34]
add dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x54]
add dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x30]
add dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4 + 4]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
imul ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x54]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x30]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add ecx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b138
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx], cx
jmp 0x1005b14e
test ebx, ebx
jg 0x1005b147
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx], cx
jmp 0x1005b14e
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b16f
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx + ebp], cx
jmp 0x1005b187
test ebx, ebx
jg 0x1005b17f
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + ebp], cx
jmp 0x1005b187
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], bx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
add dword [esp + 0x10], ebp
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add ebx, ebp
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b030
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx]
mov dword [esp + 0x54], ecx
movzx ecx, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add ebp, ecx
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x54]
add ebp, ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x30]
add ebp, ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x20]
add ebp, ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
imul ecx, edi
add ebp, ecx
mov ecx, ebx
imul ebx, edi
imul ecx, edx
add ebp, ecx
add dword [esi + eax*4], ebp
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
imul ebp, dword [esp + 0x34]
add ecx, ebp
mov ebp, dword [esp + 0x68]
imul ebp, dword [esp + 0x54]
add ecx, ebp
mov ebp, dword [esp + 0x5c]
imul ebp, dword [esp + 0x30]
add ecx, ebp
mov ebp, dword [esp + 0x48]
imul ebp, dword [esp + 0x20]
add ecx, ebp
mov ebp, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add dword [esi + eax*4 + 4], ecx
mov ebx, dword [esp + 0x38]
add ebp, ebp
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b1d4
jmp 0x1005bdd3
cmp eax, 6
jne 0x1005b559
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005b473
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x1005b473
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
mov edi, edi
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movzx ecx, word [ebx]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx + ebp]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x54]
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x30]
add dword [esp + 0x34], ecx
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4 + 4]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
imul ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x30]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add ecx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b3e6
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx], cx
jmp 0x1005b3fc
test ebx, ebx
jg 0x1005b3f5
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx], cx
jmp 0x1005b3fc
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b41d
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx + ebp], cx
jmp 0x1005b435
test ebx, ebx
jg 0x1005b42d
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + ebp], cx
jmp 0x1005b435
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], bx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
add dword [esp + 0x10], ebp
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add ebx, ebp
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b300
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movzx ecx, word [ebx]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add ebp, ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x30]
add ebp, ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x20]
add ebp, ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
imul ecx, edi
add ebp, ecx
mov ecx, ebx
imul ebx, edi
imul ecx, edx
add ebp, ecx
add dword [esi + eax*4], ebp
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x68]
imul ebp, dword [esp + 0x54]
add ecx, ebp
mov ebp, dword [esp + 0x5c]
imul ebp, dword [esp + 0x30]
add ecx, ebp
mov ebp, dword [esp + 0x48]
imul ebp, dword [esp + 0x20]
add ecx, ebp
mov ebp, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add dword [esi + eax*4 + 4], ecx
mov ebx, dword [esp + 0x38]
add ebp, ebp
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b482
jmp 0x1005bdd3
cmp eax, 5
jne 0x1005b79b
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005b6d3
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x1005b6d3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
mov edi, edi
movzx ecx, word [ebx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movzx ecx, word [ebx + ebp]
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x30]
add dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4 + 4]
mov ebx, dword [esp + 0x5c]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x34]
add ecx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x34]
sar ebx, cl
mov ecx, ebx
cmp ecx, 0xffff
jl 0x1005b64f
mov ecx, 0xffff
jmp 0x1005b655
test ecx, ecx
jg 0x1005b655
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b67d
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx + ebp], cx
jmp 0x1005b695
test ebx, ebx
jg 0x1005b68d
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + ebp], cx
jmp 0x1005b695
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], bx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
add dword [esp + 0x10], ebp
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add ebx, ebp
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b590
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
movzx ecx, word [ebx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movzx ecx, word [ebx + ebp]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
add ebp, ecx
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x20]
add ebp, ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
imul ecx, edi
add ebp, ecx
mov ecx, ebx
imul ebx, edi
imul ecx, edx
add ebp, ecx
add dword [esi + eax*4], ebp
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x5c]
imul ebp, dword [esp + 0x30]
add ecx, ebp
mov ebp, dword [esp + 0x48]
imul ebp, dword [esp + 0x20]
add ecx, ebp
mov ebp, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add dword [esi + eax*4 + 4], ecx
mov ebx, dword [esp + 0x38]
add ebp, ebp
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b6e2
jmp 0x1005bdd3
cmp eax, 4
jne 0x1005b997
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005b8e7
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x1005b8e7
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
mov ecx, edi
movzx edi, word [ebx]
movzx ebx, word [ebx + ebp]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4 + 4]
mov ebx, dword [esp + 0x18]
imul ebx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
add ecx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
sar ebx, cl
mov ecx, ebx
cmp ecx, 0xffff
jl 0x1005b863
mov ecx, 0xffff
jmp 0x1005b869
test ecx, ecx
jg 0x1005b869
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005b891
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx + ebp], cx
jmp 0x1005b8a9
test ebx, ebx
jg 0x1005b8a1
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + ebp], cx
jmp 0x1005b8a9
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], bx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
add dword [esp + 0x10], ebp
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add ebx, ebp
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b7d0
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
jmp 0x1005b900
mov dword [esp + 0x14], edi
movzx edi, word [ebx]
movzx ebx, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x24]
imul ecx, ebx
add ebp, ecx
mov ecx, dword [esp + 0x48]
imul ecx, edi
add ebp, ecx
mov ecx, dword [esp + 0x40]
imul ecx, edx
add ebp, ecx
mov ecx, dword [esp + 0x14]
imul ecx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x20]
add ecx, ebx
mov ebx, dword [esp + 0x40]
add dword [esi + eax*4], ebp
imul ebx, edi
mov ebp, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add dword [esi + eax*4 + 4], ecx
mov ebx, dword [esp + 0x38]
add ebp, ebp
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b900
jmp 0x1005bdd3
cmp eax, 3
jne 0x1005bb57
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005bac7
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x1005bac7
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
lea esp, [esp]
mov ecx, edi
movzx edi, word [ebx + ebp]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, word [ebx]
mov ebx, dword [esp + 0x40]
imul ebx, edi
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4 + 4]
mov ebx, dword [esp + 0x18]
imul ebx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
add ecx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, edx
add ecx, ebx
add ecx, dword [esi + eax*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
sar ebx, cl
mov ecx, ebx
cmp ecx, 0xffff
jl 0x1005ba43
mov ecx, 0xffff
jmp 0x1005ba49
test ecx, ecx
jg 0x1005ba49
xor ecx, ecx
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005ba71
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [ebx + ebp], cx
jmp 0x1005ba89
test ebx, ebx
jg 0x1005ba81
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov word [ebx + ebp], cx
jmp 0x1005ba89
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], bx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
add ebp, ebp
add dword [esp + 0x10], ebp
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add ebx, ebp
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005b9d0
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
jmp 0x1005bae0
mov dword [esp + 0x14], edi
movzx edi, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov ecx, edx
movzx edx, word [ebx]
mov ebx, dword [esp + 0x24]
imul ecx, ebx
add ebp, ecx
mov ecx, dword [esp + 0x40]
imul ecx, edx
add ebp, ecx
mov ecx, dword [esp + 0x14]
imul ecx, ebx
mov ebx, dword [esp + 0x40]
add dword [esi + eax*4], ebp
imul ebx, edi
mov ebp, dword [esp + 0x4c]
add ecx, ebx
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
add dword [esi + eax*4 + 4], ecx
mov ebx, dword [esp + 0x38]
add ebp, ebp
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebx
cmp eax, ecx
jle 0x1005bae0
jmp 0x1005bdd3
cmp eax, 2
mov eax, dword [esp + 0x64]
jne 0x1005bcd7
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005bc73
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x58]
jl 0x1005bc73
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
lea esp, [esp]
movzx ecx, word [ebx]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, word [ebx + ebp]
imul edi, edx
add ecx, edi
add ecx, dword [esi + eax*4 + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add edi, ecx
add edi, dword [esi + eax*4]
mov ecx, dword [esp + 0x50]
sar edi, cl
cmp edi, 0xffff
jl 0x1005bbf0
mov edi, dword [esp + 0x10]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x1005bc06
test edi, edi
jg 0x1005bbff
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [edi], cx
jmp 0x1005bc06
mov ecx, dword [esp + 0x10]
mov word [ecx], di
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
sar edi, cl
cmp edi, 0xffff
jl 0x1005bc27
mov edi, dword [esp + 0x10]
mov ecx, 0xffff
mov word [edi + ebp], cx
jmp 0x1005bc3f
test edi, edi
jg 0x1005bc37
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [edi + ebp], cx
jmp 0x1005bc3f
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], di
lea ecx, [ebp + ebp]
add dword [esp + 0x10], ecx
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add eax, 2
add ecx, 0xfffffffe
cmp eax, ecx
jle 0x1005bb90
jmp 0x1005bdd3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
movzx edi, word [ebx]
mov ecx, edx
movzx edx, word [ebx + ebp]
mov dword [esp + 0x14], edi
mov ebp, edi
mov edi, dword [esp + 0x24]
imul ebp, dword [esp + 0x28]
imul ecx, edi
add ebp, ecx
mov ecx, dword [esp + 0x14]
add dword [esi + eax*4], ebp
imul ecx, edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
imul edi, edx
add ecx, edi
add dword [esi + eax*4 + 4], ecx
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add eax, 2
add ecx, 0xfffffffe
cmp eax, ecx
jle 0x1005bc82
jmp 0x1005bdd3
dec eax
cmp dword [esp + 0x70], eax
jl 0x1005bd9d
mov edx, dword [esp + 0x6c]
cmp edx, dword [esp + 0x58]
jl 0x1005bd9d
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x1005bdd3
nop
mov ecx, dword [esp + 0x24]
movzx edx, word [ebx]
movzx edi, word [ebx + ebp]
imul edx, ecx
add edx, dword [esi + eax*4]
imul edi, ecx
mov ecx, dword [esp + 0x50]
add edi, dword [esi + eax*4 + 4]
sar edx, cl
cmp edx, 0xffff
jl 0x1005bd34
mov edx, dword [esp + 0x10]
mov ecx, 0xffff
mov word [edx], cx
jmp 0x1005bd45
mov ecx, dword [esp + 0x10]
test edx, edx
jg 0x1005bd3e
xor edx, edx
mov word [ecx], dx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
sar edi, cl
cmp edi, 0xffff
jl 0x1005bd5e
mov ecx, 0xffff
mov word [edx + ebp], cx
jmp 0x1005bd6e
test edi, edi
jg 0x1005bd6a
xor ecx, ecx
mov word [edx + ebp], cx
jmp 0x1005bd6e
mov word [edx + ebp], di
mov ecx, dword [esp + 0x18]
add edx, ecx
add ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + eax*4], 0
mov dword [esi + eax*4 + 4], 0
add eax, 2
add ecx, 0xfffffffe
mov dword [esp + 0x10], edx
cmp eax, ecx
jle 0x1005bd00
jmp 0x1005bdd3
mov edx, dword [esp + 0x1c]
xor eax, eax
add edx, 0xfffffffe
js 0x1005bdd3
jmp 0x1005bdb0
movzx ecx, word [ebx + ebp]
movzx edi, word [ebx]
imul ecx, dword [esp + 0x24]
imul edi, dword [esp + 0x24]
add dword [esi + eax*4], edi
add dword [esi + eax*4 + 4], ecx
add ebx, dword [esp + 0x18]
add eax, 2
cmp eax, edx
jle 0x1005bdb0
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edx
jl 0x1005af10
mov ecx, dword [esp + 0x70]
inc ecx
mov dword [esp + 0x70], ecx
cmp ecx, dword [esp + 0x64]
jl 0x1005aeb0
cmp eax, dword [esp + 0x1c]
jge 0x1005beca
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x1c]
mov ecx, eax
imul ecx, dword [esp + 0x4c]
sub edi, eax
lea ecx, [edx + ecx*2]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], edi
add eax, edi
lea esp, [esp]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
xor ebp, ebp
test ecx, ecx
jle 0x1005be7c
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], ecx
lea ebx, [ebx]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x2c]
test edi, edi
jle 0x1005be65
lea esp, [esp]
movzx ecx, word [ebx]
imul ecx, dword [edx]
add ebp, ecx
mov ecx, dword [esp + 0x4c]
add edx, 4
dec edi
lea ebx, [ebx + ecx*2]
jne 0x1005be50
mov ecx, dword [esp + 0x88]
add ecx, ecx
add dword [esp + 0x2c], ecx
dec dword [esp + 0x68]
jne 0x1005be40
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
sar ebp, cl
cmp ebp, 0xffff
jl 0x1005be98
mov ecx, dword [esp + 0x10]
mov edx, 0xffff
mov word [ecx], dx
jmp 0x1005beae
test ebp, ebp
jg 0x1005bea7
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx], dx
jmp 0x1005beae
mov edx, dword [esp + 0x10]
mov word [edx], bp
mov ecx, dword [esp + 0x4c]
lea ebx, [ebx + ecx*2]
add ecx, ecx
add dword [esp + 0x10], ecx
add dword [esp + 0x34], ecx
dec edi
mov dword [esp + 0x60], edi
jne 0x1005be20
mov ecx, dword [esp + 0x88]
add ecx, ecx
add dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x8c]
add ecx, ecx
add dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
inc ecx
mov dword [esp + 0x78], ecx
cmp ecx, dword [esp + 0x90]
jl 0x1005ae90
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
cmp eax, dword [esp + 0x4c]
jl 0x1005ae20
lea eax, [esp + 0x42c]
cmp esi, eax
je 0x1005bf2a
push esi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xa8]
cmp eax, ecx
je 0x1005bf42
push eax
call sub.MSVCR100.dll_free
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1d2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007d356
add esp, 0x1d20
ret