Function at 0x4015d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
call fcn.004036b0
mov dword [ebp - 4], 0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x401642
push str.EnumDisplayDevicesA
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40165c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00417666
jmp 0x40196f
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x5c], 0
mov dword [ebp - 0x260], 0x1a8
push 0
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [ebp - 0x18]
test eax, eax
je 0x401932
mov dword [ebp - 0x260], 0x1a8
lea ecx, [ebp - 0x264]
call fcn.004036b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1bc]
push ecx
push str.Flags___0X
lea edx, [ebp - 0x264]
push edx
call fcn.00415ca4
add esp, 0xc
mov eax, dword [ebp - 0x1bc]
and eax, 8
test eax, eax
jne 0x401915
mov ecx, dword [ebp - 0x278]
mov edx, dword [ecx + 0x5c]
add edx, 1
push edx
push str._Monitors_found__d_n
lea eax, [ebp - 0x10]
push eax
call fcn.00415ca4
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403710
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov word [ebp - 0x90], 0x9c
lea ecx, [ebp - 0xb4]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x401749
lea eax, [ebp - 0xb4]
push eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x25c]
push ecx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x4018e7
push 0x58
call fcn.00403500
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x274], 0
je 0x401783
mov ecx, dword [ebp - 0x274]
call fcn.004032c0
mov dword [ebp - 0x27c], eax
jmp 0x40178d
mov dword [ebp - 0x27c], 0
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x1bc]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x84]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x1c], edx
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x4c
call fcn.004177ab
mov edx, dword [ebp - 0x1bc]
and edx, 1
test edx, edx
je 0x4018e5
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x3c]
jge 0x40184c
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 0x40]
jge 0x401872
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x44]
jle 0x401898
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x48]
jle 0x4018be
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x5c]
add ecx, 1
mov edx, dword [ebp - 0x26c]
mov dword [edx + 0x54], ecx
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x278]
call fcn.00403490
jmp 0x401900
push 0
push 0x42d108
push str.EnumerateDeisplaySetting_Failure_n
mov ecx, dword [0x4312f0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x278]
mov eax, dword [edx + 0x5c]
add eax, 1
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call fcn.00417666
jmp 0x401673
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x278]
mov edx, dword [ecx + 0x5c]
push edx
push str._Monitors_found__d___d
lea eax, [ebp - 0x10]
push eax
call fcn.00415ca4
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00403710
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00417666
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret