Function at 0x140066370
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov ebx, edx
mov rsi, rcx
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
lea r8d, [r14 + 0x25]
lea rdx, str._Main_OnVisible_____Entering_routine.
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
lea r8d, [r14 + 5]
lea rdx, [rbp - 0x28]
call fcn.140078560
mov edx, 0x3e9
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x130b
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
lea r8d, [r14 + 0x25]
lea rdx, str._Main_OnVisible_____tabctrl_getcursel
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
lea r8d, [r14 + 6]
lea rdx, [rbp - 0x28]
call fcn.140078560
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
lea rcx, [rbp - 0x28]
mov qword [rbp + 0x30], rax
test ebx, ebx
je 0x140066722
lea r8d, [r14 + 0x22]
lea rdx, str._Main_OnVisible_____visible:_TRUE_
call fcn.14000dc20
nop
lea r8d, [r14 + 5]
lea rdx, [rbp - 0x28]
call fcn.140078560
cmp edi, 0xffffffff
je 0x1400664d1
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
lea r8d, [r14 + 0x3e]
lea rdx, str._Main_OnVisible_____index_____1___showing_window_based_on_tab
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
lea r8d, [r14 + 5]
lea rdx, [rbp - 0x28]
call fcn.140078560
movsxd rcx, edi
shl rcx, 5
lea rax, [0x140235400]
lea edx, [r14 + 5]
mov rcx, qword [rcx + rax + 0x18]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x2c
lea rdx, str._Main_OnVisible_____showing_window__SH_SHOW_
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
mov edx, 5
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x2f
lea rdx, str._Main_OnVisible_____showing_window__SW_RESTORE_
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
mov edx, 9
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x29
lea rdx, str._Main_OnVisible_____set_foreground_window
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x3a
lea rdx, str._Main_OnVisible_____setting_g_config.WindowHidden_to_false
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
mov byte [0x140239c74], 0
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x45
lea rdx, str._Main_OnVisible_____checking_for_g_trayactive_and_g_config.StayHidden
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
cmp byte [0x1402391eb], 0
jne 0x140066906
cmp byte [0x140239b54], 0
jne 0x140066906
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x40
lea rdx, str._Main_OnVisible_____NOT_g_trayactive_AND_NOT_g_config.StayHidden
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
mov byte [0x1402391eb], 1
mov byte [0x140239c76], 0
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x31
lea rdx, str._Main_OnVisible_____showing_notify_icon__NIM_ADD_
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
lea rdx, [0x140239250]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x2c
lea rdx, str._Main_OnVisible_____done_showing_notify_icon
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
jmp 0x1400668f7
mov r8d, 0x23
lea rdx, str._Main_OnVisible_____visible:_FALSE_
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
cmp edi, 0xffffffff
je 0x1400667a3
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x3d
lea rdx, str._Main_OnVisible_____index_____1___hiding_window_based_on_tab
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
movsxd rcx, edi
shl rcx, 5
lea rax, [0x140235400]
xor edx, edx
mov rcx, qword [rcx + rax + 0x18]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x28
lea rdx, str._Main_OnVisible_____about_to_hide_window
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x26
lea rdx, str._Main_OnVisible_____done_hiding_window
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
mov byte [0x140239c74], 1
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, gethostname
lea rdx, str._Main_OnVisible_____set_g_config.WindowHidden_to__TRUE_
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, gethostname
lea rdx, str._Main_OnVisible_____about_to_SetProcessWorkingSetSize
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
or r8, 0xffffffffffffffff
or rdx, r8
call qword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x3a
lea rdx, str._Main_OnVisible_____finished_with_SetProcessWorkingSetSize
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 6
lea rdx, [rbp - 0x28]
call fcn.140078560
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r14
mov word [rbp - 0x28], r14w
mov r8d, 0x24
lea rdx, str._Main_OnVisible_____Leaving_routine.
lea rcx, [rbp - 0x28]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rbp - 0x28]
call fcn.140078560
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret