Function at 0x46fab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9ce9
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 + 0x2fc]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x46fb0c
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [esi + 0x2fc]
push edi
mov dword [esi + 0x2fc], ebx
call dword [sym.imp.USER32.dll_CloseWindow]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x2dc]
mov dword [eax + 0x10], ebx
mov al, byte [esi + 0x2f2]
test al, al
je 0x46fb72
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 0x46fb43
mov eax, dword [esi + 0x28]
jmp 0x46fb46
lea eax, [esi + 0x28]
mov ecx, dword [0x57efd0]
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 0x46fba1
cmp dword [esi + 0x3c], 0x10
jb 0x46fb7d
mov eax, dword [esi + 0x28]
jmp 0x46fb80
lea eax, [esi + 0x28]
mov edx, dword [0x57efd0]
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 + 0x2fc], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x31c]
or edi, 0xffffffff
cmp eax, ebx
jne 0x46fc87
push 0xcec
call fcn.004d1915
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x46fbe9
push esi
mov ecx, eax
call fcn.00460aa0
jmp 0x46fbeb
xor eax, eax
mov dword [esi + 0x31c], 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 0x46fc10
sub eax, ecx
push eax
push str.Is3D
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
lea ecx, [ebp - 0xd]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0046c130
mov bl, al
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x46fc54
mov eax, dword [ebp - 0x28]
push eax
call fcn.004e11d0
add esp, 4
test bl, bl
je 0x46fc87
mov al, byte [esi + 0x58f]
test al, al
je 0x46fc70
mov byte [esi + 0x58f], 0
mov byte [esi + 0x590], 1
mov al, byte [ebp - 0xd]
test al, al
je 0x46fc7e
mov byte [esi + 0x590], 1
mov ecx, dword [esi + 0x31c]
mov byte [ecx + 0x10], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x94]
mov ecx, dword [esi + 0x2fc]
xor eax, eax
mov al, byte [esi + 0x2f2]
push eax
push ecx
mov ecx, dword [esi + 0x31c]
call fcn.0045c560
mov edx, dword [esi + 0x31c]
mov ebx, eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x46fd1e
mov cl, byte [eax + 0x82]
test cl, cl
je 0x46fd1e
mov eax, str.Is3D
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fce0
sub eax, edx
push eax
push str.Is3D
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0046bb30
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], edi
jb 0x46fd1e
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e11d0
add esp, 4
mov al, byte [esi + 0x2f2]
test al, al
je 0x46fd9b
cmp ebx, 6
jne 0x46fd93
mov al, byte [esi + 0x2f4]
test al, al
je 0x46fd6f
push 0x504b04
lea ecx, [ebp - 0x2c]
call fcn.0040a730
mov edx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call dword [edx + 0x50]
cmp dword [ebp - 0x14], 0x10
jb 0x46fd68
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e11d0
add esp, 4
push 1
call fcn.004e28bf
mov edx, dword [esi]
push 0
mov ecx, esi
mov byte [esi + 0x2f3], 1
call dword [edx + 0xcc]
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 0x46fe28
cmp ebx, 4
je 0x46fda9
cmp ebx, 5
jne 0x46fe28
mov eax, dword [esi]
push 1
mov ecx, esi
mov byte [esi + 0x2f4], 1
call dword [eax + 0xcc]
mov al, byte [esi + 0x4dd]
test al, al
je 0x46fde0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xc0]
mov ecx, esi
mov byte [esi + 0x4dd], 0
call fcn.00464860
mov ecx, dword [esi + 0x31c]
call fcn.00440c60
mov ecx, dword [esi + 0x2dc]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x2dc]
call fcn.00479bd0
mov edx, dword [esi + 0x488]
mov eax, dword [esi + 0x2fc]
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 0x46fe3c
test ebx, ebx
je 0x46fdbc
mov ecx, esi
call fcn.00465720
test al, al
je 0x46fe58
push 1
push 0
mov ecx, esi
call fcn.0046eae0
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.00455550
push eax
lea edx, [ebp - 0x68]
push str.Failed_to_initialize_DirectDraw:
push edx
mov dword [ebp - 4], 4
call fcn.0040c710
push 0x500d50
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 5
call fcn.00409e60
mov ecx, dword [esi + 0x31c]
add ecx, 0xcd0
push ecx
push eax
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 6
call fcn.00409f10
add esp, 0x2c
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call dword [edx + 0x50]
lea ecx, [ebp - 0x4c]
call fcn.00483280
lea ecx, [ebp - 0x84]
call fcn.00483280
lea ecx, [ebp - 0x68]
call fcn.00483280
lea ecx, [ebp - 0xa0]
call fcn.00483280
push 1
call fcn.004e28bf
int3