Function at 0x40d4b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
push edi
mov dword [ebp - 0x1d4], 3
mov dword [ebp - 0x1d0], 0x40da70
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c4], eax
push 0x7f00
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x1c0], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1bc], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], 0x4229e8
mov dword [ebp - 0x1b0], 0x4229e8
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x1e0
push 0x280
push 0
push 0
push 0x80000000
push 0x4229e8
push 0x4229e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x438b18], eax
cmp dword [0x438b18], 0
jne 0x40d58c
xor eax, eax
jmp 0x40d926
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x438b18]
push eax
call fcn.004050f0
add esp, 4
push 5
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x4228b0
push 0
call sub.DDRAW.dll_DirectDrawCreate
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d632
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x4229f0
push str.Direct_X_could_not_initialize.__DX_Object_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
push 8
mov eax, dword [0x438b18]
push eax
mov eax, dword [0x4228b0]
push eax
mov eax, dword [0x4228b0]
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d690
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422a2c
push str.Direct_X_could_not_initialize._Coop_Normal_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
mov dword [0x4228d0], 1
mov dword [0x4228a0], 0
mov dword [ebp - 0x1ac], 0x13c
push 0
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [0x4228b0]
push eax
mov eax, dword [0x4228b0]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 4], eax
test byte [ebp - 0x1a5], 2
je 0x40d6e6
mov dword [0x4228d4], 1
jmp 0x40d6f0
mov dword [0x4228d4], 0
mov dword [ebp - 0x70], 0x6c
mov dword [ebp - 0x6c], 1
mov dword [ebp - 8], 0x200
push 0
push 0x4228b4
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x4228b0]
push eax
mov eax, dword [0x4228b0]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d766
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422a68
push str.Direct_X_could_not_initialize.__Primary_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
mov dword [ebp - 0x6c], 7
mov dword [ebp - 8], 0x40
mov dword [ebp - 0x68], 0x1e0
mov dword [ebp - 0x64], 0x280
push 0
push 0x4228bc
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x4228b0]
push eax
mov eax, dword [0x4228b0]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d7e3
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422aa0
push str.Direct_X_could_not_initialize.__Offscreen_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
cmp dword [0x42289c], 1
jne 0x40d909
push 0
push 0x4228c4
push 0
mov eax, dword [0x4228b0]
push eax
mov eax, dword [0x4228b0]
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d84f
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422adc
push str.Direct_X_could_not_initialize._Clipper_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
mov eax, dword [0x438b18]
push eax
push 0
mov eax, dword [0x4228c4]
push eax
mov eax, dword [0x4228c4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d8ad
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422b14
push str.Direct_X_could_not_initialize.__Clipper_SetHWnd_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
mov eax, dword [0x4228c4]
push eax
mov eax, dword [0x4228b4]
push eax
mov eax, dword [0x4228b4]
mov eax, dword [eax]
call dword [eax + 0x70]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d909
push 0
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x422b54
push str.Direct_X_could_not_initialize.__Clipper__Primary_failed_
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x438b18]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x40d926
call fcn.00403c20
mov eax, dword [0x4228b4]
push eax
call fcn.00403e50
add esp, 4
mov eax, 1
jmp 0x40d926
pop edi
pop esi
pop ebx
leave
ret