Function at 0x18005ea00
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 [0x180146748]
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 0x18005ef05
mov rcx, qword [rcx + 0x98]
test rcx, rcx
je 0x18005ea75
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.18005e480
mov dword [rdi + 0x50], ebx
test eax, eax
jne 0x18005ebed
cmp esi, 1
jne 0x18005eaee
mov rcx, rdi
mov dword [rdi + 0x80], esi
call fcn.18005ca30
mov rcx, rdi
call fcn.18005bfd0
mov rcx, rdi
call fcn.18005c7d0
mov rcx, rdi
call fcn.18005d700
lea rcx, [rdi + 8]
xor edx, edx
call fcn.18005b0e0
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x18005ebe7
cmp esi, 2
jne 0x18005eb11
mov dword [rdi + 0x80], 1
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x18005ebe7
cmp esi, 0x10
jne 0x18005eb40
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 0x18005ebe7
cmp esi, 0xf
jne 0x18005ebf7
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 0x18005ebcf
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 0x18005ee06
mov eax, 1
jmp 0x18005ef07
cmp esi, 0x14
jne 0x18005ec17
mov dword [rdi + 0x80], 1
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x18005ebe7
cmp esi, 0x200
jne 0x18005ec60
cmp dword [rdi + 0xd8], 0
mov dword [rdi + 0x80], 1
je 0x18005ecf4
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 0x18005ebe7
cmp esi, 0x2a3
jne 0x18005ecb1
cmp dword [rdi + 0xd8], 0
mov dword [rdi + 0x80], 1
jne 0x18005ecf4
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 0x18005ebe7
cmp esi, 0x113
jne 0x18005ed08
mov dword [rdi + 0x80], 1
cmp r15, 0x3e8
jne 0x18005ecf4
cmp dword [rdi + 0xd8], 0
je 0x18005ecec
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.18005bda0
mov qword [r12], 0
cmp dword [rdi + 0x80], 0
jmp 0x18005ebe7
cmp esi, 0x1401
jne 0x18005ed42
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 0x18005ebe7
cmp esi, 0x111
jne 0x18005ee06
mov rbx, r15
mov r8d, 0x3ea
shr rbx, 0x10
cmp r8w, r15w
jne 0x18005ed90
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.18005cf50
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18005ebed
mov r8d, 0x3eb
cmp r8w, r15w
jne 0x18005edcb
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.18005d2d0
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18005ebed
mov r8d, 0x3ec
cmp r8w, r15w
jne 0x18005ee06
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.18005ccd0
cmp dword [rsp + 0x50], 0
mov qword [r12], rax
jne 0x18005ebed
mov dword [rsp + 0x50], 1
cmp esi, 0x4e
ja 0x18005ee78
je 0x18005ee73
lea eax, [rsi - 0x2b]
cmp eax, 0xe
ja case.0x18005ee32.48
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x5ef34]
add rcx, rdx
jmp rcx
test r15, r15
je case.0x18005ee32.48
mov rax, qword [r14 + 0x18]
jmp 0x18005eedc
test r15, r15
je case.0x18005ee32.48
mov edx, dword [r14 + 4]
jmp 0x18005eed2
test r15, r15
je case.0x18005ee32.48
mov rax, qword [r14 + 8]
jmp 0x18005eedc
test r15, r15
je case.0x18005ee32.48
mov rax, qword [r14 + 0x10]
jmp 0x18005eedc
mov rax, qword [r14]
jmp 0x18005eedc
cmp esi, 0x138
ja 0x18005eeae
cmp esi, 0x132
jae case.0x18005ee32.46
cmp esi, 0x111
je 0x18005eea4
lea eax, [rsi - 0x114]
cmp eax, 1
ja case.0x18005ee32.48
mov rax, r14
jmp 0x18005eedc
test r14, r14
je case.0x18005ee32.48
mov rax, r14
jmp 0x18005eedc
cmp esi, 0x210
jne case.0x18005ee32.48
test r15w, r15w
je 0x18005eec8
cmp r15w, 2
ja 0x18005eec8
mov rax, r14
jmp 0x18005eedc
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.0x18005ee32.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 0x18005ebed
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.18008c720
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 0x18005ef05