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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x60]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jne 0x640b1b
cmp dword [ebx + 0x64], ebp
je 0x640b37
mov eax, dword [ebx + 0x2c]
mov esi, 1
push esi
push eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 0xc24]
call fcn.0064b0cc
test eax, eax
je 0x640b39
xor esi, esi
mov edi, dword [ebx + 0x68]
push edi
mov dword [esp + 0x24], edi
call dword [fcn.005f62b8]
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x50]
cmp edx, dword [ecx + 0x40]
je 0x640b62
mov ecx, ebx
call fcn.0064098c
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x50], ecx
cmp esi, ebp
mov ecx, ebx
je 0x641001
call fcn.0063ff3c
mov edx, dword [ebx + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.0063f01c
cmp dword [esp + 0x24], ebp
je 0x641006
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 0x3c]
jbe 0x640be9
cmp dword [eax + 0x7c], ebp
je 0x640be9
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x60], ebp
je 0x640ba5
cmp dword [eax + 0x34], ebp
jne 0x640c05
mov esi, dword [ebx + 0x64]
cmp esi, ebp
mov byte [esp + 0x10], 0
je 0x640c0a
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x640be1
mov ecx, dword [eax + 0x50]
call fcn.00662d2c
test al, al
jne 0x640bd9
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.006575dc
test al, al
je 0x640be1
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
jne 0x640c05
mov esi, dword [esi]
cmp esi, ebp
jne 0x640bb1
jmp 0x640c0a
lea ecx, [esp + 0x24]
call fcn.0063f07c
push edi
call dword [fcn.005f62b4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov byte [esp + 0x10], 1
mov ecx, dword [ebx + 0x68]
mov eax, dword [ecx + 0x28]
mov edi, 0x64
xor esi, esi
cmp eax, edi
je 0x640c55
mov ecx, dword [ebx + 0x2c]
push 0x6041a0
call fcn.005e177c
mov ecx, dword [ebx + 0x24]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ecx, ebp
je 0x640c55
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x398]
push eax
call fcn.0067057c
test al, al
je 0x640c55
mov esi, 1
mov al, byte [esp + 0x10]
test al, al
jne 0x640c65
cmp esi, ebp
je 0x640f1b
mov ecx, ebx
call fcn.0063f2fc
mov ecx, dword [ebx + 0x68]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [ecx + 0x7c]
mov ecx, dword [ebx + 0x54]
push eax
push edx
call fcn.005d379c
mov esi, dword [ebx + 0x64]
cmp esi, ebp
je 0x640e58
jmp 0x640c9c
mov eax, dword [esi + 4]
cmp word [eax + 0xc], 2
jne 0x640e49
mov ecx, dword [eax + 0x50]
call fcn.00662d2c
test al, al
jne 0x640ccc
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.006575dc
test al, al
je 0x640e49
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], ebp
je 0x640e49
cmp dword [eax + 0xf4], ebp
jne 0x640d02
push 0x50
call fcn.0071528c
add esp, 4
cmp eax, ebp
je 0x640cf7
mov ecx, eax
call fcn.005d37ac
jmp 0x640cf9
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [ecx + 0xf4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xf4]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x54]
push edx
call dword [eax + 4]
mov edi, eax
cmp edi, ebp
je 0x640e49
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00664aec
movzx eax, byte [edi + 0xd]
movzx ecx, byte [edi + 0xe]
xor edx, edx
mov dh, byte [edi + 0xf]
mov dl, byte [edi + 0xc]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov ecx, dword [esi + 4]
push edx
add ecx, 0x32c
call fcn.0065790c
push eax
mov ecx, edi
call fcn.00664abc
mov eax, dword [esi + 4]
cmp dword [eax + 0xfc], 1
jne 0x640de0
mov ecx, dword [eax + 0xf8]
test ecx, ecx
jle 0x640dd3
push 0x18
call fcn.0071528c
add esp, 4
test eax, eax
je 0x640d93
push 1
mov ecx, eax
call fcn.00664a0c
mov ebp, eax
jmp 0x640d95
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.00664a9c
mov ecx, edi
mov byte [ebp + 8], 9
call fcn.0063eb6c
mov edx, dword [esi + 4]
add eax, dword [edx + 0xf8]
push eax
mov ecx, ebp
call fcn.00664abc
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebp + 0x14]
mov dl, byte [eax + 0x38]
mov byte [ecx], dl
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, ebp
call fcn.00664aec
mov edx, dword [esi + 4]
mov dword [edx + 0xfc], 2
mov ecx, dword [esi + 4]
add ecx, 0x1d0
call fcn.006575dc
test al, al
je 0x640e16
mov ecx, dword [esi + 4]
push edi
add ecx, 0x1d0
call fcn.0065b25c
test ebp, ebp
je 0x640e3d
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x1d0
call fcn.0065b25c
jmp 0x640e3d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x50]
call fcn.00662d0c
mov ecx, dword [esi + 4]
push edi
add ecx, 0x50
call fcn.0064499c
test ebp, ebp
je 0x640e3d
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x50
call fcn.0064499c
mov ecx, dword [esi + 4]
push 1
call fcn.006580fc
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x640c9c
mov edi, 0x64
cmp dword [ebx + 0x58], ebp
jne 0x640e64
cmp dword [esp + 0x14], 0xffffffff
jne 0x640ec3
cmp dword [ebx + 0x5c], ebp
jne 0x640e85
push 0x50
call fcn.0071528c
add esp, 4
cmp eax, ebp
je 0x640e80
mov ecx, eax
call fcn.005d37ac
jmp 0x640e82
xor eax, eax
mov dword [ebx + 0x5c], eax
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x54]
push eax
call dword [edx + 4]
mov esi, eax
cmp dword [ebx + 0x58], ebp
je 0x640eaf
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x640ec3
mov dword [esp + 0x18], 1
jmp 0x640ec3
cmp esi, ebp
je 0x640ec3
mov ecx, esi
call fcn.00664a6c
push esi
call fcn.007152ac
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, edx
imul ecx, ecx, 0x64
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [ebx + 0x40], eax
jle 0x640eeb
mov dword [ebx + 0x40], edi
cmp dword [ebx + 0x40], ebp
jge 0x640ef3
mov dword [ebx + 0x40], ebp
mov ecx, dword [ebx + 0x68]
cmp dword [ecx + 0x28], edi
je 0x640f1b
mov edx, dword [esp + 0x30]
mov dword [edx], 1
mov eax, dword [ebx + 0x68]
mov esi, dword [eax + 0x28]
mov ecx, dword [ebx + 0x40]
mov eax, dword [esp + 0x34]
xor edx, edx
cmp ecx, esi
setge dl
mov dword [eax], edx
lea esi, [ebx + 0x64]
mov edi, 2
mov eax, dword [esi]
cmp eax, ebp
je 0x640f3d
lea ecx, [ecx]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xfc], edi
je 0x640f79
mov eax, dword [eax]
cmp eax, ebp
jne 0x640f2c
cmp dword [esp + 0x18], ebp
je 0x640f8f
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x84]
push esi
call dword [fcn.005f62b8]
push esi
mov esi, dword [fcn.005f62b4]
mov dword [edi + 0x9c], ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [eax + 4]
mov dword [edx + 0xfc], ebp
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0064138c
jmp 0x640f23
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x640faa
movzx edx, byte [esi + 0xb]
xor eax, eax
mov ah, byte [esi + 9]
mov al, byte [esi + 0xa]
shl eax, 8
or eax, edx
jmp 0x640faf
mov eax, 1
mov ecx, dword [ebx + 0x68]
fld qword [ecx + 0x58]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [ebx + 0x44]
call fcn.0063ebcc
push esi
mov ecx, ebx
call fcn.0063fa7c
mov ebx, dword [esp + 0x28]
lea esi, [ebx + 0x84]
push esi
mov edi, eax
call dword [fcn.005f62b8]
push esi
mov esi, dword [fcn.005f62b4]
mov dword [ebx + 0x9c], ebp
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.0064098c
push edi
call dword [fcn.005f62b4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8