Function at 0x4154e1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x5946a4], 0
mov al, byte [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x314], edi
mov byte [ebp - 0x30d], al
jne 0x415638
cmp al, 0xff
je 0x41561c
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
call fcn.00417394
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
pop ecx
push eax
push dword [ebp - 0x30c]
mov dword [ebp - 0x328], eax
call edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 0xc]
push 0xcc0020
mov dword [ebp - 0x324], eax
mov eax, dword [ebx + 4]
push eax
push ecx
push esi
sub edx, eax
mov eax, dword [ebx + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push dword [ebp - 0x30c]
call dword [sym.imp.GDI32.dll_BitBlt]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0xc]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x314]
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
or al, 0xff
sub al, byte [ebp - 0x30d]
mov byte [ebp - 0x311], 0
mov byte [ebp - 0x312], al
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov word [ebp - 0x314], 0
push dword [ebp - 0x314]
sub eax, ecx
push eax
sub ebx, edx
push ebx
push 0
push 0
push dword [ebp - 0x30c]
push eax
push ebx
push ecx
push edx
push esi
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [ebp - 0x324]
push dword [ebp - 0x30c]
call edi
push dword [ebp - 0x30c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x328]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x415bf3
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0xc]
push ebx
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
jmp 0x415bf3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41563d
sub eax, edx
xor ecx, ecx
mov dword [ebp - 0x30c], eax
test eax, eax
jle 0x415664
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x20c], dx
inc ecx
cmp ecx, eax
jl 0x415652
xor ecx, ecx
mov edi, 0x59b35c
push edi
mov word [ebp + eax*2 - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [0x5ab280], eax
jne 0x4156c6
push 0x5ab280
push eax
push 0x5713cc
push eax
call dword [sym.imp.d2d1.dll_Ordinal_1]
cmp dword [0x5ab280], 0
jne 0x4156c4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x30c]
push dword [ebp - 0x314]
jmp 0x41562c
xor eax, eax
cmp dword [0x5ab284], eax
jne 0x4156e8
push 0x5ab284
push 0x5713dc
push eax
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
cmp dword [0x5ab284], 0
je 0x41569f
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push 0x5c
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x2ac]
push 0
push eax
call fcn.0051b3c0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x290], ax
lea eax, [ebp - 0x2ac]
push eax
push 0x5c
push dword [ebp - 0x324]
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x304]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x304]
sub eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x324], eax
jns 0x415752
neg eax
mov dword [ebp - 0x324], eax
push 1
xor ecx, ecx
xor eax, eax
push ecx
push eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
mov ecx, dword [0x5ab284]
lea edx, [ebp - 0x318]
mov dword [ebp - 0x308], eax
mov eax, dword [ecx]
push edx
push dword [ebp - 0x308]
push ecx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x318]
test ecx, ecx
je 0x41569f
mov eax, dword [0x5ab284]
mov eax, dword [eax]
add eax, 0x30
cmp dword [ebp - 0x324], 0xe
jle 0x4157ea
mov dword [ebp - 0x308], eax
lea eax, [ebp - 0x32c]
push eax
mov eax, dword [ecx]
push 5
push ecx
call dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x318]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x318]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x308]
jmp 0x415832
mov dword [ebp - 0x308], eax
lea eax, [ebp - 0x32c]
push eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x318]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x318]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x308]
push ecx
fstp dword [esp]
push dword [0x5ab284]
call dword [eax]
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x32c], 0
je 0x41569f
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x29c], eax
test eax, eax
jne 0x415871
mov dword [ebp - 0x29c], 0x190
mov eax, dword [0x5ab284]
fild dword [ebp - 0x324]
mov ecx, dword [eax]
lea edx, [ebp - 0x31c]
push edx
push 0x570bcc
push ecx
fstp dword [esp]
push 5
push 0
push dword [ebp - 0x29c]
lea edx, [ebp - 0x290]
push 0
push edx
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x31c]
test eax, eax
jne 0x4158c0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41569f
test byte [ebp + 0xc], 0x10
mov ecx, dword [eax]
je 0x4158cc
push 0
jmp 0x4158ce
push 1
push eax
call dword [ecx + 0x14]
test byte [ebp + 0xc], 1
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
je 0x4158e4
push 2
jmp 0x4158e6
push 0
push eax
call dword [ecx + 0xc]
test byte [ebp + 0xc], 4
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
je 0x4158fc
push 2
jmp 0x4158fe
push 0
push eax
call dword [ecx + 0x10]
test byte [ebp + 0xc], 2
je 0x415916
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
fldz
and dword [ebp - 0x218], 0
and dword [ebp - 0x214], 0
fst dword [ebp - 0x220]
push 0x57
fstp dword [ebp - 0x21c]
pop eax
mov esi, ebx
lea edi, [ebp - 0x23c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 3
pop ecx
movsd dword es:[edi], dword [esi]
push 7
mov dword [ebp - 0x224], ecx
pop ecx
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x320]
push edx
mov dword [ebp - 0x228], eax
mov eax, dword [0x5ab280]
lea edx, [ebp - 0x2c8]
lea esi, [ebp - 0x22c]
lea edi, [ebp - 0x2c8]
push edx
mov dword [ebp - 0x22c], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x320]
push dword [ebp - 0x32c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x23c]
sub dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x238]
sub dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x320]
lea edx, [ebp - 0x23c]
push edx
push dword [ebp - 0x328]
xor esi, esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe4]
push dword [ebp - 0x328]
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, eax
movzx edx, al
shr ecx, 8
shr eax, 0x10
movzx eax, al
movzx ecx, cl
shl edx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x308], eax
mov eax, ecx
shr eax, 8
fild dword [ebp - 0x308]
and eax, 0xff
fld qword [0x5713f0]
mov dword [ebp - 0x308], eax
movzx eax, cl
fdiv st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x220]
fild dword [ebp - 0x308]
mov dword [ebp - 0x308], eax
fdiv st(1)
fstp dword [ebp - 0x21c]
fild dword [ebp - 0x308]
fdiv st(1)
movzx eax, byte [ebp - 0x30d]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x320]
lea edx, [ebp - 0x330]
push edx
push esi
lea edx, [ebp - 0x220]
push edx
push eax
fstp dword [ebp - 0x218]
fild dword [ebp - 0x308]
fdivrp st(1)
fstp dword [ebp - 0x214]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax]
lea edx, [ebp - 0x338]
push edx
push eax
call dword [ecx + 0xd4]
fild dword [ebx]
mov eax, dword [ebp - 0x320]
lea esi, [ebp - 0x224]
fstp dword [ebp - 0x224]
lea edi, [ebp - 0x24c]
fild dword [ebx + 4]
push eax
fstp dword [ebp - 0x220]
fld dword [ebp - 0x338]
fstp dword [ebp - 0x21c]
fld dword [ebp - 0x334]
fstp dword [ebp - 0x218]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xc0]
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415afa
xor esi, esi
push esi
push esi
push dword [ebp - 0x330]
sub eax, ecx
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
lea edi, [ebp - 0x24c]
push edi
push dword [ebp - 0x31c]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [edx + 0x6c]
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0xc4]
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x330]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x59b35c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x5ab288], esi
jne 0x415be9
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.nvumdshim.dll
call edi
test eax, eax
jne 0x415ba4
push str.nvumdshimx.dll
call edi
test eax, eax
je 0x415be9
push str.NVIDIA_Optimus_detected
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
inc eax
push eax
push dword [ebp - 0x328]
mov dword [0x5ab288], eax
mov dword [0x5946a4], esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push dword [ebp - 0x30c]
push eax
push dword [ebp - 0x328]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x415bf3
mov dword [0x5ab288], 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret