Function at 0x4faa40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.USER32.dll_IsWindowVisible]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
movzx esi, bx
shr ebx, 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
push dword [edi + 0xd0]
mov dword [edi + 0xa8], ebx
call eax
test eax, eax
je 0x4faa87
mov ecx, edi
call fcn.004fe840
jmp 0x4faece
cmp dword [edi + 0xac], 0
je 0x4faade
cmp dword [edi + 0xbc], 0
lea esi, [edi + 0xbc]
je 0x4faac9
push dword [edi + 0xd0]
call dword [ebp - 0x1c]
test eax, eax
jne 0x4faac9
mov ecx, dword [esi]
push ebx
push dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 0x24]
push esi
lea ecx, [edi + 0xb0]
call fcn.00500be0
mov dword [esi], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi + 0xac], 0
jmp 0x4faece
push ebx
push esi
lea ecx, [edi + 0x48]
call fcn.004e9480
mov ecx, dword [sym.imp.USER32.dll_IsRectEmpty]
cmp eax, 8
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.USER32.dll_SetClassLongW]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
jne 0x4fad62
cmp dword [edi + 0x180], 0
jle 0x4fab2d
call fcn.00501520
test eax, eax
jne 0x4fab4f
cmp dword [edi + 0x180], eax
jne 0x4fad72
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x4fad72
push dword [eax + 4]
call dword [ebp - 0x1c]
test eax, eax
je 0x4fad72
mov eax, dword [edi + 0xc8]
mov ecx, dword [edi + 0xbc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4fab7a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [edi + 0xbc], 0
mov edx, dword [edi + 0x180]
test edx, edx
jne 0x4fab87
push eax
jmp 0x4fab8f
jle 0x4fab9e
push dword [edi + 0x18c]
mov ecx, edi
call fcn.004f8550
mov ecx, eax
mov dword [edi + 0xbc], ecx
test ecx, ecx
je 0x4fad15
push dword [edi + 4]
mov dword [edi + 0xac], 1
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [edi + 0xc4]
test edx, edx
je 0x4fabeb
mov ecx, dword [edi + 0xbc]
push dword [edx + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0xbc]
mov eax, dword [edi + 0xc4]
mov edx, dword [ecx]
push dword [eax + 0x210]
call dword [edx + 0x10]
mov ecx, dword [edi + 0xbc]
lea edx, [edi + 0x50]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edx, dword [edi + 0xc0]
mov ecx, dword [edi + 0xbc]
push edx
lea eax, [edx + 1]
mov dword [edi + 0xc0], eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0xbc]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [edi + 0x180]
test ecx, ecx
jne 0x4fac69
mov eax, dword [ebp - 0x20]
cmp eax, 0x505
je 0x4fac77
cmp eax, 0xffffffff
jne 0x4fac50
test ecx, ecx
jle 0x4faece
cmp dword [edi + 0x18c], 0
je 0x4faece
push 0x7f03
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4faece
jle 0x4fac3b
cmp dword [edi + 0x18c], 0x505
jne 0x4fac43
mov ecx, dword [edi + 0x50]
lea edx, [esi + 0x1e]
cmp ecx, dword [edi + 0x58]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
lea esi, [ebx + 0x1e]
cmovl ecx, dword [edi + 0x58]
cmp edx, ecx
mov dword [ebp - 0x10], ebx
push eax
cmovg edx, ecx
mov ecx, dword [edi + 0x54]
cmp ecx, dword [edi + 0x5c]
mov dword [ebp - 0xc], edx
cmovl ecx, dword [edi + 0x5c]
cmp esi, ecx
cmovg esi, ecx
lea ecx, [edi + 0xcc]
mov dword [ebp - 8], esi
call fcn.004ff4b0
push 0x52ca68
push dword [edi + 0xd0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x114]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 0x44
push 0x28
push 0x64
push ebx
push dword [ebp - 0x24]
push 0
push dword [edi + 0xd0]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0xd0]
call dword [sym.imp.USER32.dll_SetFocus]
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4faece
lea eax, [edi + 0x50]
push eax
call dword [ebp - 0x30]
test eax, eax
jne 0x4fad4c
mov eax, dword [edi + 0xb4]
sub eax, dword [edi + 0xb0]
sar eax, 2
test eax, eax
jne 0x4fad72
push 0x7f86
push eax
call dword [ebp - 0x18]
push eax
push 0xfffffffffffffff4
push dword [edi + 4]
call dword [ebp - 0x34]
mov eax, 1
jmp 0x4fad7b
push 0x6b
push dword [0x568650]
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x2c]
mov eax, 1
jmp 0x4fad7b
lea eax, [edi + 0x50]
push eax
call ecx
test eax, eax
jne 0x4fad79
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4fad79
mov eax, 1
jmp 0x4fad7b
xor eax, eax
mov dword [edi + 0x174], eax
cmp dword [edi + 0xbc], 0
jne 0x4faece
mov eax, dword [edi + 0xb4]
sub eax, dword [edi + 0xb0]
sar eax, 2
test eax, eax
jne 0x4faece
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x4fadc0
cmp dword [eax + 0x78], 0
jge 0x4fadc0
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x28], 0
mov cl, byte [edi + 0x9d]
jge 0x4fae0c
test cl, cl
jne 0x4fadf5
push ebx
push esi
push ebx
push esi
lea eax, [edi + 0x50]
mov dword [edi + 0x94], esi
push eax
mov dword [edi + 0x98], ebx
mov word [edi + 0x9c], 0x101
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x4fae59
push 0x6b
push dword [0x568650]
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x2c]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4fae68
test cl, cl
je 0x4fae59
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x4fae2c
push dword [eax + 4]
call dword [ebp - 0x1c]
test eax, eax
jne 0x4fae2c
cmp dword [edi + 0x180], eax
je 0x4fae3e
cmp dword [edi + 0x180], 0
jle 0x4fae59
call fcn.00501520
test eax, eax
je 0x4fae59
push 0
push 1
push ebx
push esi
push dword [edi + 4]
lea ecx, [edi + 0x48]
call fcn.004e9870
mov dword [edi + 0x170], 0
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [edi + 4]
call esi
cmp dword [edi + 0x14c], 0
je 0x4faece
mov eax, dword [edi + 0x134]
sub eax, dword [edi + 0x12c]
test eax, eax
jle 0x4faece
lea ebx, [edi + 0x50]
push ebx
call dword [ebp - 0x30]
test eax, eax
je 0x4faece
movups xmm0, xmmword [edi + 0x12c]
push 1
push 0
push dword [edi + 4]
movups xmmword [ebx], xmm0
call esi
mov eax, dword [edi + 0xb4]
sub eax, dword [edi + 0xb0]
sar eax, 2
test eax, eax
jne 0x4faec4
push 0x7f86
push eax
call dword [ebp - 0x18]
push eax
push 0xfffffffffffffff4
push dword [edi + 4]
call dword [ebp - 0x34]
mov dword [edi + 0x170], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x10