Function at 0x10026480
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x1006e1e0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x58], eax
mov byte [esp + 0x84], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x4c], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
cmp byte [ecx], al
jne 0x10026513
mov ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
jmp 0x10026ac9
push dword [edi + 0x1cc]
lea esi, [edi + 0x1cc]
mov dword [esp + 0x8c], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10026542
mov eax, dword [esp + 0x38]
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x10026ac9
mov ecx, dword [esi]
mov edx, esi
call fcn.10017040
test byte [ebp + 0x3c], 4
je 0x1002656d
mov eax, dword [ebp + 0x18]
xor eax, dword [edi + 0x118]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [edi + 0x11c]
mov dword [esp + 0x44], eax
jmp 0x1002657b
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
sub ecx, dword [edi + 0x128]
mov eax, dword [eax + 4]
sbb eax, dword [edi + 0x12c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x58], ecx
call dword [0x1006f614]
add esp, 4
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, dword [edi + 0x128]
push dword [edi + 0x1c8]
sbb eax, dword [edi + 0x12c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10026665
call fcn.1000e620
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10026665
push dword [edi + 0x1c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x1002663a
mov ecx, dword [edx + 0x20]
cmp ecx, dword [edi + 0x204]
je 0x10026665
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x28
call fcn.10042bca
add esp, 4
test eax, eax
je 0x10026652
push edi
mov ecx, eax
call fcn.10024bf0
jmp 0x10026654
xor eax, eax
mov ecx, dword [edi + 0x1c4]
mov edx, eax
mov dword [esp + 0x20], eax
call fcn.10017040
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x24], eax
jne 0x100267e5
call fcn.1001ee40
push dword [esp + 0x24]
mov ecx, eax
call fcn.1001e980
mov dword [esp + 0x1c], eax
call fcn.100290d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x100267e5
test ecx, ecx
je 0x100267e5
cmp byte [ecx], 0
je 0x100267e5
call fcn.100290d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
call fcn.10017040
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x18
push edi
call eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
add eax, 0xac
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov dword [esp + 0xa8], eax
call fcn.1000fec0
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0x30]
cmp esi, dword [ecx]
jne 0x1002671c
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push ecx
push eax
call fcn.10028680
add esp, 4
mov ecx, eax
call fcn.1001b700
jmp 0x100267d3
push 0x10068000
lea ecx, [esp + 0xb4]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call fcn.1000a450
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x34], eax
call fcn.10007140
lea eax, [esp + 0x64]
push eax
lea edx, [esp + 0xb4]
lea ecx, [esp + 0xac]
call fcn.10011170
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x68]
add esp, 4
mov byte [esp + 0x80], 0
mov edx, esi
push dword [esp + 0x80]
push eax
call fcn.1002a710
add esp, 8
cmp eax, esi
jne 0x100267c2
sub esi, dword [esp + 0x64]
test esi, 0xfffffff8
mov esi, dword [esp + 0x30]
je 0x100267b7
push 0x2c
mov ecx, esi
call fcn.1000b190
push dword [esp + 0x1c]
mov ecx, esi
call fcn.10001b90
mov eax, dword [esp + 0x64]
test eax, eax
je 0x100267d3
push eax
call fcn.10042c1b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], 0
mov byte [esp + 0x21c], 0
test byte [eax], 3
je 0x10026964
mov eax, dword [esp + 0x20]
mov byte [esp + 0x13], 0
test eax, eax
je 0x10026831
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.10024e50
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x10026851
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x38]
mov byte [esp + 0x17], 1
push eax
mov ecx, edi
call fcn.10026290
mov ecx, eax
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x100268a5
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x50]
push dword [esp + 0x60]
push dword [ebp + 0x3c]
push dword [esp + 0xa0]
push dword [esp + 0x64]
push dword [esp + 0x78]
push dword [esp + 0x80]
push dword [ebp + 0x28]
push dword [esp + 0x6c]
push dword [esp + 0x68]
push dword [esp + 0x70]
push dword [esp + 0x60]
push dword [esp + 0xbc]
push dword [esp + 0x60]
call fcn.10024070
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x154]
test al, 8
je 0x100268f3
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
cmp cl, 0x58
push eax
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, edi
movzx eax, al
push eax
lea eax, [esp + 0x240]
push eax
call fcn.10026af0
push eax
lea ecx, [esp + 0x220]
call fcn.10001b20
lea ecx, [esp + 0x234]
call fcn.10001b60
cmp byte [esp + 0x13], 0
je 0x10026901
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x22c], 0
je 0x10026964
cmp dword [0x10070d50], 2
jg 0x10026949
push 2
push 0x7d8
mov eax, 4
lea ecx, [esp + 0xc0]
push str.b:_sienium_src_base_trace_event_trace_event_impl.cc
mov dword [esp + 0x20], eax
call fcn.10009690
lea ecx, [esp + 0x21c]
add eax, 8
push ecx
push eax
call fcn.10008190
add esp, 8
mov eax, dword [esp + 0x14]
test al, 4
je 0x10026968
and eax, 0xfffffffb
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], eax
call fcn.100096e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
cmp dword [edi + 0x138], ecx
jne 0x10026a08
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test al, 0x20
je 0x10026998
lea ecx, [esp + 0x168]
call fcn.100096e0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
mov edx, dword [esp + 0x40]
lea ecx, [edi + 0x13c]
call fcn.100153a0
lea ecx, [edi + 0x130]
mov bl, al
push ecx
lea ecx, [esp + 0x7c]
call fcn.1000c790
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
mov ebx, dword [esp + 0x78]
je 0x100269df
test ebx, ebx
je 0x10026a04
push ebx
call dword [esp + 0x80]
add esp, 4
test ebx, ebx
je 0x10026a04
lea ecx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x10026a04
test ecx, ecx
je 0x10026a04
add ecx, 0xfffffffc
je 0x10026a04
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
test byte [eax], 4
je 0x10026a5d
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x10026a5d
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x5c]
cmp dl, 0x58
push dword [esp + 0x50]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [ebp + 0x28]
push dword [esp + 0x58]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x70]
push dword [esp + 0x80]
call ecx
add esp, 0x30
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10026a7c
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x94]
push ecx
mov ecx, eax
call fcn.10024fa0
cmp dword [esp + 0x230], 0x10
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
jb 0x10026aa2
push dword [esp + 0x21c]
call fcn.10042c1b
add esp, 4
mov ecx, dword [esi]
xor edx, edx
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], 0
mov byte [esp + 0x21c], 0
call fcn.10017040
mov ecx, dword [esp + 0x24c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100433a9
mov esp, ebp
pop ebp
ret 0x38