Function at 0x22dad8da0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
xor ebx, ebx
cmp qword [0x22ddda588], 0
lea rsi, str.78696e707574_02x000000000000000000
lea rbp, [0x22ddd84d8]
movabs rdi, 0x8e38e38e38e38e39
je 0x22dad900c
mov r8d, dword [0x22ddd84d8]
test r8d, r8d
je 0x22dad8dec
cmp qword [0x22ddd85d8], 0
je 0x22dad9048
mov ecx, dword [0x22ddd85f8]
test ecx, ecx
je 0x22dad8e04
cmp qword [0x22ddd86f8], 0
je 0x22dad9060
mov edx, dword [0x22ddd8718]
test edx, edx
je 0x22dad8e1c
cmp qword [0x22ddd8818], 0
je 0x22dad9080
mov eax, dword [0x22ddd8838]
test eax, eax
je 0x22dad8e34
cmp qword [0x22ddd8938], 0
je 0x22dad9070
mov eax, dword [0x22ddd8958]
test eax, eax
je 0x22dad8e4c
cmp qword [0x22ddd8a58], 0
je 0x22dad9098
mov eax, dword [0x22ddd8a78]
test eax, eax
je 0x22dad8e64
cmp qword [0x22ddd8b78], 0
je 0x22dad90b0
mov eax, dword [0x22ddd8b98]
test eax, eax
je 0x22dad8e7c
cmp qword [0x22ddd8c98], 0
je 0x22dad90e0
mov eax, dword [0x22ddd8cb8]
test eax, eax
je 0x22dad8e94
cmp qword [0x22ddd8db8], 0
je 0x22dad90c8
mov r12d, dword [0x22ddd8dd8]
test r12d, r12d
je 0x22dad8eae
cmp qword [0x22ddd8ed8], 0
je 0x22dad90f8
mov r11d, dword [0x22ddd8ef8]
test r11d, r11d
je 0x22dad8ec8
cmp qword [0x22ddd8ff8], 0
je 0x22dad9110
mov r10d, dword [0x22ddd9018]
test r10d, r10d
je 0x22dad8ee2
cmp qword [0x22ddd9118], 0
je 0x22dad9140
mov r9d, dword [0x22ddd9138]
test r9d, r9d
je 0x22dad8efc
cmp qword [0x22ddd9238], 0
je 0x22dad9128
mov r8d, dword [0x22ddd9258]
test r8d, r8d
je 0x22dad8f16
cmp qword [0x22ddd9358], 0
je 0x22dad9158
mov ecx, dword [0x22ddd9378]
test ecx, ecx
je 0x22dad8f2e
cmp qword [0x22ddd9478], 0
je 0x22dad9170
mov edx, dword [0x22ddd9498]
test edx, edx
je 0x22dad8f46
cmp qword [0x22ddd9598], 0
je 0x22dad9188
mov eax, dword [0x22ddd95b8]
test eax, eax
je 0x22dad8f5e
cmp qword [0x22ddd96b8], 0
je 0x22dad91a0
xor edx, edx
lea r8, [rsp + 0x30]
mov ecx, ebx
call qword [0x22ddda590]
test eax, eax
jne 0x22dad9000
movzx r8d, byte [rsp + 0x31]
lea r12, [rsp + 0x50]
mov rdx, rsi
mov rcx, r12
call fcn.22dad1c20
cmp byte [rsp + 0x31], 8
ja case.0x22dad8fa9.0
movzx eax, byte [rsp + 0x31]
lea rdx, [0x22dd12ab4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rcx, str.XInput_Wheel
nop word [rax + rax]
mov r9d, 0xa
mov dword [rsp + 0x20], 1
mov r8d, 6
mov rdx, r12
call fcn.22dad3e70
test rax, rax
je 0x22dad9000
mov dword [rax + 0x108], ebx
mov r8, qword [0x22ddd9780]
test r8, r8
je 0x22dad9000
sub rax, rbp
mov edx, 0x40001
mov rcx, rax
sar rcx, 5
imul ecx, edi
call r8
add ebx, 1
cmp ebx, 4
jne 0x22dad8dd2
mov rcx, qword [0x22ddda580]
test rcx, rcx
je 0x22dad903d
mov rax, qword [rcx]
xor r9d, r9d
mov dword [rsp + 0x20], 0
lea r8, [0x22dad1a70]
mov edx, 4
call qword [rax + 0x20]
test eax, eax
js 0x22dad9215
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp dword [0x22ddd85e0], ebx
jne 0x22dad8dec
jmp 0x22dad9000
cmp dword [0x22ddd8700], ebx
jne 0x22dad8e04
jmp 0x22dad9000
cmp dword [0x22ddd8940], ebx
jne 0x22dad8e34
jmp 0x22dad9000
cmp dword [0x22ddd8820], ebx
jne 0x22dad8e1c
jmp 0x22dad9000
cmp dword [0x22ddd8a60], ebx
jne 0x22dad8e4c
jmp 0x22dad9000
cmp dword [0x22ddd8b80], ebx
jne 0x22dad8e64
jmp 0x22dad9000
cmp dword [0x22ddd8dc0], ebx
jne 0x22dad8e94
jmp 0x22dad9000
cmp dword [0x22ddd8ca0], ebx
jne 0x22dad8e7c
jmp 0x22dad9000
cmp dword [0x22ddd8ee0], ebx
jne 0x22dad8eae
jmp 0x22dad9000
cmp dword [0x22ddd9000], ebx
jne 0x22dad8ec8
jmp 0x22dad9000
cmp dword [0x22ddd9240], ebx
jne 0x22dad8efc
jmp 0x22dad9000
cmp dword [0x22ddd9120], ebx
jne 0x22dad8ee2
jmp 0x22dad9000
cmp dword [0x22ddd9360], ebx
jne 0x22dad8f16
jmp 0x22dad9000
cmp dword [0x22ddd9480], ebx
jne 0x22dad8f2e
jmp 0x22dad9000
cmp dword [0x22ddd95a0], ebx
jne 0x22dad8f46
jmp 0x22dad9000
cmp dword [0x22ddd96c0], ebx
jne 0x22dad8f5e
jmp 0x22dad9000
lea rcx, str.XInput_Arcade_Stick
jmp 0x22dad8fb8
lea rcx, str.XInput_Flight_Stick
jmp 0x22dad8fb8
lea rcx, str.XInput_Dance_Pad
jmp 0x22dad8fb8
lea rcx, str.XInput_Guitar
jmp 0x22dad8fb8
lea rcx, str.XInput_Drum_Kit
jmp 0x22dad8fb8
test byte [rsp + 0x32], 2
lea rcx, str.Wireless_Xbox_Controller
lea rax, str.Xbox_Controller
cmove rcx, rax
jmp 0x22dad8fb8
lea rcx, str.Unknown_XInput_Device
jmp 0x22dad8fb8
lea rdx, str.Failed_to_enumerate_DirectInput8_devices
mov ecx, 0x10008
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.22dad20f0