Function at 0x494620
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push esi
push 0
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
jl 0x494640
mov eax, dword [esi]
test eax, eax
jne 0x494666
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Cant_create_a_DirectDraw_object._n
call esi
push str.Press_OK_to_end_the_app._n
call esi
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0xf0
ret 4
mov ebx, dword [esp + 0x104]
mov ecx, dword [eax]
push 0x11
push ebx
push eax
call dword [ecx + 0x50]
mov edi, eax
test edi, edi
jge 0x494686
mov eax, str.SetCooperativeLevel___failed_to_go_into_exclusive_mode
jmp 0x49496c
mov eax, dword [esi]
push 8
push 0x1e0
push 0x280
mov edx, dword [eax]
push eax
call dword [edx + 0x54]
mov edi, eax
test edi, edi
jge 0x4946b2
push ebx
mov ecx, esi
call fcn.004949b0
mov eax, str.SetDisplayMode_640__480__8__failed
jmp 0x49496c
mov eax, dword [esi]
push 0x11
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edi, eax
cmp edi, 0x88760245
je 0x4946d5
test edi, edi
jge 0x4946d5
mov eax, str.SetCooperativeLevel___failed_to_go_into_exclusive_mode
jmp 0x49496c
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x94]
lea ebp, [esi + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x98]
mov dword [esp + 0x98], 0x6c
mov dword [esp + 0x9c], 0x21
mov dword [esp + 0x100], 0x218
mov dword [esp + 0xac], 1
mov edx, dword [eax]
push ebp
push ecx
push eax
call dword [edx + 0x18]
mov edi, eax
test edi, edi
jge 0x49473f
push ebx
mov ecx, esi
call fcn.004949b0
mov eax, str.CreateSurface_Primary__flip_1___cmplx__failed
jmp 0x49496c
mov ebx, dword [ebp]
lea edx, [esi + 0x10]
test ebx, ebx
mov dword [esi + 0x1c], 0x1e0
mov dword [edx], 0
mov dword [esi + 0x18], 0x280
mov dword [esi + 0x14], 0
je 0x4947bf
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [ebx]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x14]
push eax
push 0x1000400
push 0
push 0
push edx
push ebx
mov dword [esp + 0x2c], 0x64
call dword [ecx + 0x14]
test eax, eax
jl 0x4947bf
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4947bf
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x14]
mov dword [esp + 0x64], ecx
push eax
push 0x1000400
push 0
lea ecx, [esi + 0x20]
push 0
push ecx
push ebx
call dword [edx + 0x14]
mov eax, dword [ebp]
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 4
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
mov edi, eax
test edi, edi
jge 0x4947f8
mov edx, dword [esp + 0x104]
mov ecx, esi
push edx
call fcn.004949b0
mov eax, str.GetAttachedSurface___failed_to_get_back_buffer
jmp 0x49496c
mov ebx, dword [ebp]
test ebx, ebx
je 0x49485d
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [ebx]
push edx
mov dword [esp + 0x68], eax
push 0x1000400
push 0
lea eax, [esi + 0x10]
push 0
push eax
push ebx
mov dword [esp + 0x2c], 0x64
call dword [ecx + 0x14]
test eax, eax
jl 0x49485d
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x49485d
mov eax, dword [esi + 0x34]
mov ecx, dword [ebx]
lea edx, [esp + 0x14]
mov dword [esp + 0x64], eax
push edx
push 0x1000400
push 0
lea eax, [esi + 0x20]
push 0
push eax
push ebx
call dword [ecx + 0x14]
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x94]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
mov dword [esp + 0x94], 0x6c
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov edi, eax
test edi, edi
jl 0x494958
mov al, byte [esp + 0x98]
test al, 4
je 0x494958
test al, 2
je 0x494958
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
push 0
lea ebx, [esi + 0x10]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [ebp]
test ebp, ebp
je 0x49492c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x14]
mov edx, dword [esi + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x1000400
push 0
push 0
push ebx
push ebp
mov dword [esp + 0x2c], 0x64
mov dword [esp + 0x7c], edx
call dword [eax + 0x14]
test eax, eax
jl 0x49492c
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x49492c
mov edx, dword [esi + 0x34]
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], edx
push ecx
push 0x1000400
push 0
lea edx, [esi + 0x20]
push 0
push edx
push ebp
call dword [eax + 0x14]
mov eax, 1
push str.StartExclusiveMode:_succeed_n
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf0
ret 4
mov eax, dword [esp + 0x104]
mov ecx, esi
push eax
call fcn.004949b0
mov eax, str.GetSurfaceDesc___failed_to_get_surface_width__height
test eax, eax
jne 0x494975
mov eax, 0x51a4a8
mov ecx, edi
push edi
and ecx, 0x7789ffff
lea edx, [esp + 0x18]
push ecx
push eax
push str._s__error__d__0x_X__n
push edx
call fcn.004f8f70
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 4