Function at 0x40ce70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x5fe940]
push ebx
mov ebx, ecx
mov dword [esp + 0x114], eax
mov eax, dword [ebx + 0x224]
test eax, eax
push esi
push edi
mov dword [esp + 0x10], ebx
jne 0x40cec7
push 0
push str.Error
push str.m_pD3D_Lost__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
mov ecx, dword [esp + 0x11c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x228]
test eax, eax
je 0x40cee1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x228], 0
mov al, byte [ebx + 0x124]
test al, al
je 0x40d002
mov edx, dword [0x60d160]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
and eax, 0x7fffffff
push eax
mov eax, dword [0x60d160]
push 0xfffffffffffffff0
push eax
call ebx
mov ecx, dword [0x60d160]
push 0xffffffffffffffec
push ecx
call edi
mov edx, dword [0x60d160]
and eax, 0xfffffff7
push eax
push 0xffffffffffffffec
push edx
call ebx
mov eax, dword [0x60d160]
push 0x33
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x60d160]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x60d160]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub esi, edi
mov edi, dword [esp + 0x28]
sub edi, eax
sub esi, edx
mov edx, dword [esp + 0x20]
sub edi, ebx
push 0
add esi, ecx
add edi, edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0xc], eax
xor ecx, ecx
xor eax, eax
cmp ebx, 0x320
jle 0x40cfda
mov eax, ebx
sub eax, esi
sub eax, 0x320
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0xc]
sub eax, edi
sub eax, 0x258
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov edx, dword [0x60d160]
push 1
add edi, 0x258
push edi
add esi, 0x320
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebx, dword [esp + 0x10]
jmp 0x40d111
mov eax, dword [0x60d160]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x60d160]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x10ca0000
push 0xfffffffffffffff0
push ecx
call esi
test eax, eax
je 0x40d1cc
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 2
lea edx, [esp + 0x7c]
push edx
mov word [esp + 0xa4], 0x9c
mov dword [esp + 0xa8], 0x1c0000
mov dword [esp + 0xe8], 0x10
mov dword [esp + 0xec], 0x320
mov dword [esp + 0xf0], 0x258
mov dword [esp + 0xf8], 0x90
call edi
test eax, eax
je 0x40d0b2
push 2
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0xf8], 0x3c
call edi
test eax, eax
je 0x40d0b2
mov dword [esp + 0xf0], 0
push 4
lea ecx, [esp + 0x7c]
push ecx
call edi
mov edx, dword [0x60d160]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [0x60d160]
push SysReAllocString
push 0xfffffffffffffff0
push eax
call esi
mov ecx, dword [0x60d160]
push 8
push 0xffffffffffffffec
push ecx
call esi
mov edx, dword [0x60d160]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x60d160]
push 1
push 0x258
push 0x320
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebx + 0x224]
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
push 0
push eax
call dword [ecx + 0x20]
test eax, eax
jge 0x40d13e
or eax, 0xffffffff
mov ecx, dword [esp + 0x11c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov al, byte [ebx + 0x125]
test al, al
mov ecx, 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], 2
je 0x40d184
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x46
mov dword [esp + 0x5c], ecx
jmp 0x40d190
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 0x50
mov eax, dword [ebx + 0x224]
mov edx, dword [eax]
lea edi, [ebx + 0x228]
push edi
lea esi, [esp + 0x38]
push esi
mov esi, dword [0x60d160]
push 0x20
push esi
push ecx
push 0
push eax
call dword [edx + 0x3c]
test eax, eax
push 0
jge 0x40d1e4
push str.Error
push str.DirectX_Init_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
mov ecx, dword [esp + 0x11c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [eax]
push 0
push 0
push 0
push eax
call dword [ecx + 0x3c]
lea edi, [ebx + 0x1ec]
mov ecx, 0xd
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x817068]
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov eax, dword [0x60d160]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebx + 0x228]
lea esi, [ebx + 0x228]
push ecx
mov ecx, ebx
call fcn.00423920
mov eax, dword [ebx + 0x22c]
add ebx, 0x22c
test eax, eax
jne 0x40d261
cmp dword [esi], 0
je 0x40d261
mov edx, dword [0x817068]
push ebx
push edx
call fcn.0050d24f
test eax, eax
jne 0x40d1cc
cmp dword [ebx], 0
je 0x40d1cc
mov ecx, dword [esp + 0x11c]
xor eax, eax
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret