Function at 0x48a330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4999
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2ec]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x48a38c
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [esi + 0x2ec]
push edi
mov dword [esi + 0x2ec], ebx
call dword [sym.imp.USER32.dll_CloseWindow]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x2cc]
mov dword [eax + 0x10], ebx
mov al, byte [esi + 0x2e2]
test al, al
je 0x48a3f2
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
push ebx
push 0x82ca0000
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
cmp dword [esi + 0x3c], 0x10
jb 0x48a3c3
mov eax, dword [esi + 0x28]
jmp 0x48a3c6
lea eax, [esi + 0x28]
mov ecx, dword [0x531fb0]
mov edx, dword [ebp - 0x14]
push ebx
push ecx
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
sub edx, ecx
mov ecx, dword [ebp - 0x18]
push edx
sub ecx, dword [ebp - 0x20]
push ecx
push 0x40
push 0x40
push 0x82ca0000
push eax
push str.MainWindow
push ebx
jmp 0x48a421
cmp dword [esi + 0x3c], 0x10
jb 0x48a3fd
mov eax, dword [esi + 0x28]
jmp 0x48a400
lea eax, [esi + 0x28]
mov edx, dword [0x531fb0]
mov ecx, dword [esi + 0x60]
push ebx
push edx
mov edx, dword [esi + 0x5c]
push ebx
push ebx
push ecx
push edx
push ebx
push ebx
push 0x90000000
push eax
push str.MainWindow
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push 0xffffffffffffffeb
push eax
mov dword [esi + 0x2ec], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x30c]
or edi, 0xffffffff
cmp eax, ebx
jne 0x48a507
push 0xcec
call fcn.004c9550
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x48a469
push esi
mov ecx, eax
call fcn.00474dd0
jmp 0x48a46b
xor eax, eax
mov dword [esi + 0x30c], eax
mov eax, str.Is3D
mov dword [ebp - 4], edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], 0
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48a490
sub eax, ecx
push eax
push str.Is3D
lea ecx, [ebp - 0x2c]
call fcn.004066c0
lea ecx, [ebp - 0xd]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00486e50
mov bl, al
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x48a4d4
mov eax, dword [ebp - 0x28]
push eax
call fcn.004d88be
add esp, 4
test bl, bl
je 0x48a507
mov al, byte [esi + 0x55b]
test al, al
je 0x48a4f0
mov byte [esi + 0x55b], 0
mov byte [esi + 0x55c], 1
mov al, byte [ebp - 0xd]
test al, al
je 0x48a4fe
mov byte [esi + 0x55c], 1
mov ecx, dword [esi + 0x30c]
mov byte [ecx + 0x10], al
mov eax, dword [esi + 0x2ec]
mov ecx, dword [esi + 0x30c]
xor edx, edx
mov dl, byte [esi + 0x2e2]
push edx
push eax
call fcn.00470960
mov ecx, dword [esi + 0x30c]
mov ebx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x48a593
mov cl, byte [eax + 0x82]
test cl, cl
je 0x48a593
mov eax, str.Is3D
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a555
sub eax, edx
push eax
push str.Is3D
lea ecx, [ebp - 0x2c]
call fcn.004066c0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00486850
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x48a593
mov eax, dword [ebp - 0x28]
push eax
call fcn.004d88be
add esp, 4
mov al, byte [esi + 0x2e2]
test al, al
je 0x48a610
cmp ebx, 6
jne 0x48a608
mov al, byte [esi + 0x2e4]
test al, al
je 0x48a5e4
push str.Please_set_your_desktop_color_depth_to_16_bit.
lea ecx, [ebp - 0x2c]
call fcn.004068e0
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call dword [edx + 0x4c]
cmp dword [ebp - 0x14], 0x10
jb 0x48a5dd
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d88be
add esp, 4
push 1
call fcn.004dc22c
mov edx, dword [esi]
push 0
mov ecx, esi
mov byte [esi + 0x2e3], 1
call dword [edx + 0xc4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test al, al
jne 0x48a69d
cmp ebx, 4
je 0x48a61e
cmp ebx, 5
jne 0x48a69d
mov eax, dword [esi]
push 1
mov ecx, esi
mov byte [esi + 0x2e4], 1
call dword [eax + 0xc4]
mov al, byte [esi + 0x4ad]
test al, al
je 0x48a655
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xb8]
mov ecx, esi
mov byte [esi + 0x4ad], 0
call fcn.0047ffe0
mov ecx, dword [esi + 0x30c]
call fcn.004570d0
mov ecx, dword [esi + 0x2cc]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x2cc]
call fcn.0047a6d0
mov edx, dword [esi + 0x458]
mov eax, dword [esi + 0x2ec]
push 0
push edx
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp ebx, 7
je 0x48a6b1
test ebx, ebx
je 0x48a631
mov ecx, esi
call fcn.00480cf0
test al, al
je 0x48a6cd
push 1
push 0
mov ecx, esi
call fcn.00489730
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa0]
push ebx
push ecx
call fcn.00469d00
push eax
lea edx, [ebp - 0x68]
push str.Failed_to_initialize_DirectDraw:
push edx
mov dword [ebp - 4], 4
call fcn.00419760
push 0x4f99ec
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 5
call fcn.004196b0
mov ecx, dword [esi + 0x30c]
add ecx, 0xcd0
push ecx
push eax
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 6
call fcn.00419810
add esp, 0x2c
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call dword [edx + 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00466af0
lea ecx, [ebp - 0x84]
call fcn.00466af0
lea ecx, [ebp - 0x68]
call fcn.00466af0
lea ecx, [ebp - 0xa0]
call fcn.00466af0
push 1
call fcn.004dc22c
int3