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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6409dc
sub esp, 0x74
mov eax, dword [esp + 0x84]
test eax, eax
je 0x6406d0
mov ecx, eax
shr eax, 0x1f
add eax, ecx
sar eax, 1
mov edx, dword [esp + 0x80]
mov ebx, ecx
sub ecx, edx
cmp edx, eax
jg 0x640640
mov eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
sub ebx, eax
mov dword [esp + 0x50], ebx
lea edx, [ecx - 2]
mov dword [esp + 0x44], edx
lea ebp, [ebx - 3]
mov dword [esp + 0x30], ebp
nop
mov esi, dword [esp + 0x78]
mov dword [esp], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 4], esi
lea esi, [0x6eff58]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004d2fe0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x44]
xor edi, edi
mov edi, 1
xchg edi, eax
mov byte [esp + 0x2f], al
xchg edi, eax
xor edi, edi
mov dword [esp + 0x34], edi
xor edi, edi
mov dword [esp + 0x68], edi
xor edi, edi
jmp 0x640715
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
add esp, 0x74
ret
lea edi, [ebp + 1]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov edx, ebp
mov ebx, esi
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
cmp edi, eax
jge 0x6407f1
mov dword [esp + 0x40], edi
lea ecx, [ecx + edi*8]
dec eax
mov dword [esp + 0x4c], eax
mov ebp, dword [ecx]
mov ecx, dword [ecx + 4]
cmp edi, eax
jge 0x64089d
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
lea eax, [0x690d83]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.00451270
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
jmp 0x64089d
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
cmp ebp, esi
jge 0x6406ea
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, str.__m
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x18], edx
lea ebx, [0x6eff58]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
call fcn.004513a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
movzx ebx, byte [esp + 0x2f]
mov ebp, dword [esp + 0x40]
jmp 0x6406ea
mov eax, dword [esp + 0x68]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], eax
add esp, 0x74
ret
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x3c], edx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, str.__m
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x18], edx
lea ebx, [0x6eff58]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
call fcn.004513a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, ebx
mov ebx, ebp
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
test edi, edi
jne 0x640915
movzx eax, byte [esp + 0x2f]
test al, al
je 0x64091a
cmp ecx, esi
jge 0x6408ba
mov esi, ecx
xor eax, eax
mov dword [esp + 0x3c], eax
xor ecx, ecx
jmp 0x6408d6
jb 0x6409d2
mov eax, dword [esp + 0x58]
sub ecx, eax
add ecx, 2
mov dword [esp + 0x3c], ecx
neg ecx
sar ecx, 0x1f
and ecx, esi
add ecx, ebp
mov dword [esp + 0x6c], ecx
mov dword [esp], 0
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.00451270
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov ebp, dword [esp + 0x6c]
jmp 0x6409b8
movzx eax, byte [esp + 0x2f]
mov dword [esp + 0x70], ebp
cmp ecx, ebx
jge 0x640934
mov byte [esp + 0x5c], al
xor eax, eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x6c], eax
jmp 0x640952
jb 0x6409c9
sub ecx, edx
add ecx, 3
mov dword [esp + 0x3c], ecx
neg ecx
sar ecx, 0x1f
and ecx, ebx
add ecx, ebp
mov dword [esp + 0x6c], ecx
mov ecx, ebx
mov dword [esp + 0x48], ecx
lea eax, str.__m
mov dword [esp], eax
mov dword [esp + 4], 1
mov edx, dword [esp + 0x54]
lea ebx, [edx + 1]
mov dword [esp + 8], ebx
call fcn.004d3a10
mov dword [esp], 0
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
call fcn.00451310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x2f]
mov ebp, dword [esp + 0x6c]
mov byte [esp + 0x2f], bl
test edx, edx
jne 0x64080b
jmp 0x64077d
mov edx, ecx
mov ecx, ebx
call fcn.004680b0
mov edx, ecx
mov ecx, esi
call fcn.004680b0
nop
call fcn.00466c30
jmp fcn.00640600