Function at 0x1400b06d0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xe8
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x37], rax
lea eax, [rcx - 1]
mov ebx, ecx
cmp eax, 0xf
ja 0x1400b0ba4
call fcn.1400b1c20
mov rdx, qword [0x140269ad0]
mov dword [rbp - 0x69], ebx
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400b072e
cmp dword [rax + 0x20], ebx
jge 0x1400b0722
mov rax, qword [rax + 0x10]
jmp 0x1400b0728
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400b0717
cmp byte [rcx + 0x19], 0
jne 0x1400b0739
cmp ebx, dword [rcx + 0x20]
jge 0x1400b073c
mov rcx, rdx
mov qword [rsp + 0x110], r14
cmp rcx, rdx
je 0x1400b075c
lea rdx, [rbp - 0x69]
call fcn.1400b3820
cmp dword [rax + 8], 0
je 0x1400b0b76
lea rdx, [rbp - 0x61]
mov ecx, ebx
call fcn.1400b1500
mov r8, qword [0x140269ad0]
mov r14, rax
mov dword [rbp - 0x69], ebx
mov rdx, r8
mov rcx, qword [r8 + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400b0798
cmp dword [rcx + 0x20], ebx
jge 0x1400b078c
mov rcx, qword [rcx + 0x10]
jmp 0x1400b0792
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400b0781
cmp byte [rdx + 0x19], 0
jne 0x1400b07a3
cmp ebx, dword [rdx + 0x20]
jge 0x1400b07a6
mov rdx, r8
cmp rdx, r8
jne 0x1400b07b2
mov ecx, ebx
call fcn.1400b2180
lea rdx, [rbp - 0x69]
call fcn.1400b3820
cmp qword [rax], 0xffffffffffffffff
je 0x1400b07d3
lea rdx, [rbp - 0x69]
call fcn.1400b3820
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x69]
call fcn.1400b3820
mov qword [rax], r14
cmp r14, 0xffffffffffffffff
je 0x1400b0b99
mov rdx, qword [0x140269ad0]
mov dword [rbp - 0x69], ebx
mov rcx, rdx
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0xe0], r15
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400b0827
cmp dword [rax + 0x20], ebx
jge 0x1400b081b
mov rax, qword [rax + 0x10]
jmp 0x1400b0821
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400b0810
cmp byte [rcx + 0x19], 0
jne 0x1400b0832
cmp ebx, dword [rcx + 0x20]
jge 0x1400b0835
mov rcx, rdx
cmp rcx, rdx
jne 0x1400b0841
mov ecx, ebx
call fcn.1400b2180
lea rdx, [rbp - 0x69]
call fcn.1400b3820
mov rcx, qword [0x140268508]
xor r15d, r15d
mov dword [rax + 8], r15d
test rcx, rcx
je 0x1400b0895
xorps xmm0, xmm0
mov qword [rbp - 0x31], r15
xorps xmm1, xmm1
mov dword [rbp - 0x39], gethostname
xor r8d, r8d
mov dword [rbp - 0x35], 6
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x29], r14
movdqu xmmword [rbp - 0x21], xmm0
movdqu xmmword [rbp - 0x11], xmm1
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, rax
jmp 0x1400b0898
mov rdi, r15
mov rdx, qword [0x140269ad0]
mov dword [rbp - 0x69], ebx
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], r15b
jne 0x1400b08c7
nop
cmp dword [rax + 0x20], ebx
jge 0x1400b08bb
mov rax, qword [rax + 0x10]
jmp 0x1400b08c1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r15b
je 0x1400b08b0
cmp byte [rcx + 0x19], r15b
jne 0x1400b08d2
cmp ebx, dword [rcx + 0x20]
jge 0x1400b08d5
mov rcx, rdx
cmp rcx, rdx
jne 0x1400b08e1
mov ecx, ebx
call fcn.1400b2180
lea rdx, [rbp - 0x69]
call fcn.1400b3820
mov rcx, qword [rax + 0x78]
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
lea rdx, [rbp - 0x69]
call fcn.1400b3820
mov qword [rax + 0x78], rdi
mov rdx, qword [0x140269ad0]
mov dword [rbp - 0x69], ebx
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], r15b
jne 0x1400b092f
cmp dword [rax + 0x20], ebx
jge 0x1400b0923
mov rax, qword [rax + 0x10]
jmp 0x1400b0929
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r15b
je 0x1400b0918
cmp byte [rcx + 0x19], r15b
jne 0x1400b093a
cmp ebx, dword [rcx + 0x20]
jge 0x1400b093d
mov rcx, rdx
cmp rcx, rdx
je 0x1400b09fe
lea rdx, [rbp - 0x69]
call fcn.1400b3820
cmp qword [rax], 0xffffffffffffffff
je 0x1400b09fe
movzx ecx, byte [rbp - 0x69]
lea rdx, [rbp - 0x39]
call fcn.1400b1d50
test eax, eax
je 0x1400b09fe
mov r8, qword [0x140269ad0]
mov edx, dword [rbp - 0x69]
mov rcx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], r15b
jne 0x1400b099c
cmp dword [rax + 0x20], edx
jge 0x1400b0990
mov rax, qword [rax + 0x10]
jmp 0x1400b0996
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r15b
je 0x1400b0985
cmp byte [rcx + 0x19], r15b
jne 0x1400b09a7
cmp edx, dword [rcx + 0x20]
jge 0x1400b09aa
mov rcx, r8
cmp rcx, r8
je 0x1400b09fe
mov dword [rbp - 0x61], edx
lea rdx, [rbp - 0x61]
call fcn.1400b3820
movaps xmm0, xmmword [rbp - 0x39]
mov rdx, rax
movups xmmword [rax + 0xc], xmm0
movaps xmm1, xmmword [rbp - 0x29]
movups xmmword [rax + 0x1c], xmm1
movaps xmm0, xmmword [rbp - 0x19]
movups xmmword [rax + 0x2c], xmm0
movaps xmm1, xmmword [rbp - 9]
movups xmmword [rax + 0x3c], xmm1
movaps xmm0, xmmword [rbp + 7]
movups xmmword [rax + 0x4c], xmm0
movaps xmm1, xmmword [rbp + 0x17]
movups xmmword [rax + 0x5c], xmm1
movsd xmm0, qword [rbp + 0x27]
movsd qword [rax + 0x6c], xmm0
mov eax, dword [rbp + 0x2f]
mov dword [rdx + 0x74], eax
lea rdx, [rbp - 0x61]
mov qword [rbp - 0x61], r15
mov ecx, ebx
call fcn.1400b2510
test eax, eax
je 0x1400b0b59
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x39]
call qword [sym.imp.HID.DLL_HidP_GetCaps]
cmp eax, 0x110000
jne 0x1400b0b59
movzx eax, word [rbp - 0xd]
mov dword [rbp - 0x69], eax
cmp eax, 1
jb 0x1400b0b59
lea ecx, [rax + 1]
mov rbx, 0xffffffffffffffff
mov eax, Ordinal_27
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1401d05f0
mov r8, qword [rbp - 0x61]
lea rdx, [rbp - 0x69]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.HID.DLL_HidP_GetLinkCollectionNodes]
test eax, eax
js 0x1400b0b66
mov r8d, dword [rbp - 0x69]
mov edx, r15d
test r8d, r8d
je 0x1400b0ac7
nop dword [rax]
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax + rax*2]
movups xmm1, xmmword [rdi + rcx*8]
movd eax, xmm1
cmp ax, 0x21
jne 0x1400b0ac0
movq rax, xmm1
shr rax, 0x10
cmp ax, 0xf
jne 0x1400b0ac0
mov rax, qword [rdi + rcx*8 + 8]
shr rax, 0x20
cmp al, 2
je 0x1400b0ad7
inc edx
cmp edx, r8d
jb 0x1400b0a90
mov rcx, rdi
call fcn.1401d0398
mov rcx, rbx
jmp 0x1400b0b60
mov rcx, rdi
call fcn.1401d0398
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1402684c0], rax
test rax, rax
je 0x1400b0b66
lea rax, [rbp - 0x61]
mov r9, r14
mov qword [rsp + 0x28], rax
lea r8, [0x1400b0520]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x1402684c0]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400b0b66
xor r9d, r9d
lea r8, str.vJoyInterface_DLL
lea rdx, str.Creation_of_Ffb_data_loop_failed_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400b0b66
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x108]
mov r15, qword [rsp + 0xe0]
mov eax, 1
mov r14, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0xe8
pop rbx
pop rbp
ret
mov ecx, ebx
call fcn.1400b23a0
xor eax, eax
jmp 0x1400b0b7b
xor eax, eax
jmp 0x1400b0b83