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

Disassembly:
push 0xffffffffffffffff
push 0x4eadc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebp
mov ebp, ecx
mov dword [esp + 4], ebp
cmp word [ebp + 4], 4
je 0x460709
mov ax, word [ebp + 6]
cmp ax, 3
je 0x460709
cmp ax, 0x1e
je 0x460709
cmp ax, 4
je 0x460709
push ebx
push esi
push edi
mov edi, dword [esp + 0xe8]
lea eax, [esp + 0xec]
push 1
mov ecx, dword [edi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [ebp + 0x48]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jle 0x460700
lea esi, [ebp + 0x40]
lea edx, [esp + 0x60]
push ebx
push edx
mov ecx, esi
call fcn.00416560
mov eax, dword [esp + 0x70]
xor edx, edx
cmp eax, edx
mov dword [esp + 0xe0], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], edx
je 0x460630
mov eax, dword [ebp + 0x48]
dec eax
cmp ebx, eax
jge 0x460630
mov ecx, dword [esp + 0x6c]
cmp ecx, 6
jne 0x46030a
lea ebp, [ebx - 2]
lea eax, [esp + 0x88]
push ebp
push eax
mov ecx, esi
call fcn.00416560
cmp dword [esp + 0x94], 7
jne 0x4602d9
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x88]
call fcn.004ba050
mov eax, dword [esp + 0x14]
test eax, eax
je 0x460426
lea edx, [esp + 0xb0]
push ebp
push edx
mov ecx, esi
call fcn.00416560
test eax, eax
je 0x460350
add eax, 4
jmp 0x460352
cmp ecx, edx
jne 0x46042a
cmp word [ebp + 6], 1
jne 0x46042a
lea ecx, [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call fcn.00416560
cmp dword [esp + 0xa8], 0xa
jne 0x46033f
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x9c]
call fcn.004ba050
jmp 0x46042a
xor eax, eax
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
lea ecx, [esp + 0xb0]
call fcn.004ba050
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
dec eax
push eax
push ecx
mov ecx, esi
call fcn.00416560
lea edx, [esp + 0x38]
mov byte [esp + 0xe0], 1
push edx
push ebp
push ebx
push 0x3c
push edi
call fcn.004af820
add esp, 0x14
test eax, eax
je 0x460411
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call fcn.00434610
lea eax, [esp + 0x3c]
add esp, 4
neg eax
sbb eax, eax
lea edx, [esp + 0x3c]
and eax, edx
push 1
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xf0]
push eax
push ecx
push edx
call fcn.00434090
movsx eax, word [esp + 0x104]
mov dword [esp + 0x24], eax
add esp, 0x10
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x460660
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 0
call fcn.004ba050
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
lea ecx, [ebx + 1]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.00416560
mov eax, dword [esp + 0x30]
mov byte [esp + 0xe0], 2
cmp eax, 0xa
jne 0x46051c
lea eax, [esp + 0x74]
push ebx
push eax
mov ecx, esi
call fcn.00416560
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
neg eax
sbb eax, eax
lea edx, [esp + 0x24]
and eax, ecx
push edx
mov byte [esp + 0xe4], 3
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push 0x3c
push edi
call fcn.004af820
add esp, 0x14
test eax, eax
je 0x46050b
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
push eax
call fcn.00434610
lea eax, [esp + 0x28]
add esp, 4
neg eax
sbb eax, eax
lea edx, [esp + 0x28]
and eax, edx
push 1
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xf0]
push eax
push ecx
push edx
call fcn.00434090
movsx eax, word [esp + 0x104]
mov dword [esp + 0x24], eax
add esp, 0x10
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x46068c
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 2
call fcn.004ba050
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46061f
lea ecx, [esp + 0xc4]
push 0
push ecx
mov ecx, esi
call fcn.00416560
test eax, eax
je 0x460542
add eax, 4
jmp 0x460544
xor eax, eax
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
lea ecx, [esp + 0xc4]
call fcn.004ba050
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
mov eax, dword [edx + 0x48]
dec eax
push eax
push ecx
mov ecx, esi
call fcn.00416560
lea edx, [esp + 0x4c]
mov byte [esp + 0xe0], 4
push edx
push ebx
push ebp
push 0x3c
push edi
call fcn.004af820
add esp, 0x14
test eax, eax
je 0x460606
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x50]
neg eax
sbb eax, eax
and eax, ecx
push eax
call fcn.00434610
lea eax, [esp + 0x50]
add esp, 4
neg eax
sbb eax, eax
lea edx, [esp + 0x50]
and eax, edx
push 1
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x50]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xf0]
push eax
push ecx
push edx
call fcn.00434090
movsx eax, word [esp + 0x104]
mov dword [esp + 0x30], eax
add esp, 0x10
fild dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x4606ad
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 2
call fcn.004ba050
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 0
call fcn.004ba050
lea ecx, [esp + 0x60]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004ba050
mov eax, dword [ebp + 0x48]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x460275
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
jmp 0x46070b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], 1
mov byte [esp + 0xe0], 0
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x44]
mov dword [eax + ecx*4 - 4], 1
lea ecx, [esp + 0x38]
jmp 0x4606e7
mov edx, dword [ebp + 0x44]
lea ecx, [ebx + ebx*4]
mov eax, 1
mov byte [esp + 0xe0], 2
mov dword [edx + ecx*4 + 0x24], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x74]
jmp 0x4606d6
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 1
mov byte [esp + 0xe0], 2
mov eax, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x44]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 - 4], 1
lea ecx, [esp + 0x4c]
call fcn.004ba050
mov byte [esp + 0xe0], 0
lea ecx, [esp + 0x24]
call fcn.004ba050
lea ecx, [esp + 0x60]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004ba050
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
jmp 0x46070b
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop ebp
mov dword fs:[0], ecx
add esp, 0xd4
ret 0x10