Function at 0x40f440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
cmp eax, 0x113
jne 0x40f4a7
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40f47d
call fcn.0040dde0
mov ecx, ebx
call fcn.0040cc50
mov ecx, ebx
call fcn.0040cce0
mov ecx, ebx
call fcn.0040cb90
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 2
jne 0x40f490
call fcn.0040cd70
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 3
jne 0x40f74d
call fcn.0040dfa0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x233
jne 0x40f4e7
cmp dword [ebx + 0xd8], 3
jne 0x40f74d
mov ecx, dword [ebx + 0xec]
mov eax, dword [ecx]
mov edx, dword [eax + 0x108]
call edx
test al, al
je 0x40f74d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0040ea70
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x205
jne 0x40f50f
cmp dword [ebx + 0xd8], 3
jne 0x40f74d
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.0040c9b0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x200
jne 0x40f584
cmp byte [ebx + 0xf4], 0
je 0x40f74d
lea esi, [ebx + 0x100]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi]
cmp edx, dword [ebx + 0x108]
je 0x40f54d
mov eax, dword [ebx + 8]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x40f74d
mov ecx, dword [ebx + 0x104]
mov edx, dword [esi]
mov eax, dword [eax + 8]
push 1
push 0x20
push 0x20
add ecx, 0xa
push ecx
add edx, 0xa
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x2a3
jne 0x40f5d6
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x40f74d
mov ecx, dword [eax + 8]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x40f5bc
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [ebx + 0xb0], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x402
jne 0x40f5eb
call fcn.0040c1b0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x202
jne 0x40f644
mov eax, dword [ebx + 0xb0]
mov byte [ebx + 0xf4], 0
test eax, eax
je 0x40f74d
mov ecx, dword [eax + 8]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x40f62a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, ebx
mov dword [ebx + 0xb0], 0
call fcn.0040eea0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x10
jne 0x40f671
mov ecx, dword [ebx + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebx + 0x40]
call fcn.00412860
mov ecx, dword [ebx + 0x90]
call fcn.00411330
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 0x403
jne 0x40f74d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, 1
jne 0x40f6de
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0040da40
test eax, eax
je 0x40f74d
mov esi, dword [ebp + 0x10]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x90]
call fcn.004115e0
test eax, eax
je 0x40f6ce
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebx + 0xc0]
call fcn.00403ee0
mov ecx, ebx
call fcn.0040d9c0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, 2
jne 0x40f74d
mov eax, dword [ebx + 0xe4]
dec eax
push eax
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x90]
call fcn.00411630
mov ecx, dword [ebx + 0xe4]
push ecx
mov ecx, dword [ebx + 0x90]
call fcn.00411440
mov ecx, dword [ebx + 0x14c]
mov edx, dword [ecx]
xor eax, eax
mov dword [0x432148], eax
mov dword [0x43214c], eax
mov eax, dword [edx + 0x1ac]
call eax
mov ecx, ebx
call fcn.0040de50
mov esi, dword [ebp + 0x10]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0040cad0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc