Function at 0x140003c00
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1401cb558]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov esi, edx
mov rbx, rcx
cmp edx, dword [rcx + 0x124]
je 0x140003f89
mov rax, qword [rcx + 8]
lea rdx, [rbp - 0x51]
mov qword [rsp + 0xd0], r13
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rax, qword [rbx + 8]
mov edx, dword [rbx + 0x114]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r13, rax
test rax, rax
je 0x140003f81
mov rcx, qword [rbx + 8]
mov edx, dword [rbx + 0x110]
mov qword [rsp + 0xd8], r12
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r12, rax
test rax, rax
je 0x140003f79
lea rdx, [rbp - 9]
mov qword [rsp + 0xc8], r14
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rbx + 8]
mov edx, dword [rbx + 0x12c]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r14, rax
test rax, rax
je 0x140003f71
mov qword [rsp + 0x110], rdi
lea rdx, [rbp - 0x39]
mov rcx, rax
mov qword [rsp + 0xc0], r15
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [rbx + 0x124], 0
mov r8d, dword [rbp + 3]
mov edx, dword [rbp - 0x35]
je 0x140003d12
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140003d32
mov ecx, dword [rbp - 9]
mov eax, dword [rbp - 0x31]
sub eax, dword [rbp - 0x39]
add eax, ecx
mov dword [rbp - 0x29], ecx
mov dword [rbp - 0x21], eax
mov eax, dword [rbp - 0x2d]
sub eax, edx
mov dword [rbp - 0x25], r8d
add eax, r8d
mov dword [rbp - 0x1d], eax
mov rax, qword [rbx + 8]
sub edx, r8d
mov r15d, edx
neg r15d
test esi, esi
movsxd rcx, dword [rax + 4]
cmovne r15d, edx
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rdi, rax
test rax, rax
je 0x140003e35
lea rdx, [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x140003e1b
cmp dword [rbx + 0x128], eax
je 0x140003d9c
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140003e09
cmp rdi, r14
je 0x140003e09
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x140003e09
mov eax, dword [rbp - 0x19]
lea rdx, [rbp - 0x59]
mov ecx, dword [rbp - 0x15]
mov dword [rbp - 0x59], eax
add ecx, r15d
mov rax, qword [rbx + 8]
mov dword [rbp - 0x55], ecx
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r9d, dword [rbp - 0x55]
xor eax, eax
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov dword [rsp + 0x30], 5
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 5
jmp 0x140003e12
mov eax, esi
neg eax
sbb edx, edx
and edx, 5
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
mov rdi, rax
test rax, rax
jne 0x140003d60
mov r15, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x110]
test esi, esi
jne 0x140003eee
mov r8d, dword [rbp - 0x49]
mov eax, r8d
mov ecx, dword [rbp - 0x51]
sub eax, ecx
mov r9d, dword [rbp - 0x4d]
mov dword [rbx + 0x11c], eax
mov eax, dword [rbp - 0x45]
sub eax, r9d
mov dword [rbx + 0x120], eax
cmp dword [rbx + 0x128], esi
jne 0x140003e97
xor edx, edx
mov dword [rbx + 0x128], 1
mov rcx, r12
call qword [sym.imp.USER32.dll_ShowWindow]
mov r8d, dword [rbp - 0x49]
mov r9d, dword [rbp - 0x4d]
mov ecx, dword [rbp - 0x51]
mov edx, dword [rbp - 0x2d]
sub r8d, ecx
mov rax, qword [rbx + 8]
sub edx, r9d
sub edx, dword [rbp - 0x35]
xor r9d, r9d
add edx, dword [rbp + 3]
mov dword [rsp + 0x30], 6
movsxd rcx, dword [rax + 4]
mov dword [rsp + 0x28], edx
xor edx, edx
mov dword [rsp + 0x20], r8d
xor r8d, r8d
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
mov rcx, r13
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rbx + 0x124], 0
jmp 0x140003f71
mov rax, qword [rbx + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 6
xor r8d, r8d
xor edx, edx
movsxd rcx, dword [rax + 4]
mov eax, dword [rbx + 0x120]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x11c]
mov rcx, qword [rcx + rbx + 0x10]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rax, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rbx + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rbx + 0x118], 0
je 0x140003f67
lea rdx, [rbx + 0x90]
mov rcx, r13
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rbx + 0x124], 1
mov r14, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14002a970
add rsp, 0xe0
pop rsi
pop rbx
pop rbp
ret