Function at 0x4a8520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3350
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x78
push ebx
push esi
push edi
lea edi, [ebp - 0x88]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x51e710]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call fcn.004aa9f0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
ja 0x4a85af
call fcn.004ad670
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
ja 0x4a85af
push 0x4e15dc
lea ecx, [ebp - 0x48]
call fcn.004a68d0
push 0x518c10
lea edx, [ebp - 0x48]
push edx
call fcn.0048a653
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047228e
add esp, 4
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004a64c0
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004a84f0
push eax
call fcn.004a9f50
add esp, 4
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x4a866e
lea ecx, [ebp - 0x24]
call fcn.004a84f0
push eax
call fcn.004ac700
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a866e
lea ecx, [ebp - 0x30]
call fcn.004ade30
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push ecx
push str._ERROR_______.__d_n
lea edx, [ebp - 0x30]
push edx
call fcn.004a6ef0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
call fcn.004a68a0
push 0x518c10
lea ecx, [ebp - 0x50]
push ecx
call fcn.0048a653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004a6ad0
mov dword [ebp - 0x38], 0
jmp 0x4a8680
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x18]
jae 0x4a877f
lea ecx, [ebp - 0x24]
call fcn.004a84f0
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
sub eax, 0x101
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0x2b
ja case.0x4a86cb.3
mov ecx, dword [ebp - 0x84]
movzx edx, byte [ecx + 0x4a8874]
jmp dword [edx*4 + 0x4a8860]
jmp 0x4a8677
push 0x4e0bcc
lea ecx, [ebp - 0x54]
call fcn.004a68d0
push 0x518c10
lea eax, [ebp - 0x54]
push eax
call fcn.0048a653
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004a88a0
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 1
jne 0x4a8715
jmp 0x4a8677
mov esi, esp
push str._ERROR_______HD____.__n__TV_HDMI__DVI____._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, esp
call fcn.004cc645
push 0x4e0d10
lea ecx, [ebp - 0x58]
call fcn.004a68d0
push 0x518c10
lea eax, [ebp - 0x58]
push eax
call fcn.0048a653
push 0x4e0dc8
lea ecx, [ebp - 0x5c]
call fcn.004a68d0
push 0x518c10
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0048a653
push 0x4e0c04
lea ecx, [ebp - 0x60]
call fcn.004a68d0
push 0x518c10
lea edx, [ebp - 0x60]
push edx
call fcn.0048a653
jmp 0x4a8677
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004a6b30
mov eax, dword [ebp - 0x64]
jmp 0x4a87e6
push edx
mov ecx, ebp
push eax
lea edx, [0x4a8818]
call fcn.004cc5ed
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
cmp ebp, esp
call fcn.004cc645
mov esp, ebp
pop ebp
ret