Function at 0x100f3140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x70
lock inc dword [0x104dec50]
mov esi, edx
mov edi, ecx
call fcn.100f36e0
test eax, eax
jne 0x100f317e
lea eax, [esp + 4]
mov ecx, 0x1044ace7
mov edx, 0x46
push 0x1042168c
push 0x1042167c
push eax
call fcn.1000a790
add esp, 0xc
ud2
mov ebp, dword [eax]
inc ebp
cmp ebp, 2
mov dword [eax], ebp
jbe 0x100f31bd
mov dword [esp + 4], 0x104216c0
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x18], 0
call fcn.100f37b0
ud2
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x34], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x38], 0x1042169c
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [0x104dec64]
test eax, eax
jne 0x100f320a
mov ecx, str.AcquireSRWLockShared4B
mov edx, 0x14
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f3790
cmovne eax, edx
mov dword [0x104dec64], eax
push 0x104dec68
call eax
push edi
call dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.100f36e0
test eax, eax
je 0x100f315b
cmp dword [eax], 1
mov cl, 1
ja 0x100f32ea
mov eax, dword [0x104dec70]
cmp eax, 2
je 0x100f3272
cmp eax, 1
je 0x100f326e
test eax, eax
jne 0x100f32ea
lea ecx, [esp + 4]
mov edx, 0x10421768
push 0xe
call fcn.100f38b0
add esp, 4
mov edi, dword [esp + 4]
test edi, edi
jne 0x100f3276
mov bl, 5
jmp 0x100f32ce
mov cl, 4
jmp 0x100f32ea
xor ecx, ecx
jmp 0x100f32ea
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp ecx, 4
je 0x100f329e
cmp ecx, 1
jne 0x100f32b5
mov bl, 4
mov esi, 1
cmp edi, 0x10421776
je 0x100f32bc
cmp byte [edi], 0x30
jne 0x100f32b5
jmp 0x100f32bc
mov bl, 1
mov esi, 3
cmp edi, 0x10421777
je 0x100f32bc
cmp dword [edi], 0x6c6c7566
je 0x100f32bc
mov esi, 2
xor ebx, ebx
test eax, eax
je 0x100f32ce
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp bl, 5
mov edx, 1
movzx eax, bl
mov ecx, 4
cmovne edx, esi
cmovne ecx, eax
xchg dword [0x104dec70], edx
mov eax, dword [esp + 0x40]
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], eax
push edi
call fcn.1000a830
add esp, 4
mov esi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test esi, esi
je 0x100f332a
xor eax, 0xecc7bcf4
xor edx, 0x7ef2a91e
or edx, eax
jne 0x100f332a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], eax
jmp 0x100f3362
push edi
call fcn.1000a830
add esp, 4
mov esi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test esi, esi
mov edi, 0x1042177b
mov ecx, 8
je 0x100f335e
xor eax, 0x6d0be9c8
xor edx, 0xce8a1faf
or edx, eax
jne 0x100f335e
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov eax, dword [0x104d5390]
test eax, eax
jne 0x100f3379
mov ecx, 0x104d5390
call fcn.100f2650
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100f338e
cmp dword [eax], 1
jne 0x100f338e
add eax, 4
jmp 0x100f33ab
call fcn.100f27a0
test eax, eax
jne 0x100f33ab
mov al, 1
mov dword [esp + 0x24], 0
xor edi, edi
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x100f33ec
mov ecx, eax
call fcn.100f2870
mov edi, eax
mov dword [esp + 0x24], eax
add eax, 0x10
mov ecx, dword [edi + 0x10]
test ecx, ecx
cmove eax, ecx
jne 0x100f33c9
xor eax, eax
jmp 0x100f33e4
mov ecx, dword [eax + 4]
sub ecx, 1
jae 0x100f33e2
xor edx, edx
push 0x10421784
call fcn.100088f0
add esp, 4
ud2
mov eax, dword [eax]
mov dword [esp + 0x20], 0
test eax, eax
mov edx, str._unnamed_
mov esi, 9
mov dword [esp + 0x50], 0x104218f8
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], 0
cmovne edx, eax
cmovne esi, ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x6c], esi
lea esi, [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x10009120
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
lea edx, [esp + 0x44]
mov dword [esp + 0x10], 0x10009120
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], 0x100f47a0
mov dword [esp + 0x64], 3
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
push esi
call fcn.100f3c50
add esp, 4
mov al, byte [esp + 0x28]
cmp al, 3
ja 0x100f347f
cmp al, 2
jne 0x100f34d3
mov ebx, edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov eax, dword [edi + 4]
cmp dword [eax + 4], 0
je 0x100f34c3
mov ecx, dword [edi]
cmp dword [eax + 8], 9
mov dword [esp + 0x1c], ecx
jae 0x100f34af
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 0x1c]
jmp 0x100f34bb
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 0x1c]
push dword [ecx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edi, ebx
mov ebx, dword [esp + 0x30]
xor eax, eax
mov ecx, ebx
add cl, 0xfd
movzx edx, cl
inc edx
cmp cl, 2
cmovb eax, edx
test eax, eax
je 0x100f355d
cmp eax, 1
je 0x100f3676
xor eax, eax
xchg byte [0x104d5398], al
test al, al
je 0x100f3676
lea eax, [esp + 4]
mov dword [esp + 4], 0x10421930
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x50]
lea edx, [esp + 4]
push eax
call fcn.100f3c50
add esp, 4
mov al, byte [esp + 0x50]
cmp al, 3
ja 0x100f3552
cmp al, 2
jne 0x100f3676
mov ebx, edi
mov edi, dword [esp + 0x54]
jmp 0x100f3633
mov ecx, 0x104dec74
call fcn.100f4810
lea eax, [esp + 3]
mov dword [esp + 4], 0x1044ac68
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], esi
mov byte [esp + 3], bl
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
mov dword [esp + 0x50], eax
lea eax, [esp + 4]
mov dword [esp + 0x54], 0x100f4910
push eax
call fcn.100f3c50
add esp, 4
mov eax, dword [0x104dec60]
test eax, eax
jne 0x100f35db
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
jne 0x100f35f3
mov eax, dword [0x104dec74]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100f3621
mov eax, dword [0x104dec78]
test eax, eax
jne 0x100f361a
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push 0x104dec74
call eax
mov al, byte [esp + 0x28]
cmp al, 3
ja 0x100f362d
cmp al, 2
jne 0x100f3676
mov ebx, edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov eax, dword [edi + 4]
cmp dword [eax + 4], 0
je 0x100f3666
mov esi, dword [edi]
cmp dword [eax + 8], 9
jae 0x100f3656
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100f365e
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edi, ebx
cmp byte [esp + 0x20], 0
jne 0x100f368b
lock dec dword [edi]
jne 0x100f368b
lea ecx, [esp + 0x24]
call fcn.100f2c20
mov eax, dword [0x104dec6c]
test eax, eax
jne 0x100f36b2
mov ecx, str.ReleaseSRWLockShared
mov edx, 0x14
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f3840
cmovne eax, edx
mov dword [0x104dec6c], eax
push 0x104dec68
call eax
cmp ebp, 1
jbe 0x100f36cb
mov dword [esp + 4], str.thread_panicked_while_panicking._aborting._n
jmp 0x100f3190
call fcn.10007810
ud2