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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x640fcb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6821f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
cmp eax, dword [ebp - 4]
je 0x640fb5
mov ebx, dword [ebp - 4]
push 0x40
push ebx
call fcn.0058b1d0
test eax, eax
jne 0x640fb5
cmp word [ebx], 0x5a4d
jne 0x640fb5
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 8], eax
push 0x120
mov eax, dword [ebp - 8]
push eax
call fcn.0058b1d0
test eax, eax
jne 0x640fb5
push 0x640fdc
call fcn.0058b090
mov dword [ebp - 0x18], eax
push 0x640fec
call fcn.0058b090
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 0
je 0x640f1b
mov eax, dword [0x6821f4]
mov eax, dword [eax]
cmp byte [eax + 0x4f4], 0
je 0x640e37
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00592d68
mov eax, dword [ebp - 0x28]
call fcn.00642bf4
test al, al
jne 0x640e3b
xor eax, eax
jmp 0x640e3d
mov al, 1
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x640eff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x640e69
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x640efb
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], eax
jmp 0x640ef2
mov edi, eax
mov esi, 0x1b
mov ebx, 0x68027c
mov eax, dword [ebx]
cmp eax, edi
je 0x640e9a
cmp byte [ebp - 0x1d], 0
je 0x640ee8
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x640ee8
lea eax, [ebp - 0x14]
push eax
push 4
push 4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x682394]
mov eax, dword [eax]
call eax
test eax, eax
je 0x640ee8
cmp byte [ebp - 0x1d], 0
je 0x640ec9
cmp dword [ebx + 0xc], 0
je 0x640ec9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
jmp 0x640ed1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx + 4]
mov dword [eax], edx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x682394]
mov eax, dword [eax]
call eax
add ebx, 0x20
dec esi
jne 0x640e87
add dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x640e7b
add dword [ebp - 0xc], 0x14
push 0x14
mov eax, dword [ebp - 0xc]
push eax
call fcn.0058b1d0
test eax, eax
jne 0x640f1b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jne 0x640e54
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
je 0x640f2f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jne 0x640fb5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x640fb5
mov ebx, eax
add ebx, dword [ebp - 4]
push 0x28
push ebx
call fcn.0058b1d0
test eax, eax
jne 0x640fb5
mov esi, dword [ebx + 0x1c]
add esi, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
dec eax
test eax, eax
jl 0x640fb5
inc eax
mov dword [ebp - 0x24], eax
test byte [esi + 3], 0x80
jne 0x640fad
mov edi, 0x1b
mov ebx, 0x68027c
mov eax, dword [esi]
add eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x640fa7
lea eax, [ebp - 0x14]
push eax
push 4
push 4
push esi
mov eax, dword [0x682394]
mov eax, dword [eax]
call eax
test eax, eax
je 0x640fa7
mov eax, dword [ebx + 4]
sub eax, dword [ebp - 4]
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 4
push esi
mov eax, dword [0x682394]
mov eax, dword [eax]
call eax
add ebx, 0x20
dec edi
jne 0x640f6c
add esi, 4
dec dword [ebp - 0x24]
jne 0x640f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x640fd2
lea eax, [ebp - 0x28]
call fcn.005884ac
ret