Function at 0x180016660
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 [0x180122010]
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 0x1800169a7
cmp r8d, 5
jne 0x18001672f
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 0x180016720
test r14d, r14d
je 0x180016720
cmp qword [rcx + 0xa0], rdi
je 0x180016720
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 0x1800169a1
cmp edi, 0x110
jne 0x18001684f
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.180016460
call fcn.18002d490
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xa8], rax
test rcx, rcx
je 0x180016791
mov rax, qword [rcx]
mov edx, r12d
call qword [rax]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x180016828
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.18002ca40
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.180017350
mov qword [rsi], r12
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x34], 0
jmp 0x1800169a1
cmp edi, 0x111
jne 0x180016898
xor edi, edi
cmp r12w, r15w
jne 0x180016874
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 0x1800168cb
mov edx, 2
cmp dx, r15w
jne 0x1800169a7
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
cmp dword [rbp - 0x20], edi
mov qword [rsi], rdi
jmp 0x1800169a1
lea eax, [r8 - 0x200]
cmp eax, 0xd
ja 0x1800168c3
lea rax, [rbp - 0x20]
mov r9, r14
mov r8, r15
mov qword [rsp + 0x20], rax
mov edx, edi
call fcn.180016e30
cmp dword [rbp - 0x20], 0
mov qword [rsi], rax
jne 0x1800168cb
cmp edi, 0x14
jne 0x1800168d3
mov qword [rsi], r12
mov eax, r12d
jmp 0x1800169a9
cmp edi, 0xf
jne 0x1800168e9
mov rcx, rbx
mov dword [rbp - 0x20], r12d
call fcn.180016fa0
jmp 0x18001699a
cmp edi, 0x10
jne 0x18001690c
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 0x1800169a1
cmp edi, 0x318
jne 0x180016922
mov rcx, rbx
mov dword [rbp - 0x20], r12d
call fcn.180016fa0
jmp 0x18001699a
cmp edi, 0x2a2
jne 0x18001696c
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 0x18001695d
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 0x1800169a1
cmp edi, 0x2a3
je 0x18001692a
cmp edi, 0x1400
jne 0x1800169a7
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 0x1800168cb
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800c8510
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret