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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push dword [esp + 0x74]
lea eax, [esp + 0x18]
push dword [esp + 0x70]
push eax
call fcn.64058430
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [0x640b0df0]
lea ecx, [esp + 0x1c]
call dword [0x640b0df8]
push ecx
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [eax], 2
lea eax, [esp + 0x20]
push eax
call dword [0x640b07cc]
mov edi, dword [0x640b09c4]
lea ecx, [esp + 0x34]
push 1
call edi
mov esi, dword [0x640b09cc]
lea ecx, [esp + 0x34]
push 1
call esi
push 1
lea ecx, [esp + 0x38]
call esi
push 0
push 6
lea ecx, [esp + 0x38]
call dword [0x640b098c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov esi, dword [eax + 4]
call dword [0x640b0de8]
mov ebx, dword [0x640b09d8]
lea ecx, [esp + 0x34]
push esi
push eax
call ebx
lea ecx, [esp + 0x18]
call dword [0x640b0df8]
mov ebp, dword [esp + 0x70]
cmp word [ebp + 0x28], 0
je 0x6405898c
lea ecx, [esp + 0x14]
call dword [0x640b0df8]
lea eax, [ebp + 0x38]
push eax
lea ecx, [esp + 0x50]
call dword [0x640b07d0]
push 1
lea ecx, [esp + 0x50]
call edi
mov esi, dword [0x640b09c8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x50]
call esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x50]
call esi
mov ax, word [esp + 0x10]
test ax, ax
je 0x64058969
mov edi, dword [0x640b09dc]
nop
cmp ax, 7
movzx eax, word [esp + 0x70]
push eax
je 0x64058944
lea ecx, [esp + 0x50]
call edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x50]
call esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x50]
call esi
mov ax, word [esp + 0x10]
test ax, ax
jne 0x64058910
jmp 0x64058969
lea ecx, [esp + 0x18]
call dword [0x640b0dec]
movzx esi, word [esp + 0x70]
lea ecx, [esp + 0x14]
call dword [0x640b0d00]
push esi
push eax
lea ecx, [esp + 0x54]
call dword [0x640b09d4]
lea ecx, [esp + 0x4c]
call dword [0x640b0748]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call dword [0x640b034c]
lea ecx, [esp + 0x14]
call dword [0x640b0df0]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
test esi, esi
je 0x640589ab
lea ecx, [esp + 0x18]
call dword [0x640b0de8]
push esi
push eax
lea ecx, [esp + 0x3c]
call ebx
jmp 0x640589d9
call dword [0x640b09e0]
mov ecx, eax
mov edi, 0x989680
add ecx, 0xb6109100
adc edx, 2
mov eax, edx
mul edi
mov esi, eax
mov eax, ecx
mul edi
lea ecx, [esp + 0x34]
add esi, edx
push esi
push eax
call dword [0x640b07d8]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x2c]
push 8
push eax
lea ecx, [ecx + 0x28]
call dword [0x640b0994]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov esi, dword [eax + 4]
call dword [0x640b0de8]
push esi
push eax
lea ecx, [esp + 0x3c]
call ebx
mov edi, dword [0x640b098c]
lea ecx, [esp + 0x28]
push 0
push 4
call edi
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov esi, dword [eax + 4]
call dword [0x640b0de8]
push esi
push eax
lea ecx, [esp + 0x3c]
call ebx
cmp word [ebp + 0x28], 0
jbe 0x64058a4d
mov eax, dword [ebp + 0x38]
lea ecx, [ebp + 0x38]
mov esi, dword [eax + 4]
call dword [0x640b0de8]
push esi
push eax
lea ecx, [esp + 0x3c]
call ebx
push 0
push 4
lea ecx, [esp + 0x2c]
call edi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov esi, dword [eax + 4]
call dword [0x640b0de8]
push esi
push eax
lea ecx, [esp + 0x3c]
call ebx
push 8
lea eax, [ebp + 0x18]
push eax
lea ecx, [esp + 0x28]
call dword [0x640b0d0c]
mov esi, dword [0x640b0368]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call esi
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x78]
add eax, 0x58
push eax
push edi
call fcn.64058570
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call esi
lea ecx, [esp + 0x20]
call dword [0x640b0df0]
lea ecx, [esp + 0x24]
call dword [0x640b0df0]
lea ecx, [esp + 0x28]
call dword [0x640b0df0]
lea ecx, [esp + 0x2c]
call dword [0x640b0df0]
lea ecx, [esp + 0x18]
call dword [0x640b0df0]
lea ecx, [esp + 0x30]
call dword [0x640b0df0]
lea ecx, [esp + 0x34]
call dword [0x640b0748]
lea ecx, [esp + 0x1c]
call dword [0x640b0df0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret