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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x64089a
sub esp, 0xa8
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x6404cb
mov ecx, dword [eax + 4]
lea edx, [0x8a1810]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0040b550
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xb0]
jmp 0x6404cd
mov ecx, eax
test eax, eax
je 0x6404dc
mov ecx, eax
mov eax, dword [esp + 0xb4]
jmp 0x640514
mov dword [esp + 0xa0], ecx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa4], eax
lea eax, [0x6d5e80]
mov dword [esp], eax
lea eax, [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.0040b2d0
mov eax, dword [esp + 8]
lea ecx, [0x734650]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xac]
mov dword [esp], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 4], edx
call fcn.00640170
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0xc]
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x640568
mov ebx, dword [esp + 0x7c]
add ebx, 0x14
mov ebp, dword [esp + 0x48]
dec ebp
mov esi, edx
mov edx, ebp
mov ebp, eax
mov eax, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x54]
test edx, edx
jle 0x6405d9
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x6c], esi
mov dword [esp + 0x7c], eax
lea edi, [esp + 0x58]
mov esi, eax
call fcn.004778be
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0061a230
movzx eax, byte [esp + 8]
test al, al
je 0x6405c8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
xor edx, edx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x28]
jmp 0x640627
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c]
jmp 0x64054e
lea eax, [0x8a27c0]
mov dword [esp], eax
lea eax, [0x6afc20]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0048e660
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0xa8
ret
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x44]
mov ebp, esi
mov esi, ebx
mov ebx, eax
mov eax, dword [esp + 0x78]
cmp edx, ecx
jge 0x6407b4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x38], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebp, dword [0x8a5fd0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004d1c00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00608610
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x80]
mov edx, eax
xor eax, eax
call fcn.004773d8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], 2
lea eax, [0x7022b9]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x9c], 2
lea ebx, [0x7022bb]
mov dword [esp + 0x98], ebx
xor ebp, ebp
jmp 0x640818
mov ebp, dword [esp + 0xbc]
test ebp, ebp
je 0x6407a3
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x640792
mov ebx, dword [esp + 0x3c]
inc ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
jb 0x64071d
mov esi, dword [esp + 0x74]
jmp 0x640760
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x6c0080]
mov dword [esp + 0x10], eax
call fcn.00472770
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov esi, ebp
mov ebp, dword [esp + 0xbc]
lea edi, [esi + ebx*8 - 4]
mov dword [edi], ecx
mov ecx, dword [0x8c88d8]
lea edi, [esi + ebx*8 - 8]
test ecx, ecx
je 0x64078b
mov ecx, edi
call fcn.004772f0
mov dword [edi], edx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0xbc]
mov edi, ecx
mov dword [edi], edx
jmp 0x640612
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x74]
jmp 0x640612
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x74]
jmp 0x640612
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x6407f2
mov edx, dword [eax + 0x30]
test edx, edx
je 0x6407f2
mov eax, dword [edx]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call eax
mov eax, dword [esp + 0xbc]
xor esi, esi
xor ebx, ebx
xor ebp, ebp
mov eax, esi
mov ecx, ebx
mov edx, ebp
jmp 0x64054e
mov eax, dword [esp + 0x34]
lea ebp, [eax + 1]
lea eax, [0x7022b9]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
lea ebx, [0x7022bb]
cmp ebp, 4
jge 0x6406f0
mov dword [esp + 0x34], ebp
lea eax, [esp + ebp*8 + 0x80]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0xc]
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6407fd
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
lea ecx, [0x8a27c0]
mov dword [esp], ecx
lea ecx, [0x6afc20]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.0048e660
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc4], eax
add esp, 0xa8
ret
call fcn.00475ee0
jmp fcn.00640480