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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6086ad
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 0x59840c
mov eax, 0x80004005
jmp 0x598771
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x598402
mov eax, dword [esi + 0xa0]
test al, 0x20
jne 0x59842a
mov eax, 1
jmp 0x598771
and eax, 0xffffffdf
cmp dword [esi + 0x5c], 3
mov dword [esi + 0xa0], eax
jne 0x5984d4
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.0058ef4b
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.0058ef4b
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 0x5985f9
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x5984fb
cmp dword [ebp + 0xc], eax
jne 0x5984fb
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.0058ef4b
fild dword [ebp + 0xc]
mov edi, eax
fdiv dword [esi + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0058ef4b
mov ecx, dword [esi + 0x5c]
add esp, 4
mov edx, 0x7fffffff
mov dword [esp + 0x14], edx
cmp ecx, 1
je 0x598542
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
cmp ecx, 2
je 0x59854f
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.0058ef4b
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.0058ef4b
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x5c]
add esp, 4
cmp eax, 1
jne 0x5985bd
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jmp 0x5985c9
cmp eax, 2
jne 0x5985c9
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.0059812e
mov ebx, dword [esi + 0x70]
cmp ebx, dword [esi + 0x74]
je 0x598754
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 0x598695
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 0x59869b
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 8]
je 0x598704
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.0058e5aa
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 0x598748
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebx, 0xc
cmp ebx, dword [esi + 0x74]
jne 0x598613
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.005b46f5
call fcn.005982f8
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