Function at 0x584916
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.00597f72
mov ecx, ebp
mov ebx, eax
call fcn.00598045
sub ebx, eax
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.00598045
mov esi, dword [esp + 0x6c]
mov edi, esi
sub edi, eax
cmp edi, ebx
jle 0x584951
mov edi, ebx
test edi, edi
jns 0x584957
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.00596d1c
movzx eax, byte [eax + 1]
mov dword [esp + 0x18], eax
cmp edi, ebx
jge 0x5849d4
push dword [esp + 0x10]
mov ecx, ebp
call fcn.00596d1c
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.006728f0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
pop ecx
pop ecx
call fcn.00642fc0
push 0x60
push dword [0x7c1ee0]
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 0x584965
test esi, esi
jle 0x584a28
mov ecx, 0x7116e8
cmp ecx, 0x7116c8
jl 0x584a28
mov edx, dword [ecx]
mov edi, esi
mov eax, dword [esp + edx*4 + 0x3c]
cmp esi, eax
jl 0x584a19
mov edi, eax
sub eax, edi
sub esi, edi
sub ecx, 4
mov dword [esp + edx*4 + 0x3c], eax
test esi, esi
jg 0x584a03
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 0x584a2f
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.0058ff26
push 5
push esi
mov ecx, ebx
call fcn.0058ff0c
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.00598a75
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.00598a75
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.00598a75
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 [0x7129f8]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp qword [esp]
call fcn.006728f0
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
call fcn.00642fc0
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 [0x712a00]
fmul qword [0x6d02b8]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp qword [esp]
call fcn.00672b60
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
pop ecx
pop ecx
call fcn.00642fc0
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.00598a75
inc ebx
add edi, esi
cmp ebx, 4
jl 0x584b98
mov ecx, dword [esp + 0x14]
call fcn.005868e7
mov ecx, dword [esp + 0x14]
call fcn.005832e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4