Function at 0x100fa8d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [0x104d5390]
mov ebp, edx
mov edi, ecx
test eax, eax
jne 0x100fa8ee
mov ecx, 0x104d5390
call fcn.100f2650
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100fa903
cmp dword [eax], 1
jne 0x100fa903
add eax, 4
jmp 0x100fa910
call fcn.100f27a0
test eax, eax
je 0x100fab72
mov ecx, eax
call fcn.100f2870
mov ebx, eax
mov dword [esp + 0x24], eax
xor ecx, ecx
mov eax, 2
lock cmpxchg dword [ebx + 0x18], ecx
je 0x100fab2c
mov esi, ebx
add esi, 0x18
mov ecx, dword [esi + 4]
call fcn.100f4810
mov eax, dword [0x104dec50]
mov dword [esp], edi
test eax, eax
jne 0x100faa2a
xor edx, edx
mov al, byte [ebx + 0x20]
lea edi, [esi + 4]
test al, al
jne 0x100fab8b
mov ecx, 1
xor eax, eax
lock cmpxchg dword [esi], ecx
jne 0x100fa9f8
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
xor eax, eax
lock cmpxchg dword [ebx + 0x28], ecx
je 0x100fa989
cmp eax, ecx
jne 0x100fabb0
mov eax, dword [esi + 4]
mov edi, 0x3e8
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, ebp
mul edi
mov ebp, eax
mov eax, dword [esp]
seto cl
mul edi
mov edi, edx
mov dword [esp], eax
add edi, ebp
setb al
or al, cl
jne 0x100faa50
mov ebp, dword [esp + 0x80]
mov ecx, 0x431bde83
mov eax, ebp
mul ecx
shr edx, 0x12
add dword [esp], edx
adc edi, 0
jb 0x100faa50
mov ecx, dword [esp]
imul eax, ebp, 0x68c26139
ror eax, 6
cmp eax, 0x10c6
jbe 0x100faa39
add ecx, 1
adc edi, 0
setae al
movzx eax, al
jmp 0x100faa3e
cmp eax, 2
jne 0x100fabc1
xor eax, eax
xchg dword [esi], eax
cmp eax, 2
mov dword [esp + 0x30], eax
jne 0x100fabda
test dl, dl
jne 0x100faa23
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100fab46
mov esi, dword [edi]
jmp 0x100faabf
call fcn.100fa7c0
mov edx, eax
xor dl, 1
jmp 0x100fa94e
mov eax, 1
cmp ecx, 0xffffffff
sbb edi, 0
mov edi, 0xffffffff
cmovb edi, ecx
test eax, eax
jne 0x100faa55
mov edi, 0xffffffff
mov eax, dword [0x104decc0]
test eax, eax
jne 0x100faa7c
mov ecx, 0x10422624
mov edx, 0x19
call fcn.100f2ce0
test eax, eax
mov eax, 0x100fa8b0
cmovne eax, edx
mov dword [0x104decc0], eax
push 0
push edi
push dword [esp + 0x30]
push dword [esp + 0x38]
call eax
mov cl, byte [ebx + 0x20]
test cl, cl
jne 0x100fac7a
xor eax, eax
xchg dword [esi], eax
mov esi, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 2
mov ecx, dword [esp + 0x1c]
jae 0x100facd8
test cl, cl
jne 0x100faabd
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100fab5c
mov esi, dword [esi]
mov eax, dword [0x104dec60]
test eax, eax
je 0x100faadd
cmp eax, 0x100f30b0
jne 0x100fab02
mov eax, dword [esi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100fab2c
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
je 0x100faacf
mov eax, dword [0x104dec78]
test eax, eax
jne 0x100fab29
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push esi
call eax
mov eax, dword [esp + 0x24]
lock dec dword [eax]
jne 0x100fab3e
lea ecx, [esp + 0x24]
call fcn.100f2c20
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100fa7c0
test al, al
jne 0x100faa23
mov byte [ebx + 0x20], 1
jmp 0x100faa23
call fcn.100fa7c0
test al, al
jne 0x100faabd
mov byte [ebx + 0x20], 1
jmp 0x100faabd
mov ecx, 0x1042153f
mov edx, 0x5e
push 0x104215a0
call fcn.1000a730
add esp, 4
ud2
mov dword [esp + 4], edi
mov byte [esp + 8], dl
lea eax, [esp + 4]
mov ecx, 0x1044a65b
mov edx, 0x2b
push 0x104226f4
push 0x10422578
jmp 0x100faccd
mov ecx, str.attempted_to_use_a_condition_variable_with_two_mutexes
mov edx, 0x36
push 0x10422614
jmp 0x100fabd0
mov ecx, 0x10422704
mov edx, 0x1f
push 0x10422724
call fcn.100f30d0
add esp, 4
ud2
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x50]
lea eax, [esp + 0x30]
mov dword [esp + 0x54], 0x10424378
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], 0
mov dword [esp + 4], 0x104225c4
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x50], 0x104225c0
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x100b98b0
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
lea edx, [esp + 4]
mov dword [esp + 0x40], 0x100b98b0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x54]
mov edx, 0x10422734
mov dword [esp + 0x48], 0x1000b210
mov dword [esp + 0x68], 3
call fcn.100f9210
ud2
test eax, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x1044a65b
mov edx, 0x2b
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 8], al
movzx eax, word [esp + 0x34]
mov word [esp + 9], ax
mov al, byte [esp + 0x36]
mov byte [esp + 0xb], al
movzx eax, word [esp + 0x54]
sete byte [esp + 0xc]
mov word [esp + 0xd], ax
mov al, byte [esp + 0x56]
mov byte [esp + 0xf], al
lea eax, [esp + 4]
push 0x10422754
push 0x10422744
push eax
call fcn.1000a790
add esp, 0xc
ud2
lea edx, [esp + 0x54]
lea ecx, [esp + 0x34]
mov dword [esp + 4], 0x10423238
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 4]
mov edx, 0x10422764
mov dword [esp + 0x38], fcn.10008370
mov dword [esp + 0x18], 1
call fcn.100f9210
ud2