Function at 0x140012a50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rdx + 8]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1402d10b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov r10d, r9d
movabs r8, 0xf6195ea59413b4da
movabs rcx, 0xf6195ea59413b4da
xor r8, rcx
movabs rcx, 0x2d005f471f1f3b88
movabs r11, 0x2d005f471f1f3b80
xor rcx, r11
cmp r10d, 0x100
cmovb rcx, r8
mov r8d, 0x18
mov r11d, 0x10
cmp r10d, 0x1000000
cmovb r8, r11
cmp r10d, 0x10000
cmovb r8, rcx
mov ecx, r8d
shr r10d, cl
mov ecx, r10d
mov ecx, ecx
mov r10d, ecx
lea rcx, [0x1402bad90]
movsx rcx, byte [rcx + r10]
movabs r10, 0x37ba3a2f226ad571
movabs r11, 0x7295161d6a3f6de9
xor r10, r11
add r8, r10
add r8, rcx
movabs rcx, 0x452f2c324855b898
sub r8, rcx
movabs r10, 0xfef24da6a4706363
movabs rcx, 0x10db2595b8f9c98
xor r10, rcx
mov rcx, r8
add rcx, r10
sar r9, cl
mov qword [rsp + 0x38], r9
mov rcx, r9
mov r9, 0xffffffffffffffff
xor r9, 0xffffffffffffffe0
movabs r10, 0x9484b95b3a17a55d
movabs r11, 0x9484b95b3a17a55d
xor r10, r11
movabs r11, 0x167d6369ed35b144
movabs rsi, 0x167d6369ed35b145
xor r11, rsi
sub r10, r11
sub r9, r10
sub rcx, r9
movabs r9, 0xb6b83f3898d82b55
movabs r10, 0x92d47d313e71ba3a
xor r9, r10
sub r8, r9
add r8, 0xfffffffffffffffa
movabs r9, 0x26afa98353138be9
movabs r10, 0x2c3eb8af5ba1a86
xor r9, r10
add r8, r9
mov qword [rsp + 0x40], r8
mov qword [rdx + 0x20], 0
add rax, 0x868
shl r8, 8
add rax, r8
shl rcx, 3
add rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rax]
mov qword [rdx + 0x18], rcx
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
cmp rax, 0
je 0x140012c15
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x20], rcx
mov eax, dword [0x1402a88e8]
mov ecx, dword [0x1402a88ec]
mov edx, 0xbbc6596c
xor edx, 0xb56f6fc3
xor ecx, edx
or eax, eax
mov edx, 0x4d3a82e9
xor edx, 0xb2c57d16
xor eax, edx
or ecx, ecx
xor ecx, 0xffffffff
xor eax, 0xffffffff
xor ecx, 0xffffffff
and eax, ecx
xor eax, 0xfcca7dbc
xor eax, 0x6bf64c81
mov edx, eax
xor edx, 0xffffffff
and edx, 0x175e96f1
mov r8d, 0xffffffff
xor r8d, 0x175e96f1
mov ecx, eax
and ecx, r8d
imul ecx, edx
mov edx, eax
and edx, 0x175e96f1
or eax, 0x175e96f1
imul eax, edx
add eax, ecx
mov ecx, 0x44436021
xor ecx, 0x314fa1f5
cmp eax, ecx
jb 0x140012e2e
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
mov r10, qword [rsp + 0x28]
mov r11d, dword [0x1402a88f0]
mov eax, dword [0x1402a88f4]
xor eax, 0xa4b2582f
or r11d, eax
mov esi, 0x828a8a04
xor esi, 0x15df473c
mov eax, r11d
and eax, esi
shl eax, 1
xor r11d, 0x9755cd38
add r11d, eax
mov esi, 0xf7ffdad6
xor esi, 0x8002529
mov eax, r11d
xor eax, esi
mov esi, r11d
xor esi, 0xffffffff
or eax, esi
and eax, 0xae8aee67
mov esi, 0x4a1cfd3b
xor esi, 0xb5e302c4
xor eax, esi
mov esi, 0xffffffff
xor esi, 0xae8aee67
mov edi, 0xffffffff
xor edi, 0xae8aee67
or esi, edi
mov edi, 0xf246a09e
xor edi, 0xdb95f61
xor r11d, edi
xor esi, 0xffffffff
or r11d, esi
and eax, r11d
xor eax, 0xffffffff
mov r11d, 0x68daa098
xor r11d, 0xd89e9f62
add eax, r11d
mov qword [r9], r10
mov r9d, dword [rdx + rcx*4 + 0x804]
mov rcx, r8
and rcx, 0x1f
xor rcx, 0xffffffffffffffff
xor r8, 0xffffffffffffffff
movabs r10, 0x63ccf5d63460370d
movabs r11, 0x63ccf5d634603712
xor r10, r11
movabs r11, 0x6d073af400171935
movabs rsi, 0x92f8c50bffe8e6ca
xor r11, rsi
xor r10, r11
or r8, r10
and rcx, r8
xor rcx, 0xffffffffffffffff
mov r8d, 1
shl r8, cl
mov rcx, qword [rsp + 0x40]
mov r10d, r8d
mov r8d, r9d
xor r8d, 0xffffffff
mov r11d, r10d
xor r11d, 0xffffffff
and r8d, r11d
xor r9d, 0xffffffff
xor r10d, 0xffffffff
and r9d, r10d
or r8d, r9d
xor r8d, 0xffffffff
mov dword [rdx + rcx*4 + 0x804], r8d
mov r8d, dword [rdx + 0x800]
mov rdx, rcx
add rdx, 1
xor rcx, 0xffffffffffffffff
or rcx, 0x1f
add rcx, rdx
mov edx, 1
shl rdx, cl
mov rcx, qword [rsp + 0x30]
mov r9d, edx
mov edx, r8d
and edx, r9d
xor r8d, r9d
or edx, r8d
mov dword [rcx + 0x800], edx
cmp eax, 0xbed18fca
jbe 0x140012c99
add rsp, 0x58
pop rdi
pop rsi
ret
iretd