Function at 0x1400203a0
Capabilities:
Hide graphical window

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14d, ecx
shr r14d, 7
and r14d, 0x40
or r14d, ecx
mov ebp, r8d
shr ebp, 7
and ebp, 0x40
or ebp, r8d
cmp r14d, ebp
je 0x140020674
mov edi, r8d
mov rsi, rdx
xor r14d, ebp
test dil, 0x10
je 0x1400203f6
and ecx, 0x200000
cmp ecx, 1
mov edx, 5
sbb edx, 0
mov rcx, rsi
call qword [sym.imp.user32.dll_ShowWindow]
test r14b, 0xc0
je 0x140020459
test bpl, 0x40
jne 0x140020414
mov eax, edi
shr al, 7
movzx eax, al
lea rdx, [rax + rax*2]
add rdx, 0xfffffffffffffffe
jmp 0x140020424
mov rdx, 0xffffffffffffffff
test dil, dil
js 0x14002067f
mov dword [rsp + 0x30], 0x4013
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.user32.dll_SetWindowPos]
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.user32.dll_InvalidateRgn]
mov ebx, r14d
or ebx, edi
test ebx, 0x800
jne 0x1400205d8
test r14d, 0x20000
jne 0x140020601
test bl, 8
jne 0x140020630
test dil, 0x10
je 0x140020660
test r14d, r14d
je 0x140020674
lea rcx, [0x143732160]
call fcn.14001dfd0
mov r8d, 1
mov rcx, rsi
mov edx, eax
xor r9d, r9d
call qword [sym.imp.user32.dll_SendMessageW]
test edi, 0x20000
jne 0x14002057a
mov eax, edi
and eax, 2
shl eax, 0x10
mov ecx, edi
and ecx, 4
shl ecx, 0xe
or ecx, eax
mov eax, edi
and eax, 0x10
shl eax, 0x18
or eax, ecx
mov ecx, edi
shl ecx, 0x14
and ecx, 0x40000000
or ecx, eax
mov edx, edi
shl edx, 0x13
and edx, 0x80000000
or edx, ecx
mov eax, ebp
shl eax, 0xd
mov ecx, eax
and ecx, 0x1000000
mov r9d, edi
and r9d, 1
shl r9d, 0x12
or r9d, edx
or r9d, ecx
or r9d, 0x6c80000
mov r8d, r9d
and r8d, 0xff30ffff
test edi, 0x6000
cmove r8d, r9d
and eax, 0x200000
shr ebp, 3
and ebp, 8
mov ecx, edi
and ecx, 0x20
shl ecx, 0xd
or ecx, ebp
or ecx, eax
test edi, 0x40000
mov eax, 0x110
mov ebx, 0x80130
cmove ebx, eax
or ebx, ecx
mov r14, qword [sym.imp.user32.dll_SetWindowLongW]
mov rcx, rsi
mov edx, 0xfffffff0
call r14
mov rcx, rsi
mov edx, 0xffffffec
mov r8d, ebx
call r14
xor eax, eax
test edi, 0x6000
sete al
shl eax, 4
or eax, 0x27
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.user32.dll_SetWindowPos]
lea rcx, [0x143732160]
call fcn.14001dfd0
mov rcx, rsi
mov edx, eax
xor r8d, r8d
xor r9d, r9d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.user32.dll_SendMessageW]
test edi, 0x800
mov eax, 9
mov edx, 3
cmove edx, eax
mov rcx, rsi
call qword [sym.imp.user32.dll_ShowWindow]
test r14d, 0x20000
je 0x140020477
xor eax, eax
test edi, 0x20000
sete al
lea edx, [rax + rax*2]
add edx, 6
mov rcx, rsi
call qword [sym.imp.user32.dll_ShowWindow]
and r14d, 0xfffdffff
mov ebx, r14d
or ebx, edi
test bl, 8
je 0x140020480
mov ebx, edi
not ebx
shr ebx, 2
and ebx, 2
mov rcx, rsi
xor edx, edx
call qword [sym.imp.user32.dll_GetSystemMenu]
mov rcx, rax
mov edx, 0xf060
mov r8d, ebx
call qword [sym.imp.user32.dll_EnableMenuItem]
test dil, 0x10
jne 0x14002048a
mov rcx, rsi
xor edx, edx
call qword [sym.imp.user32.dll_ShowWindow]
test r14d, r14d
jne 0x140020493
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14371ed1c]
lea r8, [0x14371edc0]
mov edx, 0x28
call fcn.140046180
int3