Function at 0x10047bb0
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 0x10047ca9
add edx, edx
add edx, edx
push edx
call sub.MSVCR100.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x10047ce4
mov edi, ebp
imul edi, dword [esp + 0x58]
cmp edi, 0xe1
jle 0x10047cee
lea eax, [edi*4]
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
jne 0x10047cf2
lea ecx, [esp + 0x42c]
cmp esi, ecx
je 0x10047ce4
push esi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, 1
jmp 0x10048e9b
mov eax, dword [esp + 0x74]
test edi, edi
jle 0x10047d0d
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 0x10047d00
mov dword [esp + 0x80], ebx
cmp dword [esp + 0x4c], ebx
jle 0x10048e6d
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 0x10048e54
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 0x10047d78
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 0x10048e54
mov edi, edi
cmp dword [esp + 0x64], 0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], 0
jle 0x10048d44
jmp 0x10047db0
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 0x10048d31
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 0x10047e14
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 0x10047e44
mov eax, 7
jmp 0x10047e4e
cmp eax, 7
jle 0x10047e4e
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x18]
movsx ecx, word [ecx + ebx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x98]
movsx ecx, word [ecx + ebx]
mov dword [esp + 0x30], ecx
movsx ecx, word [ebx + ebp*4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x9c]
movsx 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]
movsx 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
movsx edi, word [ebx + ebp]
lea ebx, [ebx + ecx*2]
mov dword [esp + 0x38], ebx
cmp eax, 7
jne 0x100481d7
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x100480d3
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x100480d3
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
jmp 0x10047f30
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
movsx ecx, word [ebx]
mov dword [esp + 0x54], ecx
movsx 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, 0x7fff
jl 0x10048038
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx], cx
jmp 0x10048055
cmp ebx, 0xffff8000
jg 0x1004804e
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx], cx
jmp 0x10048055
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0x7fff
jl 0x10048076
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx + ebp], cx
jmp 0x10048095
cmp ebx, 0xffff8000
jg 0x1004808d
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx + ebp], cx
jmp 0x10048095
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 0x10047f30
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
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
movsx ecx, word [ebx]
mov dword [esp + 0x54], ecx
movsx 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 0x100480e2
jmp 0x10048d23
cmp eax, 6
jne 0x10048477
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048391
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x10048391
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
lea esp, [esp]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movsx ecx, word [ebx]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movsx 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, 0x7fff
jl 0x100482f6
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx], cx
jmp 0x10048313
cmp ebx, 0xffff8000
jg 0x1004830c
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx], cx
jmp 0x10048313
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0x7fff
jl 0x10048334
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx + ebp], cx
jmp 0x10048353
cmp ebx, 0xffff8000
jg 0x1004834b
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx + ebp], cx
jmp 0x10048353
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 0x10048210
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movsx ecx, word [ebx]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movsx 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 0x100483a0
jmp 0x10048d23
cmp eax, 5
jne 0x100486c9
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048601
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x10048601
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
lea esp, [esp]
movsx ecx, word [ebx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movsx 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, 0x7fff
jl 0x1004856f
mov ecx, 0x7fff
jmp 0x1004857c
cmp ecx, 0xffff8000
jg 0x1004857c
mov ecx, 0xffff8000
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0x7fff
jl 0x100485a4
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx + ebp], cx
jmp 0x100485c3
cmp ebx, 0xffff8000
jg 0x100485bb
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx + ebp], cx
jmp 0x100485c3
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 0x100484b0
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
movsx ecx, word [ebx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
movsx 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 0x10048610
jmp 0x10048d23
cmp eax, 4
jne 0x100488cb
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048825
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x10048825
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
mov edi, edi
mov ecx, edi
movsx edi, word [ebx]
movsx 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, 0x7fff
jl 0x10048793
mov ecx, 0x7fff
jmp 0x100487a0
cmp ecx, 0xffff8000
jg 0x100487a0
mov ecx, 0xffff8000
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0x7fff
jl 0x100487c8
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx + ebp], cx
jmp 0x100487e7
cmp ebx, 0xffff8000
jg 0x100487df
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx + ebp], cx
jmp 0x100487e7
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 0x10048700
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
mov dword [esp + 0x14], edi
movsx edi, word [ebx]
movsx 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 0x10048834
jmp 0x10048d23
cmp eax, 3
jne 0x10048a8b
mov eax, dword [esp + 0x64]
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048a05
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], eax
jl 0x10048a05
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
mov ecx, edi
movsx edi, word [ebx + ebp]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movsx 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, 0x7fff
jl 0x10048973
mov ecx, 0x7fff
jmp 0x10048980
cmp ecx, 0xffff8000
jg 0x10048980
mov ecx, 0xffff8000
mov ebx, dword [esp + 0x10]
mov word [ebx], cx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
sar ebx, cl
cmp ebx, 0x7fff
jl 0x100489a8
mov ebx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [ebx + ebp], cx
jmp 0x100489c7
cmp ebx, 0xffff8000
jg 0x100489bf
mov ebx, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [ebx + ebp], cx
jmp 0x100489c7
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 0x10048900
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
mov dword [esp + 0x14], edi
movsx edi, word [ebx + ebp]
mov ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x28]
mov ecx, edx
movsx 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 0x10048a14
jmp 0x10048d23
cmp eax, 2
mov eax, dword [esp + 0x64]
jne 0x10048c15
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048bb1
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x58]
jl 0x10048bb1
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
movsx ecx, word [ebx]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movsx 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, 0x7fff
jl 0x10048b20
mov edi, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [edi], cx
jmp 0x10048b3d
cmp edi, 0xffff8000
jg 0x10048b36
mov edi, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [edi], cx
jmp 0x10048b3d
mov ecx, dword [esp + 0x10]
mov word [ecx], di
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
sar edi, cl
cmp edi, 0x7fff
jl 0x10048b5e
mov edi, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [edi + ebp], cx
jmp 0x10048b7d
cmp edi, 0xffff8000
jg 0x10048b75
mov edi, dword [esp + 0x10]
mov ecx, 0xffff8000
mov word [edi + ebp], cx
jmp 0x10048b7d
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 0x10048ac0
jmp 0x10048d23
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
movsx edi, word [ebx]
mov ecx, edx
movsx 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 0x10048bc0
jmp 0x10048d23
dec eax
cmp dword [esp + 0x70], eax
jl 0x10048ceb
mov edx, dword [esp + 0x6c]
cmp edx, dword [esp + 0x58]
jl 0x10048ceb
mov ecx, dword [esp + 0x1c]
xor eax, eax
add ecx, 0xfffffffe
js 0x10048d23
lea ecx, [ecx]
mov ecx, dword [esp + 0x24]
movsx edx, word [ebx]
movsx 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, 0x7fff
jl 0x10048c74
mov edx, dword [esp + 0x10]
mov ecx, 0x7fff
mov word [edx], cx
jmp 0x10048c8c
mov ecx, dword [esp + 0x10]
cmp edx, 0xffff8000
jg 0x10048c85
mov edx, 0xffff8000
mov word [ecx], dx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
sar edi, cl
cmp edi, 0x7fff
jl 0x10048ca5
mov ecx, 0x7fff
mov word [edx + ebp], cx
jmp 0x10048cbc
cmp edi, 0xffff8000
jg 0x10048cb8
mov ecx, 0xffff8000
mov word [edx + ebp], cx
jmp 0x10048cbc
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 0x10048c40
jmp 0x10048d23
mov edx, dword [esp + 0x1c]
xor eax, eax
add edx, 0xfffffffe
js 0x10048d23
jmp 0x10048d00
movsx ecx, word [ebx + ebp]
movsx 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 0x10048d00
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edx
jl 0x10047e10
mov ecx, dword [esp + 0x70]
inc ecx
mov dword [esp + 0x70], ecx
cmp ecx, dword [esp + 0x64]
jl 0x10047db0
cmp eax, dword [esp + 0x1c]
jge 0x10048e21
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 0x10048dcc
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 0x10048db5
lea esp, [esp]
movsx 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 0x10048da0
mov ecx, dword [esp + 0x88]
add ecx, ecx
add dword [esp + 0x2c], ecx
dec dword [esp + 0x68]
jne 0x10048d90
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
sar ebp, cl
cmp ebp, 0x7fff
jl 0x10048de8
mov ecx, dword [esp + 0x10]
mov edx, 0x7fff
mov word [ecx], dx
jmp 0x10048e05
cmp ebp, 0xffff8000
jg 0x10048dfe
mov ecx, dword [esp + 0x10]
mov edx, 0xffff8000
mov word [ecx], dx
jmp 0x10048e05
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 0x10048d70
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 0x10047d90
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
cmp eax, dword [esp + 0x4c]
jl 0x10047d20
lea eax, [esp + 0x42c]
cmp esi, eax
je 0x10048e81
push esi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xa8]
cmp eax, ecx
je 0x10048e99
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