Function at 0x180039bd0
Capabilities:
Create thread
Enumerate gui resources
Register raw input devices

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x180133090]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
mov r13, rcx
mov qword [rbp + 0x17], rdx
xor r14d, r14d
mov ebx, r14d
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x180139158], edi
je 0x180039c41
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x180039c2a
xor ecx, ecx
jmp 0x180039c2c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180139158], edi
jne 0x180039c20
cmp qword [0x180139160], r14
jne 0x180039c5e
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180139160], rax
mov eax, r14d
xchg dword [0x180139158], eax
call fcn.1800298d0
mov qword [rbp - 0x19], rax
mov rcx, qword [r13]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
movzx r15d, al
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.18003a260
mov rdi, rax
mov qword [rbp - 0x11], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12d, eax
mov dword [rbp - 0x49], eax
mov qword [rbp - 0x41], r14
mov byte [rbp - 0x39], r15b
mov byte [rbp - 0x38], 0
lea r14, [0x180133f28]
cmp r14, rdi
je 0x180039d08
mov rdx, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x180039cc6
mov r9, qword [rdi]
mov rax, qword [0x180133f40]
cmp rdx, rax
ja 0x180039d00
cmp rax, 8
cmovae r14, qword [0x180133f28]
mov qword [0x180133f38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, r14
call fcn.18007bcb0
xor eax, eax
mov word [rbx + r14], ax
jmp 0x180039d08
mov rcx, r14
call fcn.18002d730
lea rdx, [rbp - 0x49]
lea rcx, [0x18003b020]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rbp - 0x41]
xor r14d, r14d
test rbx, rbx
jne 0x180039d77
test r15b, r15b
je 0x180039d54
mov dword [rbp - 0x49], r12d
mov qword [rbp - 0x41], r14
mov byte [rbp - 0x39], r15b
mov byte [rbp - 0x38], 1
lea rdx, [rbp - 0x49]
lea rcx, [0x18003b020]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rbp - 0x41]
test rbx, rbx
jne 0x180039d77
mov dword [rbp - 0x49], r12d
mov qword [rbp - 0x41], r14
mov word [rbp - 0x39], pe_nt_image_headers64
lea rdx, [rbp - 0x49]
lea rcx, [0x18003b020]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rbp - 0x41]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x180039db6
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180039db1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003a027
mov rcx, r8
call fcn.180077bd0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rax, qword [rbp - 0x19]
mov qword [rax + 0xb0], rbx
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
movzx ecx, al
call fcn.1800351d0
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x180039e44
mov ebx, 1
mov qword [rbp - 0x31], 0x20001
call fcn.1800298d0
mov rcx, qword [rax + 0xb0]
mov qword [rbp - 0x29], rcx
lea r8d, [rbx + 0xf]
mov edx, ebx
lea rcx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180039e38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_register_raw_input._Error_code:__010x
call fcn.1800358b0
jmp 0x180039e44
lea rcx, str.Raw_input_registered
call fcn.180035790
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [0x180137b54]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov eax, dword [rbx]
cmp dword [0x180139580], eax
jle 0x180039ec9
lea rcx, [0x180139580]
call fcn.180077e94
cmp dword [0x180139580], 0xffffffff
jne 0x180039ec9
xorps xmm0, xmm0
movdqa xmmword [0x180139590], xmm0
mov qword [0x1801395a0], r14
mov word [0x1801395a8], 0
mov qword [0x1801395e8], r14
mov qword [0x180139628], r14
lea rcx, [0x1800ff010]
call fcn.1800783f0
lea rcx, [0x180139580]
call fcn.180077e34
lea rcx, [0x180139590]
call fcn.180035d60
mov eax, dword [rbx]
cmp dword [0x180139580], eax
jle 0x180039f35
lea rcx, [0x180139580]
call fcn.180077e94
cmp dword [0x180139580], 0xffffffff
jne 0x180039f35
xorps xmm0, xmm0
movdqa xmmword [0x180139590], xmm0
mov qword [0x1801395a0], r14
mov word [0x1801395a8], 0
mov qword [0x1801395e8], r14
mov qword [0x180139628], r14
lea rcx, [0x1800ff010]
call fcn.1800783f0
lea rcx, [0x180139580]
call fcn.180077e34
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea r9, [0x180139590]
lea r8, [0x180035c20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1801395a0], rax
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
je 0x180039fb5
call fcn.18003a040
test al, al
je 0x180039fb5
mov r14, qword [r13]
mov rdi, qword [r14 + 0x10]
mov rbx, qword [r14 + 8]
cmp rbx, rdi
je 0x180039fa6
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x20]
add rbx, 8
cmp rbx, rdi
jne 0x180039f94
mov rcx, qword [r14 + 0x20]
mov rax, qword [rcx]
mov dl, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r14d, r14d
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x180039ff0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180039feb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003a02d
mov rcx, r8
call fcn.180077bd0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180077bb0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18008a744
nop
call fcn.18008a744
int3