Function at 0x415c02
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x114], edi
cmp dword [0x5946a4], ebx
je 0x416181
test dword [ebp + 0x18], 0x400
jne 0x416181
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push 0x5c
mov edi, eax
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0051b3c0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0xa8]
push eax
push 0x5c
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x100]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x100]
sub eax, dword [ebp - 0xf4]
mov dword [ebp - 0x124], eax
jns 0x415cae
neg eax
mov dword [ebp - 0x124], eax
cmp dword [ebp + 0x10], 0xffffffff
jne 0x415ccf
mov eax, dword [ebp - 0x108]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415cbd
sub eax, edx
sar eax, 1
mov dword [ebp + 0x10], eax
mov edi, 0x59b35c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5ab280], ebx
jne 0x415d1b
push 0x5ab280
push ebx
push 0x5713cc
push ebx
call dword [sym.imp.d2d1.dll_Ordinal_1]
cmp dword [0x5ab280], ebx
jne 0x415d1b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0x18]
push dword [ebp - 0x114]
jmp 0x41618e
cmp dword [0x5ab284], ebx
jne 0x415d3c
push 0x5ab284
push 0x5713dc
push ebx
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
cmp dword [0x5ab284], ebx
je 0x415cfd
push 1
xor eax, eax
push ebx
push eax
call dword [sym.imp.USER32.dll_MonitorFromPoint]
mov ecx, dword [0x5ab284]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x104], eax
mov eax, dword [ecx]
push edx
push dword [ebp - 0x104]
push ecx
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x118]
cmp eax, ebx
je 0x415cfd
cmp dword [ebp - 0x124], 0x10
mov ecx, dword [0x5ab284]
mov ecx, dword [ecx]
jle 0x415dcc
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x18]
push eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x118]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x118]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x104]
jmp 0x415e14
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x18]
push eax
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x118]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x118]
push ecx
mov ecx, dword [eax]
fstp dword [esp]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x104]
push ecx
fstp dword [esp]
push dword [0x5ab284]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x11c], ebx
je 0x415cfd
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x98], eax
cmp eax, ebx
jne 0x415e53
mov dword [ebp - 0x98], 0x190
mov eax, dword [0x5ab284]
fild dword [ebp - 0x124]
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push edx
push 0x570bcc
push ecx
fstp dword [esp]
push 5
push ebx
push dword [ebp - 0x98]
lea edx, [ebp - 0x8c]
push ebx
push edx
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jne 0x415ea0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x415cfd
test byte [ebp + 0x18], 0x10
mov ecx, dword [eax]
je 0x415eab
push ebx
jmp 0x415ead
push 1
push eax
call dword [ecx + 0x14]
test byte [ebp + 0x18], 1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
je 0x415ec3
push 2
jmp 0x415ec4
push ebx
push eax
call dword [ecx + 0xc]
test byte [ebp + 0x18], 2
je 0x415edc
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test byte [ebp + 0x18], 4
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
je 0x415eee
push 2
jmp 0x415eef
push ebx
push eax
call dword [ecx + 0x10]
test byte [ebp + 0x18], 8
je 0x415f07
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp - 0x114]
fldz
push 0x57
fst dword [ebp - 0x1c]
pop eax
fstp dword [ebp - 0x18]
lea edi, [ebp - 0x38]
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 - 0x20], ecx
pop ecx
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - 0x24], eax
mov eax, dword [0x5ab280]
lea edx, [ebp - 0xc4]
lea esi, [ebp - 0x28]
lea edi, [ebp - 0xc4]
push edx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x38]
push edx
push dword [ebp - 0x120]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe4]
push dword [ebp - 0x120]
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, eax
movzx edx, al
shr ecx, 8
shl edx, 8
movzx ecx, cl
or ecx, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
or ecx, eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
mov dword [ebp - 0x104], edx
mov edx, ecx
shr edx, 8
fild dword [ebp - 0x104]
and edx, eax
fld qword [0x5713f0]
mov dword [ebp - 0x104], edx
movzx eax, cl
fdiv st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x1c]
fild dword [ebp - 0x104]
mov dword [ebp - 0x104], eax
movzx eax, byte [ebp + 0x1c]
fdiv st(1)
fstp dword [ebp - 0x18]
fild dword [ebp - 0x104]
mov dword [ebp - 0x104], eax
fdiv st(1)
fstp dword [ebp - 0x14]
fild dword [ebp - 0x104]
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x128]
push edx
fdivrp st(1)
push ebx
lea edx, [ebp - 0x1c]
push edx
push eax
fstp dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x130]
push edx
push eax
call dword [ecx + 0xd4]
mov eax, dword [ebp - 0x114]
fild dword [eax]
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x48]
fstp dword [ebp - 0x20]
fild dword [eax + 4]
mov eax, dword [ebp - 0x110]
push eax
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x130]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x12c]
fstp dword [ebp - 0x14]
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]
mov eax, dword [ebp - 0x108]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x416090
push ebx
push ebx
push dword [ebp - 0x128]
lea esi, [ebp - 0x48]
push esi
push dword [ebp - 0x10c]
sub eax, ecx
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx]
sar eax, 1
push eax
push dword [ebp - 0x108]
push ecx
call dword [edx + 0x6c]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0xc4]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x59b35c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x5ab288], ebx
jne 0x416175
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.nvumdshim.dll
call esi
test eax, eax
jne 0x416134
push str.nvumdshimx.dll
call esi
test eax, eax
je 0x416175
xor esi, esi
inc esi
push str.NVIDIA_Optimus_detected
mov dword [0x5ab288], esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push dword [ebp - 0x120]
mov dword [0x5946a4], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0x18]
push dword [ebp - 0x114]
push dword [ebp + 0x10]
push dword [ebp - 0x108]
push dword [ebp - 0x120]
jmp 0x416198
mov dword [0x5ab288], 1
jmp 0x41619e
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x108]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret 0x18