Function at 0x40bff0
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46dc62
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebp
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, esi
call fcn.0040beb0
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
push ecx
push edx
call ebp
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0040f420
mov dword [esp + 0x98], 0
mov eax, dword [esi + 0x408]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x20]
call eax
mov ecx, eax
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40c090
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00403b10
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xa4], 1
mov ecx, dword [esp + 0x98]
add ecx, 0x2c
call fcn.004038f0
cmp dword [esp + 0x4c], 0x10
jb 0x40c0d8
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 ebp
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 esi
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 0x40c1b0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebp
test eax, eax
je 0x40c189
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 0x40c1b0
push eax
call ebp
test eax, eax
je 0x40c1b0
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 0x40c1fc
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x50], edx
jne 0x40c1eb
lea eax, [esp + 0x50]
push eax
call edi
lea ecx, [esp + 0x50]
push ecx
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
call esi
test eax, eax
jne 0x40c1d3
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.0040f4d0
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x8c
ret