Function at 0x4013f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
mov dword [ebp - 0xc], 0x401210
mov dword [ebp - 0x2c], 0x40199c
mov dword [ebp - 0x30], 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
add esp, 0xfffffff8
push 0x7f00
push 0
call sub.USER32.dll_LoadIconA
add esp, 8
mov eax, eax
mov dword [ebp - 0x1c], eax
add esp, 0xfffffff8
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
add esp, 8
mov eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
add esp, 0xfffffff4
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassA
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x12c
push 0x2da
push 0
push 0
push 0xcf0008
push 0x401216
push 0x401210
push 0
call sub.USER32.dll_CreateWindowExA
mov eax, eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4014b6
xor eax, eax
jmp 0x401990
add esp, 0xfffffff8
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.USER32.dll_ShowWindow
add esp, 8
add esp, 0xfffffff4
mov eax, dword [ebp - 0x54]
push eax
call sub.USER32.dll_UpdateWindow
add esp, 0xc
add esp, 0xfffffffc
push 0x17c
push 0
lea eax, [ebp - 0x1e0]
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
mov dword [ebp - 0x1e0], 0x17c
add esp, 0xfffffffc
push 0x17c
push 0
lea eax, [ebp - 0x360]
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
mov dword [ebp - 0x360], 0x17c
add esp, 0xfffffff4
mov eax, dword [section..bss]
push eax
call sub.USER32.dll_GetDC
add esp, 0xc
mov eax, eax
mov dword [ebp - 0x364], eax
add esp, 0xfffffffc
push 0
push 0x405004
push 0
call sub.DDRAW.dll_DirectDrawCreate
add esp, 4
add esp, 0xfffffffc
mov edx, dword [0x405004]
mov eax, dword [edx]
push 0x405008
push 0x4032d8
mov edx, dword [0x405004]
push edx
mov ebx, dword [eax]
call ebx
add esp, 4
add esp, 0xfffffff4
mov edx, dword [0x405004]
mov eax, dword [edx]
add eax, 8
mov edx, dword [0x405004]
push edx
mov ebx, dword [eax]
call ebx
add esp, 0xc
add esp, 0xfffffffc
mov edx, dword [0x405008]
mov eax, dword [edx]
add eax, 0x2c
lea edx, [ebp - 0x360]
push edx
lea edx, [ebp - 0x1e0]
push edx
mov edx, dword [0x405008]
push edx
mov ebx, dword [eax]
call ebx
add esp, 4
add esp, 0xfffffff4
push 0xe
push 0x401222
push 0x20
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x11
push 0x401231
push 0x20
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x2c
push 0x401250
push 0x40
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x1dc]
and eax, 1
test eax, eax
je 0x401640
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x50
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x40165d
add esp, 0xfffffff4
push 3
push 0x401281
push 0x50
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x2e
push 0x401290
push 0x60
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x1dc]
and eax, 0x40
test eax, eax
je 0x4016a6
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x70
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x4016c3
add esp, 0xfffffff4
push 3
push 0x401281
push 0x70
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x28
push 0x4012d0
push pe_nt_image_headers32
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x1dc]
and eax, 0x400000
test eax, eax
je 0x401714
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x90
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x401734
add esp, 0xfffffff4
push 3
push 0x401281
push 0x90
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x2f
push 0x401310
push 0xa0
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x1d8]
and eax, 0x1000
test eax, eax
je 0x401785
add esp, 0xfffffff4
push 3
push 0x40127d
push 0xb0
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x4017a5
add esp, 0xfffffff4
push 3
push 0x401281
push 0xb0
push 0xa
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x2a
push 0x401350
push 0x40
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x35c]
and eax, 1
test eax, eax
je 0x4017f4
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x50
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x401814
add esp, 0xfffffff4
push 3
push 0x401281
push 0x50
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x2d
push 0x401390
push 0x60
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x35c]
and eax, 0x40
test eax, eax
je 0x401863
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x70
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x401883
add esp, 0xfffffff4
push 3
push 0x401281
push 0x70
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
push 0x25
push 0x4013d0
push pe_nt_image_headers32
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
mov eax, dword [ebp - 0x1f4]
and eax, 0x1000
test eax, eax
je 0x4018e0
add esp, 0xfffffff4
push 3
push 0x40127d
push 0x90
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
jmp 0x401903
add esp, 0xfffffff4
push 3
push 0x401281
push 0x90
push 0x190
mov eax, dword [ebp - 0x364]
push eax
call sub.GDI32.dll_TextOutA
add esp, 0xc
add esp, 0xfffffff4
mov edx, dword [0x405008]
mov eax, dword [edx]
add eax, 8
mov edx, dword [0x405008]
push edx
mov ebx, dword [eax]
call ebx
add esp, 0xc
add esp, 0xfffffff8
mov eax, dword [ebp - 0x364]
push eax
mov eax, dword [section..bss]
push eax
call sub.USER32.dll_ReleaseDC
add esp, 8
add esp, 0xfffffff4
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call sub.USER32.dll_PeekMessageA
add esp, 0xc
mov eax, eax
test eax, eax
je 0x40197e
cmp dword [ebp - 0x4c], 0x12
jne 0x401960
jmp 0x401980
add esp, 0xfffffff4
lea eax, [ebp - 0x50]
push eax
call sub.USER32.dll_TranslateMessage
add esp, 0xc
add esp, 0xfffffff4
lea eax, [ebp - 0x50]
push eax
call sub.USER32.dll_DispatchMessageA
add esp, 0xc
jmp 0x401937
mov edx, dword [ebp - 0x48]
mov eax, edx
jmp 0x401990
mov ebx, dword [ebp - 0x388]
leave
ret 0x10