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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebp, [esi + 0x78]
mov ecx, ebp
call fcn.005a0ac2
mov ecx, ebp
mov ebx, eax
call fcn.005a0b95
sub ebx, eax
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.005a0b95
mov esi, dword [esp + 0x6c]
mov edi, esi
sub edi, eax
cmp edi, ebx
jle 0x58bedd
mov edi, ebx
test edi, edi
jns 0x58bee3
xor edi, edi
push 8
pop ecx
neg esi
mov dword [esp + 0x10], ecx
or dword [esp + 0x64], 0xffffffff
push ecx
mov ecx, ebp
call fcn.0059f86c
movzx eax, byte [eax + 1]
mov dword [esp + 0x18], eax
cmp edi, ebx
jge 0x58bf60
push dword [esp + 0x10]
mov ecx, ebp
call fcn.0059f86c
mov ecx, ebx
sub ecx, edi
movzx eax, byte [eax]
imul ecx, eax
mov eax, edi
imul eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
push ecx
push ecx
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fild dword [esp + 0x24]
fstp dword [esp + 0x20]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp qword [esp]
call fcn.00682000
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
pop ecx
pop ecx
call fcn.00652680
push 0x60
push dword [0x7d46e8]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov ecx, dword [esp + 0x10]
add esi, eax
mov dword [esp + ecx*4 + 0x40], eax
sub ecx, 1
mov dword [esp + 0x10], ecx
jns 0x58bef1
test esi, esi
jle 0x58bfb4
mov ecx, 0x71f8e0
cmp ecx, 0x71f8c0
jl 0x58bfb4
mov edx, dword [ecx]
mov edi, esi
mov eax, dword [esp + edx*4 + 0x3c]
cmp esi, eax
jl 0x58bfa5
mov edi, eax
sub eax, edi
sub esi, edi
sub ecx, 4
mov dword [esp + edx*4 + 0x3c], eax
test esi, esi
jg 0x58bf8f
mov ecx, dword [esp + 0x6c]
push 8
pop eax
sub ecx, dword [esp + eax*4 + 0x40]
mov dword [esp + eax*4 + 0x40], ecx
sub eax, 1
jns 0x58bfbb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push 0xa
push 0x404
mov esi, 0x1bc
mov ecx, ebx
push esi
call fcn.00597798
push 5
push esi
mov ecx, ebx
call fcn.0059777e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x20]
push ecx
push 6
push 0x40a
push eax
call esi
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
push 6
call fcn.005a15c5
push 0x1bc
push dword [ebx + 4]
call edi
lea ecx, [esp + 0x20]
push ecx
push 1
push 0x40a
push eax
call esi
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
push 1
call fcn.005a15c5
push 0x1bc
push dword [ebx + 4]
call edi
lea ecx, [esp + 0x20]
push ecx
push 7
push 0x40a
push eax
call esi
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
push 7
call fcn.005a15c5
push 0x1bc
push dword [ebx + 4]
call edi
lea ecx, [esp + 0x20]
push ecx
push 5
push 0x40a
push eax
call esi
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
sub eax, 0x40
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
push ecx
push ecx
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fdiv qword [0x720bc0]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp qword [esp]
call fcn.00682000
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
call fcn.00652680
fild dword [esp + 0x34]
mov esi, eax
add dword [esp + 0x28], esi
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fild dword [esp + 0x2c]
fstp dword [esp + 0x74]
fsub dword [esp + 0x74]
fsub qword [0x720bc8]
fmul qword [0x6dd150]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp qword [esp]
call fcn.00682270
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
pop ecx
pop ecx
call fcn.00652680
add eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov edi, ebx
add eax, 0x10
add esi, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov ecx, ebp
add eax, edi
mov dword [esp + 0x30], eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0xb]
push eax
call fcn.005a15c5
inc ebx
add edi, esi
cmp ebx, 4
jl 0x58c124
mov ecx, dword [esp + 0x14]
call fcn.0058de73
mov ecx, dword [esp + 0x14]
call fcn.0058a826
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4