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

Disassembly:
push 0xffffffffffffffff
push 0x5f9108
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov al, byte [eax + 0x14c]
mov byte [esp + 0x24], al
call fcn.005a2d4d
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x14d]
mov byte [esp + 0x16], cl
xor ebx, ebx
xor ecx, ecx
xor edx, edx
cmp dword [esi + 0x234], 2
jne 0x4583b0
cmp byte [esi + 0x249], cl
jne 0x4583b0
mov eax, dword [esi + 0x188]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x45819c
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
lea ecx, [esp + 0x38]
push ecx
push eax
call edx
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x188]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x458219
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
mov eax, dword [esi + 0xfc]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00457520
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x458208
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x9c]
call eax
test eax, eax
jl 0x458208
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jle 0x458208
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jle 0x458208
mov edi, ecx
mov ebp, eax
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00456cc0
cmp dword [esp + 0x2c], ebx
jle 0x4583a0
cmp dword [esp + 0x30], ebx
jle 0x4583a0
cmp dword [esi + 0x204], 2
jne 0x458255
mov esi, dword [esi + 0x118]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x44]
lea edx, [esp + 0x3c]
push edx
push esi
call eax
test eax, eax
jl 0x458255
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
cmp byte [esp + 0x24], 0
je 0x45827f
cmp edi, ebx
jle 0x45827f
cmp ebp, ebx
jle 0x45827f
mov esi, dword [esp + 0x30]
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x24]
jmp 0x458283
lea eax, [esp + 0x2c]
cmp byte [esp + 0x16], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
je 0x45838a
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, ebx
je 0x45838a
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 4
push esi
call edi
push 6
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
push 8
mov ebx, eax
push esi
mov dword [esp + 0x24], ebx
call edi
push 0xa
push esi
mov dword [esp + 0x2c], eax
call edi
test ebp, ebp
mov dword [esp + 0x18], eax
jle 0x458381
test ebx, ebx
jle 0x458381
cmp dword [esp + 0x24], 0
jle 0x458381
test eax, eax
jle 0x458381
fild dword [esp + 0x20]
fidiv dword [esp + 0x1c]
fild dword [esp + 0x24]
fidiv dword [esp + 0x18]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x458346
fild dword [esp + 0x38]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x24], eax
fdivp st(1)
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
fldcw word [esp + 0x16]
jmp 0x458381
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x45837d
fimul dword [esp + 0x34]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
fdivrp st(1)
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
fldcw word [esp + 0x16]
jmp 0x458381
fstp st(1)
fstp st(0)
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x4583bc
mov eax, dword [esp + 0x80]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4583bc
mov eax, dword [esp + 0x80]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4