Function at 0x180016840
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rbp - 8], rax
cmp dword [rbp + 0x70], 0
mov r12d, 1
mov r14, qword [rbp + 0x60]
mov r15, r9
mov rsi, qword [rbp + 0x68]
mov edi, r8d
mov dword [rbp - 0x20], r12d
mov rbx, rcx
jne 0x180016b87
cmp r8d, 5
jne 0x18001690f
mov rax, qword [rcx + 0x30]
xor edi, edi
movsx r15d, r14w
shr r14, 0x10
movsx r14d, r14w
mov dword [rax + 0x34], r12d
test r15d, r15d
je 0x180016900
test r14d, r14d
je 0x180016900
cmp qword [rcx + 0xa0], rdi
je 0x180016900
add rcx, 0x7c
mov qword [rbp - 0x18], rdi
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x10], r15d
mov dword [rbp - 0xc], r14d
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rbx + 0xa0]
lea rdx, [rbp - 0x18]
add rcx, 0x2c
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], r15d
mov dword [rbp - 0xc], r14d
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsi], rdi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], edi
jmp 0x180016b81
cmp edi, 0x110
jne 0x180016a2f
mov rax, qword [rcx + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], r12d
xor edx, edx
mov dword [rax + 0x34], r12d
mov eax, dword [rcx + 0xbc]
mov r9d, dword [rcx + 0xb8]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_MoveWindow]
lea rcx, [rbx + 8]
call fcn.180016640
call fcn.18002b250
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xa8], rax
test rcx, rcx
je 0x180016971
mov rax, qword [rcx]
mov edx, r12d
call qword [rax]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x180016a08
xor edi, edi
lea rax, [rbx + 0x40]
xorps xmm0, xmm0
lea rdx, [rbp - 0x18]
test rbx, rbx
cmove rax, rdi
mov qword [rcx + 0x58], rax
mov rcx, qword [rbx + 8]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
lea rcx, [rbx + 0x7c]
lea rdx, [rbp - 0x18]
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rbx + 0xa0]
lea r8, [rbx + 0x50]
test rbx, rbx
mov dword [rbx + 0x90], 0x402
cmove r8, rdi
xor edx, edx
call fcn.18002a800
mov rcx, qword [rbx + 0xa0]
lea rdx, [rbp - 0x18]
add rcx, 0x2c
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call fcn.180017530
mov qword [rsi], r12
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], 0
jmp 0x180016b81
cmp edi, 0x111
jne 0x180016a78
xor edi, edi
cmp r12w, r15w
jne 0x180016a54
mov rcx, qword [rcx + 8]
mov rdx, r12
call qword [sym.imp.USER32.dll_EndDialog]
mov qword [rsi], rdi
cmp dword [rbp - 0x20], edi
jne 0x180016aab
mov edx, 2
cmp dx, r15w
jne 0x180016b87
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
cmp dword [rbp - 0x20], edi
mov qword [rsi], rdi
jmp 0x180016b81
lea eax, [r8 - 0x200]
cmp eax, 0xd
ja 0x180016aa3
lea rax, [rbp - 0x20]
mov r9, r14
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, edi
call fcn.180017010
cmp dword [rbp - 0x20], 0
mov qword [rsi], rax
jne 0x180016aab
cmp edi, 0x14
jne 0x180016ab3
mov qword [rsi], r12
mov eax, r12d
jmp 0x180016b89
cmp edi, 0xf
jne 0x180016ac9
mov rcx, rbx
mov dword [rbp - 0x20], r12d
call fcn.180017180
jmp 0x180016b7a
cmp edi, 0x10
jne 0x180016aec
mov rcx, qword [rbx + 8]
movsxd rdx, r15d
mov dword [rbp - 0x20], r12d
call qword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
cmp dword [rbp - 0x20], edi
mov qword [rsi], rdi
jmp 0x180016b81
cmp edi, 0x318
jne 0x180016b02
mov rcx, rbx
mov dword [rbp - 0x20], r12d
call fcn.180017180
jmp 0x180016b7a
cmp edi, 0x2a2
jne 0x180016b4c
mov rax, qword [rbx + 0x30]
lea rcx, [rbx + 0x40]
xor edi, edi
mov qword [rbp - 0x18], rdi
mov dword [rax + 0x34], r12d
mov byte [rbx + 0x4a], 0
mov rax, qword [rbx + 0x40]
call qword [rax + 0x18]
test rax, rax
je 0x180016b3d
mov r8, qword [rax]
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [r8 + 0xa8]
mov dword [rbx + 0x4c], edi
mov qword [rsi], rdi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], edi
jmp 0x180016b81
cmp edi, 0x2a3
je 0x180016b0a
cmp edi, 0x1400
jne 0x180016b87
mov rax, qword [rbx]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov r9, r14
mov rcx, rbx
mov dword [rbp - 0x20], r12d
mov r8, r15
mov edx, edi
call qword [rax + 0x20]
cmp dword [rbp - 0x20], 0
mov qword [rsi], rax
jne 0x180016aab
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800c8bf0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret