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

Disassembly:
mov eax, 0x1dc4
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x1dc0], eax
mov edx, dword [esp + 0x1ddc]
mov eax, dword [esp + 0x1dcc]
mov ecx, dword [esp + 0x1dc8]
mov dword [esp + 0x68], edx
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 8], edx
lea edx, [esp + 0x4c0]
mov dword [esp + 0x80], edx
push ebx
push ebp
mov ebp, dword [esp + 0x1ddc]
lea edx, [esp + 0x144]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x98], edx
mov edx, dword [eax + 4]
push esi
mov esi, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
mov edi, dword [esp + 0x1de8]
shr edx, 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x28], esi
lea ebp, [esi + ebp - 1]
lea esi, [edi + 2]
mov dword [esp + 0xb0], edx
imul esi, ebp
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
shr edx, 1
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x1dfc]
add edx, 0xfffffff0
lea ebx, [esp + 0xcc]
mov dword [esp + 0x4c], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x70], edx
cmp esi, 0x640
jg 0x100572f8
cmp edi, 0xf
jle 0x10057324
lea eax, [esi + edi*2 + 2]
add eax, eax
add eax, eax
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x90], eax
test eax, eax
je 0x100573aa
mov ecx, eax
lea ebx, [ecx + esi*4]
mov dword [esp + 0xa8], ebx
lea ecx, [edi + 1]
xor eax, eax
test ecx, ecx
jle 0x1005734a
mov edx, dword [esp + 0x90]
lea esi, [ebp*4]
jmp 0x10057340
mov dword [ebx + eax*4], edx
inc eax
add edx, esi
cmp eax, ecx
jl 0x10057340
xor eax, eax
test ecx, ecx
jle 0x10057361
lea edx, [ebx + edi*4 + 4]
mov esi, dword [ebx + eax*4]
mov dword [edx], esi
inc eax
add edx, 4
cmp eax, ecx
jl 0x10057354
mov edx, dword [ebx + edi*4]
imul edi, dword [esp + 0x5c]
lea esi, [edx + ebp*4]
cmp edi, 0xe1
jle 0x100573b4
lea eax, [edi*4]
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x100573bb
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x4d0]
cmp eax, ecx
je 0x100573aa
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, 1
jmp 0x1005898a
mov eax, dword [esp + 0x8c]
test edi, edi
jle 0x100573dd
mov ecx, dword [esp + 0x1de0]
sub ecx, eax
jmp 0x100573d0
movsx edx, word [ecx + eax + 2]
mov dword [eax], edx
add eax, 4
dec edi
jne 0x100573d0
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x1df0]
mov dword [esp + 0x98], 0
sub ebp, ecx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x94], ebp
jle 0x10058952
jmp 0x10057410
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x98]
mov edx, 1
dec ecx
shl edx, cl
test dword [esp + 0x1e00], edx
je 0x10058939
cmp dword [esp + 0x4c], 0
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x98]
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x54], edx
lea edx, [ecx + eax*2]
mov dword [esp + 0x74], edx
mov dword [esp + 0x60], 0
jle 0x10057533
mov ebp, dword [esp + 0x78]
lea ebx, [ebx]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x60]
mov edi, dword [eax + ecx*4]
xor eax, eax
test ebp, ebp
jle 0x10057493
mov ecx, dword [esp + 0x54]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ebp
jl 0x10057488
cmp dword [esp + 0x94], 0
jle 0x100574c2
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x94]
lea eax, [edi + ebp*4]
jmp 0x100574b0
movzx edx, word [ecx]
mov dword [eax], edx
mov edx, dword [esp + 0x50]
add eax, 4
dec ebx
lea ecx, [ecx + edx*2]
jne 0x100574b0
mov edx, dword [esp + 0x1df0]
test edx, edx
jle 0x100574eb
mov ecx, dword [esp + 0x94]
add ecx, ebp
lea ecx, [edi + ecx*4]
mov eax, ecx
jmp 0x100574e0
mov edi, dword [ecx - 4]
mov dword [eax], edi
add eax, 4
dec edx
jne 0x100574e0
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x1df4]
jl 0x10057524
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x1df8]
mov ecx, dword [esp + 0xa0]
lea edx, [edx + ecx - 2]
cmp eax, edx
jge 0x10057524
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
lea ecx, [ecx + edx*2]
mov dword [esp + 0x54], ecx
inc eax
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x4c]
jl 0x10057470
mov ebx, dword [esp + 0x28]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x9c], ebp
cmp ebx, ebp
jle 0x10057550
mov ecx, ebx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edx, ebx
mov dword [esp + 0xb4], ebp
cmp dword [esp + 0xa0], ebp
jle 0x10058939
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x1df8]
add eax, 0xfffffffe
mov dword [esp + 0xc4], eax
lea esp, [esp]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x8c]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], ecx
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x88], ecx
xor ecx, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x60], ecx
test eax, eax
jle 0x1005876e
jmp 0x100575d0
cmp dword [esp + 0x5c], 0
mov eax, dword [esp + 0xac]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xb8], eax
mov dword [esp + 0x84], 0
jle 0x1005875f
jmp 0x10057600
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
sub eax, ebp
lea edi, [edx + ebp*4]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x18], edx
mov dword [esp + 0xa4], eax
cmp eax, 0xe
jle 0x1005763a
mov eax, 7
jmp 0x10057644
cmp eax, 7
jle 0x1005764b
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xa4], eax
add ebp, eax
mov dword [esp + 0x84], ebp
cmp eax, 7
jne 0x100579a3
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [ebx]
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x4c]
dec edx
cmp ecx, edx
jl 0x100578a7
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x84], ecx
jl 0x100578a7
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, 0xfffffffe
js 0x10058739
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
add ecx, ecx
add ecx, dword [esp + 0x74]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x88]
lea ecx, [ecx + ebx*4]
lea ebx, [edi + 0x1c]
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], edi
mov edi, edi
mov edi, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], ebp
mov ebp, dword [ebx - 4]
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x2c]
movzx ebx, word [ebx]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x64]
movzx ebx, word [ebx + ebp]
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x7c]
imul ecx, dword [esp + 0x10]
mov ebx, edi
imul ebx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x48]
add ebx, ecx
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x34]
add ebx, ecx
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
add ebx, ecx
mov ecx, dword [esp + 0x38]
imul edi, ecx
mov ebp, ecx
mov ecx, dword [esp + 0x68]
imul ebp, eax
imul ecx, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x7c]
imul ecx, dword [esp + 0x48]
add edi, ecx
mov ecx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x34]
add edi, ecx
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x1c]
add edi, ecx
mov ecx, dword [esp + 0x3c]
add ebx, ebp
mov ebp, dword [esp + 0x24]
imul ecx, ebp
add ebx, dword [esi + edx*4 + 4]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, eax
add edi, ecx
add edi, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar edi, cl
cmp edi, 0xffff
jl 0x10057808
mov edi, dword [esp + 0x18]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x1005781e
test edi, edi
jg 0x10057817
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov word [edi], cx
jmp 0x1005781e
mov ecx, dword [esp + 0x18]
mov word [ecx], di
mov ecx, dword [esp + 0x70]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005783a
mov edi, dword [esp + 0x40]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x10057850
test ebx, ebx
jg 0x10057849
mov edi, dword [esp + 0x40]
xor ecx, ecx
mov word [edi], cx
jmp 0x10057850
mov ecx, dword [esp + 0x40]
mov word [ecx], bx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
add ecx, ecx
add ecx, ecx
add dword [esp + 0x2c], ecx
add dword [esp + 0x18], ecx
add dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add ebx, 8
add ecx, 8
add edi, 0xfffffffe
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ecx
cmp edx, edi
jle 0x10057710
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, 0xfffffffe
js 0x10058739
add edi, 0x1c
mov dword [esp + 0x14], edi
lea ecx, [ecx]
mov ecx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov ebx, eax
mov eax, dword [esp + 0x1c]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x34], ebp
mov ebp, dword [edi - 4]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
mov edi, ecx
imul ecx, dword [esp + 0x20]
imul edi, dword [esp + 0x38]
add edi, ebx
mov ebx, dword [esp + 0x7c]
imul ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x6c]
imul ebx, dword [esp + 0x34]
add edi, ebx
mov ebx, dword [esp + 0x58]
imul ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x24]
imul ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
imul ebx, eax
add edi, ebx
add dword [esi + edx*4], edi
mov edi, dword [esp + 0x7c]
imul edi, dword [esp + 0x10]
add ecx, edi
mov edi, dword [esp + 0x6c]
imul edi, dword [esp + 0x48]
add ecx, edi
mov edi, dword [esp + 0x58]
imul edi, dword [esp + 0x34]
add ecx, edi
mov edi, dword [esp + 0x3c]
imul edi, dword [esp + 0x1c]
add ecx, edi
mov edi, dword [esp + 0x30]
imul edi, ebp
add ecx, edi
mov edi, dword [esp + 0x38]
imul edi, eax
add ecx, edi
add dword [esi + edx*4 + 4], ecx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add edx, 2
add edi, 8
add ecx, 0xfffffffe
mov dword [esp + 0x14], edi
cmp edx, ecx
jle 0x100578c0
mov ebx, dword [esp + 0x80]
jmp 0x10058739
cmp eax, 6
jne 0x10057ca6
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x10]
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ebx]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x4c]
dec edx
cmp ecx, edx
jl 0x10057bcb
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x84], ecx
jl 0x10057bcb
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, 0xfffffffe
js 0x10058739
mov ecx, dword [esp + 0x50]
add ecx, ecx
lea ebx, [ecx + ecx]
add ecx, dword [esp + 0x74]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x88]
lea ecx, [ecx + ebx*4]
lea ebx, [edi + 0x18]
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x64], edi
mov edi, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebx - 4]
mov ebx, dword [ebx]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x2c]
movzx ebx, word [ebx]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x64]
movzx ebx, word [ebx + ebp]
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x48]
mov ebx, edi
imul ebx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x34]
add ebx, ecx
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
add ebx, ecx
mov ecx, dword [esp + 0x38]
imul edi, ecx
mov ebp, ecx
mov ecx, dword [esp + 0x68]
imul ebp, eax
imul ecx, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x6c]
imul ecx, dword [esp + 0x34]
add edi, ecx
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x1c]
add edi, ecx
mov ecx, dword [esp + 0x3c]
add ebx, ebp
mov ebp, dword [esp + 0x24]
imul ecx, ebp
add ebx, dword [esi + edx*4 + 4]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, eax
add edi, ecx
add edi, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar edi, cl
cmp edi, 0xffff
jl 0x10057b30
mov edi, dword [esp + 0x18]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x10057b46
test edi, edi
jg 0x10057b3f
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov word [edi], cx
jmp 0x10057b46
mov ecx, dword [esp + 0x18]
mov word [ecx], di
mov ecx, dword [esp + 0x70]
sar ebx, cl
cmp ebx, 0xffff
jl 0x10057b62
mov edi, dword [esp + 0x10]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x10057b78
test ebx, ebx
jg 0x10057b71
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [edi], cx
jmp 0x10057b78
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x40]
add dword [esp + 0x2c], ecx
add dword [esp + 0x18], ecx
add dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add ebx, 8
add ecx, 8
add edi, 0xfffffffe
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ecx
cmp edx, edi
jle 0x10057a56
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, 0xfffffffe
js 0x10058739
add edi, 0x18
mov dword [esp + 0x14], edi
mov ecx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov ebx, eax
mov eax, dword [esp + 0x1c]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edi - 4]
mov edi, dword [edi]
mov dword [esp + 0x48], edi
mov edi, ecx
imul ecx, dword [esp + 0x20]
imul edi, dword [esp + 0x38]
add edi, ebx
mov ebx, dword [esp + 0x6c]
imul ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x58]
imul ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x24]
imul ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
imul ebx, eax
add edi, ebx
add dword [esi + edx*4], edi
mov edi, dword [esp + 0x6c]
imul edi, dword [esp + 0x48]
add ecx, edi
mov edi, dword [esp + 0x58]
imul edi, dword [esp + 0x34]
add ecx, edi
mov edi, dword [esp + 0x3c]
imul edi, dword [esp + 0x1c]
add ecx, edi
mov edi, dword [esp + 0x30]
imul edi, ebp
add ecx, edi
mov edi, dword [esp + 0x38]
imul edi, eax
add ecx, edi
add dword [esi + edx*4 + 4], ecx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add edx, 2
add edi, 8
add ecx, 0xfffffffe
mov dword [esp + 0x14], edi
cmp edx, ecx
jle 0x10057be1
mov ebx, dword [esp + 0x80]
jmp 0x10058739
cmp eax, 5
jne 0x10057f6b
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov ebp, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x10]
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x58], edx
cmp dword [esp + 0x60], eax
jl 0x10057eac
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x84], eax
jl 0x10057eac
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
add ecx, ecx
lea eax, [ecx + ecx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x88]
lea ebx, [ecx + ebx*4]
lea ecx, [edi + 0x14]
mov edi, dword [esp + 0x54]
sub edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], edi
mov edi, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ecx - 4]
mov ecx, dword [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax]
mov eax, dword [esp + 0x10]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x64]
movzx eax, word [eax + ecx]
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x1c]
mov ebx, edi
imul ebx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
add ebx, eax
mov eax, dword [esp + 0x38]
imul edi, eax
add ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x68]
imul ecx, ebp
imul eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x3c]
add edi, eax
mov eax, dword [esp + 0x24]
imul ecx, eax
add ebx, dword [esi + edx*4 + 4]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, ebp
add edi, ecx
add edi, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar edi, cl
cmp edi, 0xffff
jl 0x10057e11
mov edi, dword [esp + 0x18]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x10057e27
test edi, edi
jg 0x10057e20
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov word [edi], cx
jmp 0x10057e27
mov ecx, dword [esp + 0x18]
mov word [ecx], di
mov ecx, dword [esp + 0x70]
sar ebx, cl
cmp ebx, 0xffff
jl 0x10057e43
mov edi, dword [esp + 0x10]
mov ecx, 0xffff
mov word [edi], cx
jmp 0x10057e59
test ebx, ebx
jg 0x10057e52
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [edi], cx
jmp 0x10057e59
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x40]
add dword [esp + 0x2c], ecx
add dword [esp + 0x18], ecx
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add ecx, 8
add ebx, 8
add edi, 0xfffffffe
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], ebx
cmp edx, edi
jle 0x10057d55
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
add edi, 0x14
mov dword [esp + 0x14], edi
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi - 4]
mov ebx, ebp
mov ebp, dword [esp + 0x1c]
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi]
mov edi, eax
imul eax, dword [esp + 0x20]
imul edi, dword [esp + 0x38]
add edi, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x1c]
add edi, ecx
mov ecx, dword [esp + 0x24]
imul ebx, ecx
add edi, ebx
mov ebx, dword [esp + 0x30]
imul ebx, ebp
add edi, ebx
add dword [esi + edx*4], edi
mov edi, dword [esp + 0x58]
imul edi, dword [esp + 0x34]
add eax, edi
mov edi, dword [esp + 0x3c]
imul edi, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x30]
imul edi, ecx
add eax, edi
mov edi, dword [esp + 0x38]
imul edi, ebp
add eax, edi
add dword [esi + edx*4 + 4], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, 2
add edi, 8
add eax, 0xfffffffe
mov dword [esp + 0x14], edi
cmp edx, eax
jle 0x10057ec2
mov ebx, dword [esp + 0x80]
jmp 0x10058739
cmp eax, 4
jne 0x100581c7
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [ebx]
mov ebp, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0xc]
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x60], eax
jl 0x10058124
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x84], edx
jl 0x10058124
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
add eax, eax
lea ecx, [eax + eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
lea ebx, [eax + ebx*4]
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x54]
sub edi, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], edi
jmp 0x10058010
mov ecx, dword [eax - 4]
mov eax, dword [eax]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx]
mov ecx, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x64]
movzx ecx, word [ecx + eax]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x1c]
mov eax, edi
imul eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x38]
imul edi, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x68]
imul ebx, ebp
imul ecx, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x24]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, ebp
add edi, ecx
add edi, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar edi, cl
add eax, ebx
add eax, dword [esi + edx*4 + 4]
cmp edi, 0xffff
jl 0x100580a7
mov edi, 0xffff
jmp 0x100580ad
test edi, edi
jg 0x100580ad
xor edi, edi
mov ebx, dword [esp + 0x18]
sar eax, cl
mov word [ebx], di
cmp eax, 0xffff
jl 0x100580c4
mov eax, 0xffff
jmp 0x100580ca
test eax, eax
jg 0x100580ca
xor eax, eax
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x44]
mov word [ecx], ax
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], eax
add dword [esp + 0x18], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add eax, 8
add ebx, 8
add ecx, 0xfffffffe
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], ebx
cmp edx, ecx
jle 0x10058010
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov ecx, dword [esp + 0x24]
add edi, 0x10
mov dword [esp + 0x14], edi
mov edi, edi
mov eax, ecx
mov ecx, dword [edi - 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
mov edi, eax
imul eax, dword [esp + 0x20]
imul edi, dword [esp + 0x38]
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
imul ebx, ecx
add edi, ebx
mov ebx, dword [esp + 0x30]
imul ebx, ebp
add edi, ebx
add dword [esi + edx*4], edi
mov edi, dword [esp + 0x3c]
imul edi, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x30]
imul edi, ecx
add eax, edi
mov edi, dword [esp + 0x38]
imul edi, ebp
add eax, edi
add dword [esi + edx*4 + 4], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, 2
add edi, 8
add eax, 0xfffffffe
mov dword [esp + 0x14], edi
cmp edx, eax
jle 0x10058140
mov ebx, dword [esp + 0x80]
jmp 0x10058739
cmp eax, 3
jne 0x100583da
mov eax, dword [ebx]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
mov ebp, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 8]
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
cmp dword [esp + 0x60], eax
jl 0x10058354
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x84], eax
jl 0x10058354
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
add eax, eax
lea ecx, [eax + eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
lea ebx, [eax + ebx*4]
lea eax, [edi + 0xc]
mov edi, dword [esp + 0x54]
sub edi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], edi
lea ebx, [ebx]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x68], ebp
mov ebp, dword [eax - 4]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax]
mov dword [ebx], eax
mov eax, dword [esp + 0x64]
movzx ecx, word [ecx + eax]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
mov eax, edi
imul eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x38]
imul edi, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x68]
imul ebx, ebp
imul ecx, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, ebp
add edi, ecx
add edi, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar edi, cl
add eax, ebx
add eax, dword [esi + edx*4 + 4]
cmp edi, 0xffff
jl 0x100582d5
mov edi, 0xffff
jmp 0x100582db
test edi, edi
jg 0x100582db
xor edi, edi
mov ebx, dword [esp + 0x18]
sar eax, cl
mov word [ebx], di
cmp eax, 0xffff
jl 0x100582f2
mov eax, 0xffff
jmp 0x100582f8
test eax, eax
jg 0x100582f8
xor eax, eax
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
mov word [ecx], ax
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], eax
add dword [esp + 0x18], eax
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add eax, 8
add ebx, 8
add edi, 0xfffffffe
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], ebx
cmp edx, edi
jle 0x10058260
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
add edi, 0xc
mov dword [esp + 0x14], edi
lea ebx, [ebx]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], ebp
mov ebp, dword [edi - 4]
mov edi, dword [edi]
mov dword [esp + 0x24], edi
mov edi, eax
imul eax, dword [esp + 0x20]
imul edi, ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x20]
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, ebp
add edi, ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x24]
add dword [esi + edx*4], edi
add eax, ecx
mov ecx, dword [esp + 0x38]
mov edi, ecx
imul edi, ebp
add eax, edi
add dword [esi + edx*4 + 4], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, 2
add edi, 8
add eax, 0xfffffffe
mov dword [esp + 0x14], edi
cmp edx, eax
jle 0x10058370
jmp 0x10058739
cmp eax, 2
jne 0x100585a6
mov eax, dword [ebx + 4]
mov ebp, dword [edi]
mov edx, dword [ebx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x20], edx
cmp ecx, eax
jl 0x10058549
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x84], ecx
jl 0x10058549
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x74]
add eax, eax
lea ecx, [eax + eax]
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x78]
lea eax, [eax + ecx*4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
lea ecx, [edi + 8]
mov edi, dword [esp + 0x10]
sub eax, ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, dword [ecx - 4]
mov ecx, dword [ecx]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x2c]
movzx ecx, word [ecx]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x64]
movzx ecx, word [edi + ecx]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x7c]
mov ebp, eax
imul eax, dword [esp + 0x38]
imul ebp, dword [esp + 0x20]
add ebp, ecx
mov ecx, dword [esp + 0x68]
imul ecx, dword [esp + 0x20]
add ebp, dword [esi + edx*4 + 4]
add eax, ecx
add eax, dword [esi + edx*4]
mov ecx, dword [esp + 0x70]
sar eax, cl
cmp eax, 0xffff
jl 0x100584c8
mov eax, 0xffff
jmp 0x100584ce
test eax, eax
jg 0x100584ce
xor eax, eax
mov edi, dword [esp + 0x18]
sar ebp, cl
mov word [edi], ax
mov edi, dword [esp + 0x10]
cmp ebp, 0xffff
jl 0x100584ed
mov ecx, 0xffff
mov word [edi], cx
jmp 0x100584fb
test ebp, ebp
jg 0x100584f8
xor eax, eax
mov word [edi], ax
jmp 0x100584fb
mov word [edi], bp
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], eax
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
add edi, eax
mov eax, dword [esp + 0x28]
mov dword [esi + edx*4], 0
mov dword [esi + edx*4 + 4], 0
add edx, 2
add ecx, 8
add ebp, 8
add eax, 0xfffffffe
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], ebp
cmp edx, eax
jle 0x10058465
jmp 0x10058739
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
js 0x10058739
add edi, 8
mov dword [esp + 0x14], edi
mov eax, dword [edi - 4]
mov ecx, ebp
mov ebp, dword [edi]
imul ecx, dword [esp + 0x20]
mov edi, eax
imul eax, dword [esp + 0x20]
imul edi, dword [esp + 0x38]
add edi, ecx
mov ecx, dword [esp + 0x38]
add dword [esi + edx*4], edi
imul ecx, ebp
mov edi, dword [esp + 0x14]
add eax, ecx
add dword [esi + edx*4 + 4], eax
add edx, 2
add edi, 8
mov dword [esp + 0x14], edi
cmp edx, dword [esp + 0x10]
jle 0x10058563
jmp 0x10058739
mov eax, dword [esp + 0x4c]
mov ebp, dword [ebx]
dec eax
mov dword [esp + 0x20], ebp
cmp ecx, eax
jl 0x100586ee
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x84], edx
jl 0x100586ee
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
js 0x10058739
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x78]
add eax, eax
lea ecx, [eax + eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
lea ebp, [eax + ebp*4]
mov eax, edi
sub eax, esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x54]
lea ebx, [esi + 4]
sub eax, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x64], eax
jmp 0x10058620
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx + ebx]
mov ebx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x20]
movzx ebx, word [ebx]
mov eax, dword [edi + edx*4]
imul eax, dword [esp + 0x20]
mov dword [ebp], ebx
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x44]
add ecx, dword [ebx]
add eax, dword [ebx - 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
sar eax, cl
cmp eax, 0xffff
jl 0x10058672
mov eax, 0xffff
jmp 0x10058678
test eax, eax
jg 0x10058678
xor eax, eax
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
sar eax, cl
mov dword [esp + 0x14], eax
cmp eax, 0xffff
jl 0x1005869b
mov eax, 0xffff
jmp 0x100586a1
test eax, eax
jg 0x100586a1
xor eax, eax
mov ecx, dword [esp + 0x10]
mov word [ecx], ax
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], eax
add dword [esp + 0x18], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [ebx - 4], 0
mov dword [ebx], 0
add edx, 2
add ebp, 8
add ebx, 8
add eax, 0xfffffffe
mov dword [esp + 0x14], ebp
mov dword [esp + 0x44], ebx
cmp edx, eax
jle 0x10058620
mov ebx, dword [esp + 0x80]
jmp 0x10058739
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
js 0x10058739
mov ecx, edi
sub ecx, esi
lea eax, [esi + 4]
mov dword [esp + 0x7c], ecx
jmp 0x10058714
mov ecx, dword [esp + 0x7c]
mov ecx, dword [eax + ecx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + edx*4]
imul ecx, ebp
add dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
imul ecx, ebp
add dword [eax], ecx
add edx, 2
add eax, 8
cmp edx, dword [esp + 0x10]
jle 0x10058710
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x84]
cmp ecx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
lea ebx, [ebx + eax*4]
mov dword [esp + 0x80], ebx
jl 0x10057600
inc ecx
mov dword [esp + 0x60], ecx
cmp ecx, dword [esp + 0x4c]
jl 0x100575d0
cmp edx, dword [esp + 0x28]
jge 0x10058855
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
add eax, edx
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
lea esp, [esp]
mov edi, dword [esp + 0x8c]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x60], eax
cmp dword [esp + 0x4c], eax
jle 0x100587f3
mov ebp, dword [esp + 0x5c]
lea esp, [esp]
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + eax*4]
lea eax, [edx*4]
add ecx, eax
xor eax, eax
test ebp, ebp
jle 0x100587e4
lea esp, [esp]
mov ebp, dword [ecx + eax*4]
imul ebp, dword [edi]
add ebx, ebp
mov ebp, dword [esp + 0x5c]
inc eax
add edi, 4
cmp eax, ebp
jl 0x100587d0
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x4c]
jl 0x100587b0
mov ecx, dword [esp + 0x70]
sar ebx, cl
cmp ebx, 0xffff
jl 0x1005880f
mov ecx, dword [esp + 0x18]
mov eax, 0xffff
mov word [ecx], ax
jmp 0x10058825
test ebx, ebx
jg 0x1005881e
mov ecx, dword [esp + 0x18]
xor eax, eax
mov word [ecx], ax
jmp 0x10058825
mov eax, dword [esp + 0x18]
mov word [eax], bx
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx]
mov edi, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x50]
lea ecx, [ecx + eax*2]
add eax, eax
add dword [esp + 0x18], eax
inc edx
add edi, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edi
cmp edx, dword [esp + 0x28]
jl 0x10058790
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x88]
cmp edx, ecx
jge 0x1005889d
mov edi, dword [esp + 0x2c]
lea eax, [ebx + edx]
lea eax, [ebp + eax*4]
sub ecx, edx
jmp 0x10058880
movzx edx, word [edi]
mov dword [eax], edx
mov edx, dword [esp + 0x50]
add eax, 4
dec ecx
lea edi, [edi + edx*2]
jne 0x10058880
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x2c], edi
xor eax, eax
test ebx, ebx
jle 0x100588b0
mov edx, dword [ebp + ebx*4]
mov dword [ebp + eax*4], edx
inc eax
cmp eax, ebx
jl 0x100588a3
mov edi, dword [esp + 0x1df0]
xor edx, edx
test edi, edi
jle 0x100588d2
add ebx, ecx
lea ecx, [ebp + ebx*4]
mov eax, ecx
mov edx, edi
mov ebx, dword [ecx - 4]
mov dword [eax], ebx
add eax, 4
dec edi
jne 0x100588c7
mov edi, dword [esp + 0xb4]
cmp edi, dword [esp + 0xc4]
jge 0x100588f4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xb0]
lea eax, [eax + ecx*2]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x9c]
add eax, eax
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
inc ecx
inc eax
mov dword [esp + 0x9c], ecx
cmp ecx, eax
jl 0x10058924
mov dword [esp + 0x9c], 0
inc edi
mov dword [esp + 0xb4], edi
cmp edi, dword [esp + 0xa0]
jl 0x10057580
mov eax, dword [esp + 0x98]
inc eax
mov dword [esp + 0x98], eax
cmp eax, dword [esp + 0x50]
jl 0x10057410
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x4d0]
cmp eax, ecx
je 0x1005896d
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x14c]
cmp eax, edx
je 0x10058988
push eax
call sub.MSVCR100.dll_free
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1dd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007d356
add esp, 0x1dc4
ret