Function at 0x40c240
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46e922
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, edi
call fcn.0040beb0
mov eax, dword [edi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00417870
mov dword [esp + 0x98], 0
mov eax, dword [edi + 0x408]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x1c]
call eax
xor ecx, ecx
mov word [esp + 0x38], cx
mov ecx, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c2e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x38]
call fcn.00403ee0
mov byte [esp + 0x98], 1
mov ecx, dword [esp + 0x8c]
push 0xffffffffffffffff
push 0
add ecx, 0x2c
mov eax, esi
call fcn.004042a0
cmp dword [esp + 0x4c], 8
jb 0x40c32a
mov edx, dword [esp + 0x38]
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x18], eax
call ebx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
sub eax, ecx
add eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
add eax, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x74]
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x84]
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call fcn.0040bf70
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40c402
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
je 0x40c3db
mov ecx, dword [esp + 0x70]
push 5
push 0
push 0
push esi
push edi
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40c402
push eax
call ebx
test eax, eax
je 0x40c402
mov edx, dword [esp + 0x70]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
call esi
test eax, eax
je 0x40c44e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x50], edx
jne 0x40c43d
lea eax, [esp + 0x50]
push eax
call edi
lea ecx, [esp + 0x50]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
call esi
test eax, eax
jne 0x40c425
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.00417920
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x8c
ret