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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x606040]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x38], ebx
cmp dword [ebx + 0xac], 0
je 0x58cd69
mov esi, dword [ebp + 8]
mov byte [esp + 0x27], 1
test esi, esi
js 0x58cce3
mov edi, dword [ebp + 0xc]
test edi, edi
jns 0x58cd47
lea eax, [esp + 0xc8]
mov dword [esp + 0xc8], 0
push eax
push dword [ebx + 0x20]
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xd0]
sub esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xd4]
sub edi, dword [esp + 0xcc]
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edi
mov byte [esp + 0x27], 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x58cd82
push 0x5a8d24
push 0x5a8d24
push edi
push esi
push 1
mov ecx, ebx
call fcn.0041fbdd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00535334
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0xb4]
cmp eax, 0x7d1b
je 0x58d2e8
cmp eax, 0x7d1a
je 0x58d2e8
mov eax, dword [ebx + 0xac]
mov eax, dword [eax + 0xa0]
mov esi, dword [eax]
cmp esi, eax
je 0x58ce13
xor edi, edi
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
call fcn.0058aa50
push dword [esi + 8]
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0058a5b0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x80]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ecx
mov eax, dword [ebx + 0xac]
mov esi, dword [esi]
cmp esi, dword [eax + 0xa0]
jne 0x58cdb2
mov eax, dword [ebx + 0xac]
fld1
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0xa0]
mov dword [esp + 0x5c], 0
mov esi, dword [eax]
cmp esi, eax
je 0x58d068
fstp qword [esp + 0x10]
call fcn.0041a343
mov ecx, eax
test ecx, ecx
je 0x58ce65
mov eax, dword [ecx]
call dword [eax + 0x74]
test eax, eax
je 0x58ce65
cmp dword [eax + 0x20], 0
je 0x58ce65
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x10]
push 0
call edi
fld1
cmp eax, 0x780
jge 0x58ce76
fst qword [esp + 0x10]
mov eax, dword [esp + 0x20]
fild dword [eax + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x10]
call fcn.0053af60
mov ebx, dword [ebx + 0xac]
fstp qword [esp + 0x50]
mov dword [esp + 0x10], eax
call fcn.0041a343
mov ecx, eax
test ecx, ecx
je 0x58cec0
mov eax, dword [ecx]
call dword [eax + 0x74]
test eax, eax
je 0x58cec0
cmp dword [eax + 0x20], 0
je 0x58cec0
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x50]
push 0
call edi
cmp eax, 0x780
jge 0x58ced1
fld1
fstp qword [esp + 0x50]
fild dword [ebx + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x50]
call fcn.0053af60
mov edi, eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, ecx
sub ecx, dword [esi + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x2c], eax
mov eax, edx
sub edx, dword [esi + 0x48]
mov ebx, dword [esi + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
sub ebx, dword [esi + 0x24]
mov dword [esp + 0xdc], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x44]
mov dword [esp + 0x20], edi
mov dword [esp + 0xd8], edi
add edi, ecx
lea ecx, [edx + eax]
mov dword [esp + 0xe0], edi
sub eax, ecx
mov dword [esp + 0xe4], ecx
add eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
sub eax, edi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
fld1
mov dword [esi + 0x24], edx
lea eax, [edx + ebx]
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x28], ebx
add ecx, ebx
mov ebx, dword [esp + 0x38]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0xdc]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0xe0]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0xe4]
mov dword [esi + 0x50], eax
mov edi, dword [ebx + 0xac]
fstp qword [esp + 0x10]
call fcn.0041a343
mov ecx, eax
test ecx, ecx
je 0x58d00f
mov eax, dword [ecx]
call dword [eax + 0x74]
test eax, eax
je 0x58d00f
cmp dword [eax + 0x20], 0
je 0x58d00f
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x10]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x780
jge 0x58d024
fld1
fstp qword [esp + 0x10]
fild dword [edi + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x10]
call fcn.0053af60
add eax, dword [esp + 0xc]
add eax, dword [esp + 0x4c]
mov esi, dword [esi]
fld1
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0xac]
mov dword [esp + 0x20], eax
cmp esi, dword [eax + 0xa0]
jne 0x58ce3d
fstp st(0)
fld1
mov eax, dword [ebx + 0xac]
xor edx, edx
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0xa0]
mov eax, dword [ecx]
cmp eax, ecx
je 0x58d100
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x34], ecx
cmp esi, dword [eax + 0x2c]
jg 0x58d0bc
mov ecx, dword [eax + 0x24]
mov esi, dword [eax + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x30], ecx
cmp edx, dword [eax + 0x30]
jg 0x58d0ee
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x30], ecx
mov eax, dword [eax]
cmp eax, dword [ebx + 0xa0]
jne 0x58d08a
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x10]
call fcn.0041a343
test eax, eax
je 0x58d128
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x58d128
cmp dword [eax + 0x20], 0
je 0x58d128
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x10]
push 0
call edi
cmp eax, 0x780
jge 0x58d139
fld1
fstp qword [esp + 0x10]
mov eax, dword [esp + 0x20]
fild dword [eax + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x10]
call fcn.0053af60
fld1
add esi, eax
mov eax, dword [ebx + 0xac]
fstp qword [esp + 0x50]
mov dword [esp + 0x10], eax
call fcn.0041a343
test eax, eax
je 0x58d187
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x58d187
cmp dword [eax + 0x20], 0
je 0x58d187
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x50]
push 0
call edi
cmp eax, 0x780
jge 0x58d198
fld1
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x10]
fild dword [eax + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x50]
call fcn.0053af60
add dword [esp + 0x1c], eax
mov ecx, ebx
lea eax, [esp + 0x68]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x6c], 0
push eax
call fcn.0041eb59
cmp dword [esp + 0x68], 0
mov eax, dword [esp + 0x1c]
jne 0x58d202
cmp dword [ebp + 0xc], eax
jge 0x58d202
push 2
call edi
or ecx, 0xffffffff
sub ecx, eax
mov eax, 0
add esi, ecx
sets al
dec eax
and esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebp + 0xc]
push 0x5a8d24
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0xa4]
push ecx
push eax
push esi
push 1
mov ecx, ebx
call fcn.0041fbdd
mov eax, dword [ebx + 0xac]
mov dword [esp + 0x10], eax
cmp byte [eax + 0xb4], 0
jne 0x58d8a7
mov ecx, dword [eax + 0xa0]
xor esi, esi
mov edx, dword [eax + 0x40]
mov eax, dword [ecx]
cmp eax, ecx
je 0x58d2e0
lea ebx, [ebx]
cmp dword [eax + 8], edx
je 0x58d273
mov eax, dword [eax]
cmp eax, ecx
jne 0x58d260
push 1
push esi
jmp 0x58d89e
mov ecx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
fld1
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
fstp qword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
call fcn.0041a343
test eax, eax
je 0x58d2b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x58d2b5
cmp dword [eax + 0x20], 0
je 0x58d2b5
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x50]
push 0
call edi
cmp eax, 0x780
jge 0x58d2c6
fld1
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x10]
fild dword [eax + 4]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fmul qword [esp + 0x50]
call fcn.0053af60
sub esi, eax
push 1
push esi
jmp 0x58d89e
xor eax, eax
mov ecx, ebx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
lea eax, [esp + 0xe8]
push 0x17
push eax
push 1
mov dword [esp + 0xf4], 0x1c
mov dword [esp + 0xf8], 5
call fcn.0040edc4
cmp dword [esp + 0xfc], 0
fldz
fstp qword [esp + 0x28]
je 0x58d380
cmp dword [esp + 0xf4], 0
je 0x58d380
fild dword [esp + 0xfc]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fild dword [esp + 0xf4]
fstp qword [esp + 0x28]
fdiv qword [esp + 0x28]
fstp qword [esp + 0x28]
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.0058aa50
mov ecx, dword [ebx + 0xac]
lea eax, [esp + 0x6c]
push eax
call fcn.005701b0
push 0xfffffffffffffff0
push dword [ebx + 0x20]
mov dword [esp + 0x58], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x200000
jne 0x58d3dd
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
mov dword [esp + 0x10], edi
cmp esi, edi
jle 0x58d3d5
sub esi, edi
mov dword [ebp + 8], esi
mov dword [esp + 0x50], 1
cmp dword [ebx + 0xb4], 0x7d1a
mov edi, dword [esp + 0x44]
je 0x58d400
mov eax, dword [esp + 0x6c]
lea ecx, [edi + eax*2]
mov eax, esi
cdq
idiv ecx
mov ecx, eax
cmp ecx, 1
jge 0x58d405
mov ecx, 1
mov eax, dword [ebx + 0xac]
mov dword [eax + 0xa8], ecx
mov esi, dword [ebx + 0xac]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa8]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [esi + 0xac], eax
mov eax, dword [ebx + 0xac]
mov eax, dword [eax + 0xa0]
mov esi, dword [eax]
cmp esi, eax
je 0x58d705
jmp 0x58d450
mov ecx, dword [ebx + 0xac]
xor eax, eax
mov ecx, dword [ecx + 0xa0]
mov ecx, dword [ecx]
mov edx, ecx
cmp edx, esi
je 0x58d46d
mov edx, dword [edx]
inc eax
cmp edx, esi
jne 0x58d466
mov edx, dword [ebx + 0xac]
mov edx, dword [edx + 0xa8]
mov dword [esp + 0x38], edx
cdq
idiv dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0xc], edx
cmp ecx, esi
je 0x58d497
lea esp, [esp]
mov ecx, dword [ecx]
inc eax
cmp ecx, esi
jne 0x58d490
cdq
idiv dword [esp + 0x38]
cmp dword [ebx + 0xb4], 0x7d1b
mov ecx, eax
mov dword [esp + 0x38], ecx
jne 0x58d4d7
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x48]
lea edi, [edi + eax*2]
imul edi, dword [esp + 0xc]
add edi, eax
mov eax, dword [esp + 0x70]
lea eax, [edx + eax*2]
imul eax, ecx
add eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
jmp 0x58d579
cmp dword [esp + 0x50], 1
mov ecx, dword [ebx + 0xac]
jne 0x58d523
mov eax, dword [esp + 0x10]
sub eax, edi
add eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
lea edx, [edi + eax*2]
imul edx, dword [esp + 0xc]
add edx, eax
mov dword [esp + 0xc], edx
call fcn.0056da30
mov ecx, dword [ebx + 0xac]
mov edi, eax
add edi, dword [esp + 0x48]
imul edi, dword [esp + 0x38]
call fcn.0056da30
add eax, edi
mov dword [esp + 0x1c], eax
jmp 0x58d571
call fcn.0056da30
mov ecx, dword [ebx + 0xac]
mov edi, eax
add edi, dword [esp + 0x48]
imul edi, dword [esp + 0x38]
call fcn.0056da30
mov ecx, dword [ebx + 0xac]
add eax, edi
mov dword [esp + 0x1c], eax
call fcn.0056da30
mov ecx, dword [esp + 0x44]
lea edi, [ecx + eax*2]
mov ecx, dword [ebx + 0xac]
imul edi, dword [esp + 0xc]
call fcn.0056da30
lea edx, [edi + eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0xc]
push dword [esi + 8]
mov ecx, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x50], eax
add ecx, edi
lea eax, [esp + 0x48]
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0xa0]
mov ecx, ebx
push eax
call fcn.0058a5b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
add edx, edi
add eax, ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
sub edx, edi
sub eax, ecx
mov dword [esp + 0xb8], edi
cmp dword [ebx + 0xb4], 0x7d1b
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], edx
jne 0x58d622
mov ecx, dword [ebx + 0xac]
call fcn.0056d8c0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x24]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x58d69b
mov eax, dword [ebx + 0xac]
fld1
sub dword [esp + 0x4c], ecx
sub dword [esp + 0xc], edi
fstp qword [esp + 0x60]
mov dword [esp + 0x38], eax
call fcn.0041a343
test eax, eax
je 0x58d65e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x58d65e
cmp dword [eax + 0x20], 0
je 0x58d65e
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x5c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x3c]
fild dword [eax + 0x28]
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fmul qword [esp + 0x64]
call fcn.0053af60
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, eax
push ecx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
add ecx, edi
mov eax, dword [esp + 0x48]
mov dword [esi + 0x34], edi
add eax, edx
mov edi, dword [esp + 0x44]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0xbc]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0xc4]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0xac]
mov esi, dword [esi]
cmp esi, dword [eax + 0xa0]
jne 0x58d450
cmp dword [ebx + 0xb4], 0x7d1b
mov eax, dword [ebx + 0x84]
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], edi
jne 0x58d75f
mov ecx, dword [ebx + 0xac]
lea eax, [esp + 0xa8]
push eax
call fcn.005701b0
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x48]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xac]
imul ecx, dword [eax + 0xac]
lea esi, [ecx + edx*2]
jmp 0x58d786
mov esi, dword [ebx + 0xac]
mov ecx, esi
call fcn.0056da30
mov edi, eax
mov ecx, esi
add edi, dword [esp + 0x48]
imul edi, dword [esi + 0xac]
call fcn.0056da30
lea esi, [edi + eax]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], esi
cmp eax, esi
jge 0x58d7bc
test edi, edi
jle 0x58d7bc
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, edi
sub ecx, esi
mov esi, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x50], ecx
fld1
mov dword [esp + 0x90], edi
mov edi, dword [ebx + 0xac]
fstp qword [esp + 0x10]
mov dword [esp + 0x94], eax
call fcn.0041a343
test eax, eax
je 0x58d7fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x58d7fa
cmp dword [eax + 0x20], 0
je 0x58d7fa
fld qword [eax + 0x4bf8]
fstp qword [esp + 0x10]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x780
jge 0x58d80f
fld1
fstp qword [esp + 0x10]
fild dword [edi + 4]
fstp qword [esp + 0x60]
fld qword [esp + 0x60]
fmul qword [esp + 0x10]
call fcn.0053af60
cmp dword [ebx + 0xb4], 0x7d1b
mov ecx, eax
jne 0x58d849
mov ecx, dword [ebx + 0xac]
lea eax, [esp + 0xb0]
push eax
call fcn.005701b0
mov ecx, dword [eax + 4]
add ecx, ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x48]
add eax, ecx
mov ecx, ebx
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x94]
push eax
push esi
push dword [esp + 0x5c]
push 1
call fcn.0041fbdd
cmp byte [esp + 0x27], 0
je 0x58d8a7
fild dword [esp + 0x3c]
push 1
fstp qword [esp + 0x64]
fld qword [esp + 0x64]
fmul qword [esp + 0x2c]
call fcn.0053af60
push eax
push 1
mov ecx, ebx
call fcn.0041134a
mov ecx, dword [esp + 0x104]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00535334
mov esp, ebp
pop ebp
ret 8