Function at 0x46eca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db7c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x318]
xor ebx, ebx
cmp eax, ebx
je 0x46ecf4
push ebx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x318]
push eax
mov dword [esi + 0x318], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x2ec]
mov dword [eax + 0x10], ebx
mov eax, dword [esi + 0x320]
cmp eax, ebx
push edi
je 0x46ed0a
mov dword [esi + 0x318], eax
jmp 0x46ee3b
mov al, byte [esi + 0x30e]
test al, al
je 0x46ee78
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
push ebx
push 0x82ca0000
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push 0
sub ebx, ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x30
sub edi, edx
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esi + 0x60]
cmp ecx, 0xffffffff
mov eax, 0x40
mov edx, eax
je 0x46edb1
mov edx, dword [esi + 0x64]
mov eax, ecx
mov ecx, dword [ebp - 0x44]
add ecx, 4
cmp eax, ecx
mov dword [ebp - 0x14], edx
jge 0x46ed7d
mov eax, ecx
mov ecx, dword [ebp - 0x40]
add ecx, 4
cmp edx, ecx
jge 0x46ed8a
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffffc
lea edx, [eax + edi]
cmp edx, ecx
jl 0x46ed9b
sub ecx, edi
mov eax, ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
add edx, 0xfffffffc
add ecx, ebx
cmp ecx, edx
jl 0x46edae
sub edx, ebx
jmp 0x46edb1
mov edx, dword [ebp - 0x14]
cmp dword [esi + 0x3c], 0x10
jb 0x46edbc
mov ecx, dword [esi + 0x28]
jmp 0x46edbf
lea ecx, [esi + 0x28]
push 0
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x516fa0]
push ecx
push 0
push 0
push ebx
push edi
push edx
mov edx, dword [ebp - 0x14]
push eax
push 0x82ca0000
push edx
push str.MainWindow
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x34], eax
mov dword [esi + 0x318], eax
cmp dword [esi + 0x60], 0xffffffff
jne 0x46ee39
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
sub eax, edx
sub eax, ebx
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
push 0
push ebx
push edi
fmul qword [0x4e65b8]
call fcn.004c331c
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x44]
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
xor ebx, ebx
mov eax, dword [esi + 0x318]
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [esi + 0x33c], ebx
jne 0x46ef59
push 0xcf0
call fcn.004b18e0
add esp, 4
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x46eeb5
push esi
mov ecx, eax
call fcn.00455cf0
jmp 0x46eeb7
cmp dword [esi + 0x3c], 0x10
jb 0x46ee83
mov eax, dword [esi + 0x28]
jmp 0x46ee86
lea eax, [esi + 0x28]
mov edx, dword [0x516fa0]
mov ecx, dword [esi + 0x6c]
push ebx
push edx
mov edx, dword [esi + 0x68]
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]
mov dword [esi + 0x318], eax
jmp 0x46ee3b
xor eax, eax
mov dword [esi + 0x33c], eax
or edi, 0xffffffff
mov eax, str.Is3D
mov dword [ebp - 4], edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46eee0
sub eax, ecx
push eax
push str.Is3D
lea ecx, [ebp - 0x30]
call fcn.004025c3
lea ecx, [ebp - 0xd]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0046ac30
mov bl, al
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x46ef24
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004c2b1b
add esp, 4
test bl, bl
je 0x46ef5c
mov al, byte [esi + 0x5cd]
test al, al
je 0x46ef40
mov byte [esi + 0x5cd], 0
mov byte [esi + 0x5ce], 1
mov al, byte [ebp - 0xd]
test al, al
je 0x46ef4e
mov byte [esi + 0x5ce], 1
mov ecx, dword [esi + 0x33c]
mov byte [ecx + 0x38], al
jmp 0x46ef5c
or edi, 0xffffffff
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa0]
mov ecx, dword [esi + 0x318]
xor eax, eax
mov al, byte [esi + 0x30e]
push eax
push ecx
mov ecx, dword [esi + 0x33c]
call fcn.0045ddf0
mov edx, dword [esi + 0x33c]
mov ebx, eax
mov eax, dword [edx + 0x34]
test eax, eax
je 0x46eff2
mov cl, byte [eax + 0x82]
test cl, cl
je 0x46eff2
mov eax, str.Is3D
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46efb4
sub eax, edx
push eax
push str.Is3D
lea ecx, [ebp - 0x30]
call fcn.004025c3
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0046a620
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x46eff2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004c2b1b
add esp, 4
mov al, byte [esi + 0x30e]
test al, al
pop edi
je 0x46f06f
cmp ebx, 6
jne 0x46f067
mov al, byte [esi + 0x310]
test al, al
je 0x46f044
push str.Please_set_your_desktop_color_depth_to_16_bit.
lea ecx, [ebp - 0x30]
call fcn.004028b0
mov edx, dword [esi]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call dword [edx + 0x5c]
cmp dword [ebp - 0x18], 0x10
jb 0x46f03d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004c2b1b
add esp, 4
push 1
call fcn.004c6589
mov edx, dword [esi]
push 0
mov ecx, esi
mov byte [esi + 0x30f], 1
call dword [edx + 0xdc]
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test al, al
jne 0x46f0f7
cmp ebx, 4
je 0x46f079
cmp ebx, 5
jne 0x46f0f7
mov eax, dword [esi]
push 1
mov ecx, esi
mov byte [esi + 0x310], 1
call dword [eax + 0xdc]
mov al, byte [esi + 0x503]
test al, al
je 0x46f0b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xd0]
mov ecx, esi
mov byte [esi + 0x503], 0
call fcn.00462c90
mov ecx, dword [esi + 0x33c]
call fcn.004375f0
mov ecx, dword [esi + 0x2ec]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x2ec]
call fcn.00416890
mov edx, dword [esi + 0x4ac]
mov eax, dword [esi + 0x318]
push 0
push edx
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp ebx, 7
je 0x46f10b
test ebx, ebx
je 0x46f08c
mov ecx, esi
call fcn.00463b80
test al, al
je 0x46f126
push 1
push 0
mov ecx, esi
call fcn.0046db60
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa4]
push ebx
push ecx
call fcn.0044d3a0
push eax
lea edx, [ebp - 0x6c]
push str.Failed_to_initialize_DirectDraw:
push edx
mov dword [ebp - 4], 4
call fcn.00411879
push 0x4e3a90
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 5
call fcn.0040a10e
mov ecx, dword [esi + 0x33c]
add ecx, 0xcd4
push ecx
push eax
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 6
call fcn.00410392
add esp, 0x2c
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call dword [edx + 0x5c]
lea ecx, [ebp - 0x50]
call fcn.0040207a
lea ecx, [ebp - 0x88]
call fcn.0040207a
lea ecx, [ebp - 0x6c]
call fcn.0040207a
lea ecx, [ebp - 0xa4]
call fcn.0040207a
push 1
call fcn.004c6589
int3