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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [0x7c67dc]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x50]
fld dword [edi + 0x18]
mov esi, ecx
call sub.MSVCRT.dll__ftol
fld dword [edi + 0x20]
mov dword [esp + 0x10], eax
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebx + 0x4c]
push 3
mov dword [esp + 0x18], eax
call fcn.00406a50
mov ebp, eax
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x4c]
mov al, byte [ecx + 0x1b38]
xor ebx, ebx
cmp al, bl
mov dword [esp + 0x18], ebp
je 0x58ea3f
push 0xffffffffffffffff
call fcn.00407790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi + 0x58]
and edx, 0xff
mov edi, ecx
mov ecx, dword [esi + 0x50]
or edi, edx
cmp eax, ecx
je 0x58ea62
mov edi, 1
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x54]
je 0x58ea70
mov edi, 1
call fcn.0063fc50
cmp edi, ebx
je 0x58ec5b
cmp byte [0x7d207d], bl
je 0x58eab0
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
je 0x58ec5f
push ecx
push eax
push edi
push 0xffff803c
call fcn.00583460
jmp 0x58ec5f
mov edx, dword [0x7c67dc]
mov edi, dword [edx + 0x50]
fld dword [edi + 0x18]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fadd dword [0x746498]
call sub.MSVCRT.dll__ftol
fld dword [edi + 0x20]
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fadd dword [0x746498]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x28], eax
mov eax, dword [0x7d1c28]
mov ebp, dword [eax + 0x20]
cmp ebp, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
je 0x58eb53
mov edi, dword [ebp - 4]
cmp byte [edi + 0x75], bl
je 0x58eb45
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0058ede0
cmp eax, ebx
jne 0x58eb73
cmp byte [edi + 0x75], bl
je 0x58eb45
cmp byte [edi + 0x7f], bl
je 0x58eb45
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, edi
call fcn.00587730
test al, al
jne 0x58eb55
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1c]
add ebp, 0xfffffffc
cmp ebp, eax
jne 0x58eb08
xor edi, edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
jne 0x58eb77
cmp edi, ebx
je 0x58eb77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
jmp 0x58ec57
mov edi, eax
jmp 0x58eb55
cmp eax, ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], edi
je 0x58ebef
cmp edi, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x64], 7
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
je 0x58ebbf
mov dword [esi + 0x74], 6
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], edi
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x4c]
push 2
push ebx
call fcn.00406a80
test eax, eax
jne 0x58ec47
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x4c]
push 3
push ebx
call fcn.00406a80
test eax, eax
je 0x58edc7
jmp 0x58ec47
cmp edi, ebx
je 0x58ec52
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x64], 6
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x4c]
push 2
push ebx
call fcn.00406a80
test eax, eax
jne 0x58ec47
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x4c]
push 3
push ebx
call fcn.00406a80
test eax, eax
je 0x58edc7
mov ecx, esi
call fcn.0058f060
cmp edi, ebx
jne 0x58ec57
call fcn.00595e30
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x4c]
push 2
push ebx
call fcn.00406a80
test eax, eax
je 0x58ec93
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x64], 2
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
jmp 0x58edae
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x4c]
push 3
push ebx
call fcn.00406a80
test eax, eax
je 0x58ece3
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x68], edi
mov dword [esi + 0x50], edi
pop edi
mov eax, ecx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x64], 1
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
mov byte [esi + 0x58], 1
mov dword [esi + 0x54], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
cmp ebp, ebx
jle 0x58ed30
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x28], edx
sub esp, 8
fild dword [esp + 0x30]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x20]
mov dword [esi + 0x64], 0xe
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebp
jmp 0x58edab
jge 0x58ed7b
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x28], edx
sub esp, 8
fild dword [esp + 0x30]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x20]
mov dword [esi + 0x64], 0xf
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebp
jmp 0x58edab
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x4c]
push 1
push ebx
call fcn.00406a80
test eax, eax
je 0x58edbd
cmp byte [0x7d207d], bl
jne 0x58edbd
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x64], 5
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4