Function at 0x4012ca
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [ebp + 8]
mov dword [0x4377cc], eax
call fcn.004011f7
cmp dword [0x436f9c], 0
jne 0x4012fe
push 0x4367e0
push 0x4016e3
call sub.DDRAW.dll_DirectDrawEnumerateA
mov dword [ebp - 0x2a8], eax
cmp dword [0x4367e0], 0
jne 0x401349
push 0
push 0x4367e0
push 0
call sub.DDRAW.dll_DirectDrawCreate
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x401349
push 0x124
push 0x431180
mov ecx, dword [ebp - 0x418]
push ecx
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4016df
push 0x16c
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x234], 0x16c
push 0x16c
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x414], 0x16c
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x234]
push edx
mov eax, dword [0x4367e0]
mov ecx, dword [eax]
mov edx, dword [0x4367e0]
push edx
call dword [ecx + 0x2c]
cmp dword [0x436fa0], 0
jne 0x4013bd
mov dword [0x436c24], 1
jmp 0x4013c7
mov dword [0x436c24], 2
cmp dword [0x436f9c], 0
jne 0x4013f7
mov eax, dword [ebp - 0x230]
and eax, 1
test eax, eax
je 0x4013f7
mov ecx, dword [ebp - 0x1b0]
and ecx, 0x1000
test ecx, ecx
je 0x4013f7
mov dword [0x436c24], 2
push 0x51
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4367e0]
mov ecx, dword [eax]
mov edx, dword [0x4367e0]
push edx
call dword [ecx + 0x50]
test eax, eax
je 0x40143f
push 0x11
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4367e0]
mov edx, dword [ecx]
mov eax, dword [0x4367e0]
push eax
call dword [edx + 0x50]
test eax, eax
je 0x40143f
push 0x4311a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4016df
mov ecx, dword [0x4377c8]
push ecx
mov edx, dword [0x4377c4]
push edx
mov eax, dword [0x4377c0]
push eax
mov ecx, dword [0x4367e0]
mov edx, dword [ecx]
mov eax, dword [0x4367e0]
push eax
call dword [edx + 0x54]
test eax, eax
je 0x4015e2
cmp dword [0x436fa4], 0
jne 0x4015bc
mov dword [ebp - 0x41c], 0
jmp 0x401494
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
cmp edx, dword [0x431148]
jge 0x401580
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x431090]
push ecx
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0xc
mov eax, dword [edx + 0x43108c]
push eax
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x431088]
push edx
push 0x4311cc
lea eax, [ebp - 0x4e4]
push eax
call fcn.00424218
add esp, 0x14
lea ecx, [ebp - 0x4e4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0xc
mov eax, dword [edx + 0x431090]
push eax
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x43108c]
push edx
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x431088]
push ecx
mov edx, dword [0x4367e0]
mov eax, dword [edx]
mov ecx, dword [0x4367e0]
push ecx
call dword [eax + 0x54]
test eax, eax
je 0x401542
jmp 0x401485
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0xc
mov eax, dword [edx + 0x431088]
mov dword [0x4377c0], eax
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x43108c]
mov dword [0x4377c4], edx
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x431090]
mov dword [0x4377c8], ecx
mov edx, dword [ebp - 0x41c]
cmp edx, dword [0x431148]
jne 0x4015ba
push 0x4311e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x431208
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004011f7
mov eax, dword [ebp + 8]
push eax
call fcn.00401823
add esp, 4
jmp 0x4016df
jmp 0x4015e2
push 0x43122c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x431254
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x43127c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004011f7
mov ecx, dword [0x4377c8]
push ecx
mov edx, dword [0x4377c4]
push edx
mov eax, dword [0x4377c0]
push eax
push 0x4312a0
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00424218
add esp, 0x14
lea edx, [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x6c
push 0
lea eax, [ebp - 0x2a0]
push eax
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x2a0], 0x6c
mov dword [ebp - 0x29c], 0x21
mov dword [ebp - 0x238], 0x2218
mov dword [ebp - 0x28c], 1
push 0
push 0x4367f4
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [0x4367e0]
mov eax, dword [edx]
mov ecx, dword [0x4367e0]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e8], 0
je 0x4016a3
push 0x181
push 0x4312c4
mov edx, dword [ebp - 0x4e8]
push edx
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4016df
mov dword [ebp - 0x2a4], 4
push 0x4367f8
lea eax, [ebp - 0x2a4]
push eax
mov ecx, dword [0x4367f4]
mov edx, dword [ecx]
mov eax, dword [0x4367f4]
push eax
call dword [edx + 0x30]
mov dword [ebp - 0x2a8], eax
mov dword [0x436fa8], 1
mov eax, 1
mov esp, ebp
pop ebp
ret