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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x80], esi
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x48], eax
mov byte [esp + 0x84], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x30]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x4c], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp byte [ecx], al
jne 0x10017c5a
mov ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
jmp 0x100181a7
push dword [esi + 0x1cc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x10017c7e
mov eax, dword [esp + 0x30]
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x100181a7
lea eax, [esi + 0x1cc]
push eax
lea ecx, [esp + 0x94]
call fcn.10015150
test byte [ebp + 0x3c], 4
je 0x10017cb3
mov eax, dword [ebp + 0x18]
xor eax, dword [esi + 0x118]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [esi + 0x11c]
mov dword [esp + 0x38], eax
jmp 0x10017cc1
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
push dword [esi + 0x1c8]
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
sub ecx, dword [esi + 0x128]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x12c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
mov dword [esp + 0xa0], eax
call edi
test eax, eax
jne 0x10017d86
call fcn.10028480
push dword [eax]
call edi
test eax, eax
je 0x10017d86
push dword [esi + 0x1c4]
call edi
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x10017d4c
mov ecx, dword [edi + 0x20]
cmp ecx, dword [esi + 0x204]
je 0x10017d6a
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, 0x28
call fcn.1002fe00
test eax, eax
je 0x10017d74
push esi
mov ecx, eax
call fcn.100161e0
mov edi, eax
mov dword [esp + 0x24], eax
jmp 0x10017d7a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jmp 0x10017d86
xor edi, edi
mov dword [esp + 0x24], edi
push edi
lea ecx, [esi + 0x1c4]
call fcn.10019ef0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esp + 0x20]
cmp edi, eax
jne 0x10017efc
call fcn.10027090
push edi
mov ecx, eax
call fcn.10026d30
mov edi, eax
mov dword [esp + 0x1c], edi
call fcn.1001a940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp edi, eax
je 0x10017efc
test edi, edi
je 0x10017efc
cmp byte [edi], 0
je 0x10017efc
call fcn.1001a940
push edi
mov ecx, eax
call fcn.10019ef0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x18]
push edi
call eax
lea ecx, [esp + 0x10]
push ecx
lea eax, [esi + 0xb0]
lea ecx, [esp + 0x98]
mov dword [esp + 0x80], eax
push ecx
mov ecx, eax
call fcn.10007d10
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x94]
cmp esi, dword [ecx]
jne 0x10017e3f
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push ecx
push eax
call fcn.10019ca0
add esp, 4
mov ecx, eax
call fcn.100198d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jmp 0x10017eee
push str.____
lea ecx, [esp + 0xa4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.100023a0
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x14], eax
call fcn.100023e0
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0xac]
call fcn.1000f0b0
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x60]
add esp, 4
mov byte [esp + 0x8c], 0
mov edx, esi
push dword [esp + 0x8c]
push eax
call fcn.1001c8a0
add esp, 8
cmp eax, esi
jne 0x10017ee5
sub esi, dword [esp + 0x5c]
test esi, 0xfffffff8
mov esi, dword [esp + 0x10]
je 0x10017eda
push 0x2c
mov ecx, esi
call fcn.1000ec80
push dword [esp + 0x1c]
mov ecx, esi
call fcn.100052a0
lea ecx, [esp + 0x5c]
call fcn.1000bc90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x248], 0xf
mov dword [esp + 0x244], 0
test byte [eax], 3
mov byte [esp + 0x234], 0
je 0x10018077
mov byte [esp + 0xf], 0
test edi, edi
je 0x10017f48
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.100164a0
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x10017f68
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x30]
mov byte [esp + 0x13], 1
push eax
mov ecx, esi
call fcn.100179d0
mov ecx, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x10017fb9
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [ebp + 0x3c]
push dword [esp + 0x9c]
push dword [esp + 0x64]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [ebp + 0x28]
push dword [esp + 0x60]
push dword [esp + 0x68]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push dword [esp + 0xbc]
push dword [esp + 0x5c]
call fcn.100155c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x154]
test al, 8
je 0x10018007
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x4c]
cmp cl, 0x58
push eax
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, esi
movzx eax, al
push eax
lea eax, [esp + 0x258]
push eax
call fcn.10018220
push eax
lea ecx, [esp + 0x238]
call fcn.10001fe0
lea ecx, [esp + 0x24c]
call fcn.10002040
cmp byte [esp + 0xf], 0
je 0x10018015
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x244], 0
je 0x10018077
cmp dword [0x1030f270], 2
jg 0x1001805c
mov eax, 2
lea ecx, [esp + 0xb0]
push eax
push 0x7d5
push str.e:_trunk_v39_97_src_basedebug_trace_event_impl.cc
mov dword [esp + 0x24], eax
call fcn.10012e10
lea ecx, [esp + 0x234]
add eax, 8
push ecx
push eax
call fcn.1000aad0
add esp, 8
mov eax, dword [esp + 0x18]
test al, 2
je 0x1001807b
and eax, 0xfffffffd
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], eax
call fcn.10012e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp dword [esi + 0x138], ecx
jne 0x10018118
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
test al, 8
je 0x100180ab
lea ecx, [esp + 0x170]
call fcn.10012e80
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call eax
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x13c]
call fcn.10014120
lea ecx, [esi + 0x130]
mov bl, al
push ecx
lea ecx, [esp + 0x78]
call fcn.100181c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
mov ebx, dword [esp + 0x74]
je 0x100180ef
test ebx, ebx
je 0x10018114
push ebx
call dword [esp + 0x7c]
add esp, 4
test ebx, ebx
je 0x10018114
lea ecx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x10018114
test ecx, ecx
je 0x10018114
add ecx, 0xfffffffc
je 0x10018114
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
test byte [eax], 4
je 0x1001816a
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x1001816a
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x4c]
cmp dl, 0x58
push dword [esp + 0x50]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [ebp + 0x28]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x50]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call ecx
add esp, 0x30
test edi, edi
je 0x10018182
lea eax, [esp + 0x98]
mov ecx, edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.100165e0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x234]
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], eax
call fcn.10002040
lea ecx, [esp + 0x90]
call fcn.100151c0
mov ecx, dword [esp + 0x264]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 0x38