Function at 0x180065470
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe8
mov rax, qword [0x1801548a8]
xor rax, rsp
mov qword [rbp - 0x11], rax
cmp dword [rbp + 0x7f], 0
mov r15, r9
mov r14, qword [rbp + 0x6f]
mov esi, r8d
mov r12, qword [rbp + 0x77]
mov rdi, rcx
mov qword [rsp + 0x58], rdx
jne 0x180065975
mov rcx, qword [rcx + 0x98]
test rcx, rcx
je 0x1800654e5
mov rax, qword [rcx + 0x48]
add rcx, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
call qword [rax + 0x10]
mov rdx, qword [rsp + 0x58]
mov ebx, dword [rdi + 0x50]
lea rcx, [rdi + 0x48]
mov dword [rsp + 0x30], 0
mov r9, r15
mov qword [rsp + 0x28], r12
mov r8d, esi
mov qword [rsp + 0x20], r14
call fcn.180064ef0
mov dword [rdi + 0x50], ebx
test eax, eax
jne 0x18006565d
cmp esi, 1
jne 0x18006555e
mov rcx, rdi
mov dword [rdi + 0x80], esi
call fcn.1800634a0
mov rcx, rdi
call fcn.180062a40
mov rcx, rdi
call fcn.180063240
mov rcx, rdi
call fcn.180064170
lea rcx, [rdi + 8]
xor edx, edx
call fcn.180061b50
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 2
jne 0x180065581
mov dword [rdi + 0x80], 1
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0x10
jne 0x1800655b0
mov rcx, qword [rdi + 8]
xor edx, edx
mov dword [rdi + 0x80], 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0xf
jne 0x180065667
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x61]
xor ebx, ebx
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x71], rbx
mov dword [rdi + 0x80], 1
call qword [sym.imp.USER32.dll_BeginPaint]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x58]
xorps xmm0, xmm0
mov qword [rbp - 0x71], rax
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x18006563f
mov ecx, dword [rbp - 0x7d]
xor r8d, r8d
sub ecx, dword [rsp + 0x5c]
xor edx, edx
mov rax, qword [rax]
mov r9d, dword [rsp + 0x60]
sub r9d, dword [rsp + 0x58]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x61]
call qword [sym.imp.USER32.dll_EndPaint]
mov qword [r12], rbx
cmp dword [rdi + 0x80], ebx
je 0x180065876
mov eax, 1
jmp 0x180065977
cmp esi, 0x14
jne 0x180065687
mov dword [rdi + 0x80], 1
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0x200
jne 0x1800656d0
cmp dword [rdi + 0xd8], 0
mov dword [rdi + 0x80], 1
je 0x180065764
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
mov dword [rdi + 0xd8], 0
call qword [sym.imp.USER32.dll_KillTimer]
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0x2a3
jne 0x180065721
cmp dword [rdi + 0xd8], 0
mov dword [rdi + 0x80], 1
jne 0x180065764
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov edx, 0x3e8
mov dword [rdi + 0xd8], 1
mov r8d, 0x7530
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0x113
jne 0x180065778
mov dword [rdi + 0x80], 1
cmp r15, 0x3e8
jne 0x180065764
cmp dword [rdi + 0xd8], 0
je 0x18006575c
mov rcx, qword [rdi + 8]
mov rdx, r15
mov dword [rdi + 0xd8], 0
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, rdi
call fcn.180062810
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x180065657
cmp esi, 0x1401
jne 0x1800657b2
mov rax, qword [rdi + 0x48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9, r14
lea rcx, [rdi + 0x48]
mov dword [rsp + 0x50], 1
mov r8, r15
mov edx, esi
call qword [rax]
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jmp 0x180065657
cmp esi, 0x111
jne 0x180065876
mov rbx, r15
mov r8d, 0x3ea
shr rbx, 0x10
cmp r8w, r15w
jne 0x180065800
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov r9, r14
mov qword [rsp + 0x20], rax
movzx edx, bx
mov rcx, rdi
call fcn.1800639c0
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18006565d
mov r8d, 0x3eb
cmp r8w, r15w
jne 0x18006583b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov r9, r14
mov qword [rsp + 0x20], rax
movzx edx, bx
mov rcx, rdi
call fcn.180063d40
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18006565d
mov r8d, 0x3ec
cmp r8w, r15w
jne 0x180065876
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov r9, r14
mov qword [rsp + 0x20], rax
movzx edx, bx
mov rcx, rdi
call fcn.180063740
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18006565d
mov dword [rsp + 0x50], 1
cmp esi, 0x4e
ja 0x1800658e8
je 0x1800658e3
lea eax, [rsi - 0x2b]
cmp eax, 0xe
ja case.0x1800658a2.48
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x659a4]
add rcx, rdx
jmp rcx
test r15, r15
je case.0x1800658a2.48
mov rax, qword [r14 + 0x18]
jmp 0x18006594c
test r15, r15
je case.0x1800658a2.48
mov edx, dword [r14 + 4]
jmp 0x180065942
test r15, r15
je case.0x1800658a2.48
mov rax, qword [r14 + 8]
jmp 0x18006594c
test r15, r15
je case.0x1800658a2.48
mov rax, qword [r14 + 0x10]
jmp 0x18006594c
mov rax, qword [r14]
jmp 0x18006594c
cmp esi, 0x138
ja 0x18006591e
cmp esi, 0x132
jae case.0x1800658a2.46
cmp esi, 0x111
je 0x180065914
lea eax, [rsi - 0x114]
cmp eax, 1
ja case.0x1800658a2.48
mov rax, r14
jmp 0x18006594c
test r14, r14
je case.0x1800658a2.48
mov rax, r14
jmp 0x18006594c
cmp esi, 0x210
jne case.0x1800658a2.48
test r15w, r15w
je 0x180065938
cmp r15w, 2
ja 0x180065938
mov rax, r14
jmp 0x18006594c
mov rax, r15
shr rax, 0x10
movzx edx, ax
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je case.0x1800658a2.48
lea edx, [rsi + 0x2000]
mov r9, r14
mov r8, r15
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18006565d
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.180096b80
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [r12], 1
jmp 0x180065975