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

Disassembly:
push 0xffffffffffffffff
push 0x615ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005bc35c
mov eax, dword [eax + 4]
mov al, byte [eax + 0x158]
mov byte [esp + 0x24], al
call fcn.005bc35c
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x159]
mov byte [esp + 0x16], cl
xor ebx, ebx
xor ecx, ecx
xor edx, edx
cmp dword [esi + 0x25c], 2
jne 0x466a50
cmp byte [esi + 0x272], cl
jne 0x466a50
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 0x46683c
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 0x4668b9
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.004657b0
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4668a8
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 0x4668a8
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jle 0x4668a8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jle 0x4668a8
mov edi, ecx
mov ebp, eax
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00464fc0
cmp dword [esp + 0x2c], ebx
jle 0x466a40
cmp dword [esp + 0x30], ebx
jle 0x466a40
cmp dword [esi + 0x22c], 2
jne 0x4668f5
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 0x4668f5
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
cmp byte [esp + 0x24], 0
je 0x46691f
cmp edi, ebx
jle 0x46691f
cmp ebp, ebx
jle 0x46691f
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 0x466923
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 0x466a2a
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, ebx
je 0x466a2a
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 0x466a21
test ebx, ebx
jle 0x466a21
cmp dword [esp + 0x24], 0
jle 0x466a21
test eax, eax
jle 0x466a21
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 0x4669e6
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 0x466a21
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x466a1d
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 0x466a21
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 0x466a5c
mov eax, dword [esp + 0x80]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x466a5c
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