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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x799b80
mov eax, dword fs:[LineTo]
push eax
mov dword fs:[SetTextAlign], esp
sub esp, 0x7c
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
cmp eax, ecx
push edi
je GetCurrentPositionEx
mov esi, dword [ebp + 0xc]
cmp esi, ecx
jl 0x4ffb27
cmp dword [ebp + 0x10], ecx
je 0x4ffb27
cmp dword [ebp + 0x14], ecx
je 0x4ffb27
cmp dword [ebp + 0x18], ecx
je 0x4ffb27
cmp dword [ebp + 0x1c], 1
jl 0x4ffb27
fld qword [ebp + 0x20]
fcomp qword [0x7ca988]
fnstsw ax
test ah, 1
jne 0x4ffb27
mov edi, dword [ebp + 0x28]
cmp edi, ecx
je 0x4ffb27
mov dword [esp + 0x74], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], ecx
push 0x10
mov dword [esp + 0x94], ecx
call fcn.007604a7
lea ebx, [esi*8]
mov dword [esp + 0x2c], eax
push ebx
mov dword [esp + 0x44], ebx
call fcn.007604a7
push ebx
mov dword [esp + 0x38], eax
call fcn.007604a7
mov ecx, 3
add esp, 0xc
cmp esi, ecx
mov dword [esp + 0x40], eax
jle 0x4ff625
mov edx, eax
mov eax, dword [ebp + 0x18]
cmp ecx, 3
jne 0x4ff5ff
mov eax, dword [eax + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x4ff61d
fld qword [eax + ecx*8]
fcomp qword [edx]
fnstsw ax
test ah, 0x40
jne 0x4ff620
mov eax, dword [ebp + 0x18]
add edx, 8
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + ecx*8 + 4]
mov dword [edx + 4], eax
inc ecx
cmp ecx, esi
jl 0x4ff5ea
mov ecx, dword [esp + 0x2c]
cmp esi, 1
mov dword [ecx], GetStretchBltMode
mov dword [ecx + 4], 0
jle 0x4ff688
mov edx, dword [ebp + 8]
add ecx, 8
lea eax, [edx + 4]
lea edx, [esi - 1]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
add ecx, 8
sub edx, dword [eax - 4]
add eax, 8
mov dword [esp + 0x30], edx
mov edx, dword [eax]
fild dword [esp + 0x30]
sub edx, dword [eax - 8]
fld st(0)
fmulp st(1)
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
fild dword [esp + 0x30]
dec edx
mov dword [esp + 0x24], edx
fld st(0)
fmulp st(1)
fadd st(1)
fsqrt
fstp qword [ecx - 8]
fstp st(0)
jne 0x4ff64b
dec esi
mov dword [esp + CopyMetaFileAx20], 0
test esi, esi
mov dword [esp + 0x38], esi
jle 0x4ff950
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, 0x10
lea ebx, [eax + 0x18]
mov eax, dword [ebp + 0x10]
lea esi, [edx + 0x10]
sub eax, edx
mov edx, 0xfffffff0
mov dword [esp + 0xc], ecx
sub edx, dword [ebp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jmp 0x4ff6d5
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
fild dword [edx + ecx - 0x10]
fcomp qword [esi + eax]
fnstsw ax
test ah, 0x40
je 0x4ff6f7
fild dword [edx + ecx - 0xc]
fcomp qword [esi]
fnstsw ax
test ah, 0x40
je 0x4ff6f7
mov esi, ecx
jmp 0x4ff6fd
mov eax, dword [esp + 0x34]
add esi, eax
push 0x20
call fcn.007604a7
push 0x20
mov dword [esp + 0x24], eax
call fcn.007604a7
mov edx, dword [ebp + 0x14]
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], ecx
lea eax, [esi + edx]
mov edx, dword [esp + 0x1c]
sub edx, ecx
mov dword [esp + 0x14], 4
mov esi, dword [esp + 0x10]
add eax, 8
add ecx, 8
mov esi, dword [esi + eax - 8]
mov dword [edx + ecx - 8], esi
mov esi, dword [esp + 0x10]
mov esi, dword [esi + eax - 4]
mov dword [edx + ecx - 4], esi
mov esi, dword [eax - 8]
mov dword [ecx - 8], esi
mov esi, dword [eax - 4]
mov dword [ecx - 4], esi
mov esi, dword [esp + 0x14]
dec esi
mov dword [esp + 0x14], esi
jne 0x4ff72c
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
fld qword [eax + esi - 8]
fdiv qword [ebp + 0x20]
fld st(0)
call fcn.007496f4
mov ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fsub qword [esp + 0x14]
fcomp qword [0x7ca988]
fnstsw ax
test ah, 0x40
jne 0x4ff7a5
inc ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x4c]
jmp 0x4ff7b5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
fld qword [ebx + 8]
fsub qword [ebx]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
fdiv qword [esp + 0x50]
mov ecx, dword [eax + esi - 0x10]
mov edx, dword [eax + esi - 0xc]
mov esi, dword [edi + 8]
mov dword [esp + 0x48], ecx
mov ecx, edi
mov dword [esp + 0x4c], edx
lea eax, [esi + 1]
push eax
fstp qword [esp + 0x74]
call fcn.005fc3f0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
mov dword [ecx + esi*8], edx
mov dword [ecx + esi*8 + 4], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov esi, eax
inc eax
mov dword [esp + 0x60], ecx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x68], edx
call fcn.00421d50
fld qword [esp + 0x5c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], 1
fstp qword [eax + esi*8]
fld qword [esp + 0x4c]
fsub qword [0x7ca980]
fstp qword [esp + 0x64]
fld qword [0x7ca980]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 1
je 0x4ff907
fld qword [0x7ca980]
fmul qword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
push esi
fadd qword [ebx]
lea eax, [ecx + 3]
mov ecx, dword [ebp + 0x18]
push eax
fstp qword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push 4
push ecx
push edx
push eax
call fcn.00502a90
fld qword [esi]
add esp, 0x20
call fcn.007496f4
fld qword [esi + 8]
mov dword [esp + 0x44], eax
call fcn.007496f4
mov esi, dword [edi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x4c], eax
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.005fc3f0
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push 0xffffffffffffffff
mov dword [edx + esi*8], eax
mov dword [edx + esi*8 + 4], ecx
mov eax, dword [esp + 0x80]
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x7c]
call fcn.00421d50
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
fld qword [esp + 0x54]
inc eax
fstp qword [edx + esi*8]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcom qword [esp + 0x64]
fnstsw ax
test ah, 1
jne CreateCompatibleDC
fstp st(0)
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push eax
call fcn.007604d0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.007604d0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add esp, 8
inc eax
add edx, 8
add esi, 8
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], esi
jl Escape
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, edi
mov esi, dword [ebx + eax - 8]
mov edx, dword [ebx + eax - 4]
mov ebx, dword [edi + 8]
mov dword [esp + 0x4c], edx
lea eax, [ebx + 1]
push eax
call fcn.005fc3f0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x48]
mov dword [ecx + ebx*8], esi
mov dword [ecx + ebx*8 + 4], edx
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov esi, ecx
lea ebx, [ecx + 1]
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x4ff9b7
test eax, eax
je 0x4ff9a5
push eax
call fcn.007604d0
add esp, 4
xor eax, eax
mov dword [esp + 0x78], eax
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], ecx
jmp RegOpenKeyExA
test eax, eax
jne 0x4ff9f9
lea edi, [ebx*8]
push edi
call fcn.007604a7
mov edx, eax
mov ecx, edi
mov dword [esp + 0x7c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
jmp RegSetValueExA
mov edi, dword [esp + 0x80]
cmp ebx, edi
jg 0x4ffa23
cmp ebx, ecx
jle RegDeleteValueA
mov edx, ebx
lea eax, [eax + ecx*8]
sub edx, ecx
push edx
push eax
call fcn.00422cd0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], ebx
jmp ShellExecuteA
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x4ffa51
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4ffa45
mov eax, 4
jmp 0x4ffa51
cmp eax, 0x400
jle GetFileSecurityA
mov eax, 0x400
add eax, edi
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x4ffa5f
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x24]
lea edx, [ecx*8]
push edx
call fcn.007604a7
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.00422cd0
mov ecx, dword [esp + 0x78]
push ecx
call fcn.007604d0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + esi*8], 0
mov eax, dword [esp + 0x78]
push ecx
mov dword [eax + esi*8 + 4], 0x3ff00000
call fcn.007604d0
mov edx, dword [esp + 0x30]
push edx
call fcn.007604d0
mov eax, dword [esp + 0x48]
push eax
call fcn.007604d0
add esp, 0xc
mov dword [esp + 0x74], 0x7cb8c8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], 1
test eax, eax
je 0x4ffb27
push eax
call fcn.007604d0
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov dword fs:[ImageList_AddMasked], ecx
pop ebx
mov esp, ebp
pop ebp
ret