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

Disassembly:
push 0xffffffffffffffff
push 0x100743d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100a04fc]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebp
push esi
push edi
mov eax, dword [0x100a04fc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1007037f
xor ebp, ebp
jmp 0x10070388
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x58], 0
test ebp, ebp
je 0x100703dd
jmp 0x100703a0
cmp dword [ebp + 0x1c], 0
jne 0x1007042e
cmp dword [ebp + 0x10], 0
jne 0x10070434
push 0x1006d000
push 0x100a45f8
call fcn.1006d4d0
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x10070506
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test ebp, ebp
je 0x10070410
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10070410
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
mov ecx, ebp
call edx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1007236c
add esp, 0x4c
ret
cmp dword [ebp + 0x10], 0
je 0x1007047c
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
mov dword [ebp + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10070466
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x10], 0
jne 0x10070434
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x100703a0
lea ecx, [ecx]
cmp byte [esi + 0x1d], 0
mov edi, esi
jne 0x100704d7
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x100704bc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x100704d7
jmp 0x100704b0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x100704b0
jmp 0x100704d7
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x100704d5
cmp esi, dword [eax + 8]
jne 0x100704d5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x100704c5
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100704ed
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100704ed
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x14]
call fcn.1004ed10
cmp esi, dword [esp + 0x10]
jne 0x10070490
jmp 0x100703a0
call fcn.10071560
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov esi, eax
mov edi, 0xb
mov dword [esp + 0x14], str.boost::thread_resource_error
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x5c], 1
call fcn.1004e890
int3