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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f66a5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x34]
test edx, edx
jne 0x585f00
mov eax, 0x80004005
jmp 0x586265
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x585ef6
mov eax, dword [esi + 0xa0]
test al, 0x20
jne 0x585f1e
mov eax, 1
jmp 0x586265
and eax, 0xffffffdf
cmp dword [esi + 0x5c], 3
mov dword [esi + 0xa0], eax
jne 0x585fc8
mov edx, 0x7fffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x14]
push edx
push ecx
call eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x174]
push eax
call edx
fld dword [esi + 0x40]
mov ebx, eax
fimul dword [ebx]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
fld dword [esi + 0x4c]
mov dword [esi + 0x60], eax
fimul dword [ebx + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
mov dword [esi + 0x64], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax]
mov edx, dword [edx + 0x10c]
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
push eax
call edx
jmp 0x5860ed
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x585fef
cmp dword [ebp + 0xc], eax
jne 0x585fef
lea eax, [esp + 0x4c]
push eax
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
fild dword [ebp + 8]
push ecx
fdiv dword [esi + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
fild dword [ebp + 0xc]
mov edi, eax
fdiv dword [esi + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
mov ecx, dword [esi + 0x5c]
add esp, 4
mov edx, 0x7fffffff
mov dword [esp + 0x14], edx
cmp ecx, 1
je 0x586036
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
cmp ecx, 2
je 0x586043
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x108]
call eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x174]
push eax
call edx
mov ebx, eax
fild dword [ebx]
push ecx
fmul dword [esi + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
mov dword [esi + 0x60], eax
fild dword [ebx + 4]
fmul dword [esi + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0057c690
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x5c]
add esp, 4
cmp eax, 1
jne 0x5860b1
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jmp 0x5860bd
cmp eax, 2
jne 0x5860bd
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x10c]
call eax
or dword [esi + 0xa0], 0x10
mov ecx, esi
call fcn.00585c22
mov ebx, dword [esi + 0x70]
cmp ebx, dword [esi + 0x74]
je 0x586248
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x178]
push eax
call edx
mov ecx, dword [eax]
mov dword [esp + 0x14], eax
cmp ecx, dword [ebx + 4]
je 0x586189
mov eax, dword [ebx]
mov edx, 3
mov word [esp + 0x2c], dx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], 0
mov ecx, dword [ebx + 4]
mov word [esp + 0x3c], dx
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x78], 1
mov ecx, dword [eax]
push 0x413
push eax
mov eax, dword [ecx + 0xf4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x74], 0xffffffff
call edi
mov eax, dword [esp + 0x14]
jmp 0x58618f
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 8]
je 0x5861f8
mov eax, dword [ebx]
mov edx, 3
mov word [esp + 0x4c], dx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x70], 2
mov ecx, dword [ebx + 8]
mov word [esp + 0x1c], dx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x70], dl
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x20]
push edx
push 0x412
push eax
mov eax, dword [ecx + 0xf4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x74], 2
call edi
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x74], 0xffffffff
call edi
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 4]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.0057bcef
mov dword [esp + 0x70], 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push ecx
push 0x13e5
push eax
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x58623c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebx, 0xc
cmp ebx, dword [esi + 0x74]
jne 0x586107
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
lea eax, [esi + 0x70]
push ecx
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.005a1f36
call fcn.00585dec
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret 8