Function at 0x401fc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x58
mov eax, dword [str.DXsetup]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
xor ebx, ebx
mov edi, ecx
mov ecx, dword [0x40a0c4]
push 0x7f00
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 0x401e60
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
call esi
push 0x7f00
push ebx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0xf
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x7f00
lea edx, [esp + 0x14]
push ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edx
call esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push edi
push ebx
push ebx
push 0x136
push 0x104
push 1
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x4b
push eax
push ebx
call esi
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExA]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x82
push eax
push 0xc00000
push str.Direct_device_setup
lea ecx, [esp + 0x38]
push ecx
push ebx
call ebp
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push edi
push ebx
push esi
push 0xf
push 0xfa
push 5
push 5
push 0x50000000
push str.Select_render_device
push str.STATIC
push ebx
call ebp
push 0x800
push 0xfffffffffffffff4
push 0x800
push edi
push ebx
push esi
push 0x96
push 0xf5
push 0x14
push 5
push 0x50200203
push str.Cards
push str.COMBOBOX
push ebx
call ebp
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 0
push edi
push 0
push esi
push 0xf
push 0xfa
push 0x2d
push 5
push 0x50000000
push str.Choose_videomode
push str.STATIC
push 0
call ebp
push 0x801
push 0xfffffffffffffff4
push 0x801
push edi
push 0
push esi
push 0x7d
push 0xf5
push 0x3c
push 5
push 0x50300100
push str.Modes
push str.LISTBOX
push 0x200
call ebp
push eax
call ebx
push 0x401
push 0xfffffffffffffff4
push 0x400
push edi
push 0
push esi
push 0x10
push 0xf5
push 0xbe
push 5
push 0x50000003
push str.Windowed
push str.BUTTON
push 0
call ebp
push eax
call ebx
push 0
push 0x401
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x402
push 0xfffffffffffffff4
push 0x400
push edi
push 0
push esi
push 0x10
push 0xf5
push 0xd2
push 5
push 0x50000003
push str.StupidZbuffert
push str.BUTTON
push 0
call ebp
push eax
call ebx
push 0
push 0x402
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x403
push 0xfffffffffffffff4
push 0x400
push edi
push 0
push esi
push 0x10
push 0xf5
push 0xe6
push 5
push 0x50000003
push str.WaitRetrace
push str.BUTTON
push 0
call ebp
push eax
call ebx
push 1
push 0x403
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x400
push 0xfffffffffffffff4
push 0x400
push edi
push 0
push esi
push 0x1e
push 0xf5
push 0xfa
push 5
push 0x50000001
push str.Start
push str.BUTTON
push 0
call ebp
push eax
call ebx
mov eax, dword [0x7ed290]
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor edi, edi
test eax, eax
jbe 0x4022a0
mov ebx, 0x76e140
push ebx
push 0
push 0x143
push 0x800
push esi
call ebp
mov eax, dword [0x7ed290]
inc edi
add ebx, 0x65a4
cmp edi, eax
jb 0x402280
push 0
push 0
push 0x14e
push 0x800
push esi
mov dword [0x76e12c], 0
call ebp
mov ecx, dword [0x76e12c]
mov eax, ecx
shl eax, 6
add eax, ecx
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
lea eax, [ecx + ecx*4]
lea edx, [eax*4 + 0x76e140]
mov ecx, esi
call fcn.00401d70
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov byte [0x40e088], 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call ebp
mov al, byte [0x40e088]
test al, al
je 0x4022ff
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret