Function at 0x10026310
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100701f0]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x30], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
push dword [edi + 0x1cc]
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100265b2
mov ecx, dword [edi + 0x1cc]
lea edx, [edi + 0x1cc]
call fcn.10015b50
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.10015220
add esp, 4
mov ecx, eax
call fcn.10015010
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x128]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [edi + 0x12c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x108], 0xf
test byte [eax], 1
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
je 0x1002653c
push dword [esp + 0x34]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
push dword [esp + 0x3c]
mov ecx, edi
mov byte [esp + 0x34], bl
push eax
call fcn.10026d90
mov edx, eax
test edx, edx
je 0x1002641c
mov eax, dword [esp + 0x3c]
sub eax, dword [edx]
mov ecx, dword [esp + 0x10]
sbb ecx, dword [edx + 4]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
neg ecx
mov dword [edx + 0x18], ecx
adc eax, ebx
neg eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi + 0x154]
test al, 8
je 0x100264ac
push edx
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push 0x45
lea eax, [esp + 0x118]
push eax
call fcn.10025f80
lea ecx, [esp + 0xf4]
mov dword [esp + 0x10], eax
cmp ecx, eax
je 0x10026493
cmp dword [esp + 0x108], 0x10
jb 0x1002646d
push dword [esp + 0xf4]
call fcn.1004245e
mov eax, dword [esp + 0x14]
add esp, 4
push eax
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
call fcn.10002bb0
cmp dword [esp + 0x120], 0x10
jb 0x100264ac
push dword [esp + 0x10c]
call fcn.1004245e
add esp, 4
cmp byte [esp + 0x2c], bl
je 0x100264bc
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x104], ebx
je 0x1002653c
cmp dword [0x10072d60], 2
jg 0x1002652e
mov ebx, 2
lea ecx, [esp + 0x48]
push 1
push ebx
mov dword [esp + 0x48], ebx
call fcn.10003df0
mov dword [esp + 0xe4], str.b:core_src_basedebug_trace_event_impl.cc
mov dword [esp + 0xe8], 0x85a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x85a
push str.b:core_src_basedebug_trace_event_impl.cc
lea ecx, [esp + 0x48]
mov dword [esp + 0xf4], eax
call fcn.10009a80
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10008310
add esp, 8
test bl, 2
je 0x1002653c
lea ecx, [esp + 0x40]
call fcn.10009810
mov ebx, dword [esp + 0x1c]
test byte [ebx], 4
je 0x1002656e
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1002656e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x4c]
push ebx
push 0x45
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call eax
add esp, 0x30
cmp dword [esp + 0x108], 0x10
jb 0x10026587
push dword [esp + 0xf4]
call fcn.1004245e
add esp, 4
mov ecx, dword [edi + 0x1cc]
xor edx, edx
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.10015b50
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10042bf9
mov esp, ebp
pop ebp
ret 0x10