Function at 0x100f3420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x70
lock inc dword [0x10551f14]
mov esi, edx
mov edi, ecx
call fcn.100f39c0
test eax, eax
jne 0x100f345e
lea eax, [esp + 4]
mov ecx, 0x103c9a77
mov edx, 0x46
push 0x103a041c
push 0x103a040c
push eax
call fcn.1000aa20
add esp, 0xc
ud2
mov ebp, dword [eax]
inc ebp
cmp ebp, 2
mov dword [eax], ebp
jbe 0x100f349d
mov dword [esp + 4], 0x103a0450
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.100f3a90
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], 0x103a042c
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [0x10551f28]
test eax, eax
jne 0x100f34ea
mov ecx, str.AcquireSRWLockShared
mov edx, 0x14
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3a70
cmovne eax, edx
mov dword [0x10551f28], eax
push 0x10551f2c
call eax
push edi
call dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.100f39c0
test eax, eax
je 0x100f343b
cmp dword [eax], 1
mov cl, 1
ja 0x100f35ca
mov eax, dword [0x10551f34]
cmp eax, 2
je 0x100f3552
cmp eax, 1
je 0x100f354e
test eax, eax
jne 0x100f35ca
lea ecx, [esp + 4]
mov edx, 0x103a04f8
push 0xe
call fcn.100f3b90
add esp, 4
mov edi, dword [esp + 4]
test edi, edi
jne 0x100f3556
mov bl, 5
jmp 0x100f35ae
mov cl, 4
jmp 0x100f35ca
xor ecx, ecx
jmp 0x100f35ca
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp ecx, 4
je 0x100f357e
cmp ecx, 1
jne 0x100f3595
mov bl, 4
mov esi, 1
cmp edi, 0x103a0506
je 0x100f359c
cmp byte [edi], 0x30
jne 0x100f3595
jmp 0x100f359c
mov bl, 1
mov esi, 3
cmp edi, 0x103a0507
je 0x100f359c
cmp dword [edi], 0x6c6c7566
je 0x100f359c
mov esi, 2
xor ebx, ebx
test eax, eax
je 0x100f35ae
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 [0x10551f34], edx
mov eax, dword [esp + 0x40]
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], eax
push edi
call fcn.1000aac0
add esp, 4
mov esi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test esi, esi
je 0x100f360a
xor eax, 0xecc7bcf4
xor edx, 0x7ef2a91e
or edx, eax
jne 0x100f360a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], eax
jmp 0x100f3642
push edi
call fcn.1000aac0
add esp, 4
mov esi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test esi, esi
mov edi, 0x103a050b
mov ecx, 8
je 0x100f363e
xor eax, 0x6d0be9c8
xor edx, 0xce8a1faf
or edx, eax
jne 0x100f363e
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov eax, dword [0x10411900]
test eax, eax
jne 0x100f3659
mov ecx, 0x10411900
call fcn.100f2930
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100f366e
cmp dword [eax], 1
jne 0x100f366e
add eax, 4
jmp 0x100f368b
call fcn.100f2a80
test eax, eax
jne 0x100f368b
mov al, 1
mov dword [esp + 0x24], 0
xor edi, edi
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x100f36cc
mov ecx, eax
call fcn.100f2b50
mov edi, eax
mov dword [esp + 0x24], eax
add eax, 0x10
mov ecx, dword [edi + 0x10]
test ecx, ecx
cmove eax, ecx
jne 0x100f36a9
xor eax, eax
jmp 0x100f36c4
mov ecx, dword [eax + 4]
sub ecx, 1
jae 0x100f36c2
xor edx, edx
push 0x103a0514
call fcn.10008b80
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], 0x103a0688
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], 0x100093b0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
lea edx, [esp + 0x44]
mov dword [esp + 0x10], 0x100093b0
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], 0x100f4a80
mov dword [esp + 0x64], 3
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
push esi
call fcn.100f3f30
add esp, 4
mov al, byte [esp + 0x28]
cmp al, 3
ja 0x100f375f
cmp al, 2
jne 0x100f37b3
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 0x100f37a3
mov ecx, dword [edi]
cmp dword [eax + 8], 9
mov dword [esp + 0x1c], ecx
jae 0x100f378f
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 0x1c]
jmp 0x100f379b
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 0x100f383d
cmp eax, 1
je 0x100f3956
xor eax, eax
xchg byte [0x10411908], al
test al, al
je 0x100f3956
lea eax, [esp + 4]
mov dword [esp + 4], 0x103a06c0
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.100f3f30
add esp, 4
mov al, byte [esp + 0x50]
cmp al, 3
ja 0x100f3832
cmp al, 2
jne 0x100f3956
mov ebx, edi
mov edi, dword [esp + 0x54]
jmp 0x100f3913
mov ecx, 0x10551f38
call fcn.100f4af0
lea eax, [esp + 3]
mov dword [esp + 4], 0x103c99f8
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], 0x100f4bf0
push eax
call fcn.100f3f30
add esp, 4
mov eax, dword [0x10551f24]
test eax, eax
jne 0x100f38bb
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x100f38d3
mov eax, dword [0x10551f38]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x100f3901
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x100f38fa
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push 0x10551f38
call eax
mov al, byte [esp + 0x28]
cmp al, 3
ja 0x100f390d
cmp al, 2
jne 0x100f3956
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 0x100f3946
mov esi, dword [edi]
cmp dword [eax + 8], 9
jae 0x100f3936
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100f393e
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 0x100f396b
lock dec dword [edi]
jne 0x100f396b
lea ecx, [esp + 0x24]
call fcn.100f2f00
mov eax, dword [0x10551f30]
test eax, eax
jne 0x100f3992
mov ecx, str.ReleaseSRWLockSharedt
mov edx, 0x14
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3b20
cmovne eax, edx
mov dword [0x10551f30], eax
push 0x10551f2c
call eax
cmp ebp, 1
jbe 0x100f39ab
mov dword [esp + 4], str.thread_panicked_while_panicking._aborting._n
jmp 0x100f3470
call fcn.10007aa0
ud2