Function at 0x1001b0c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x102a8430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov bl, byte [ecx]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0
test bl, bl
je 0x1001b2dd
push dword [edi + 0x200]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1001b2dd
mov ecx, dword [edi + 0x200]
lea edx, [edi + 0x200]
call fcn.10018f70
call fcn.10016620
test al, al
je 0x1001b139
lea ecx, [ebp - 0x78]
call fcn.10016560
jmp 0x1001b144
xorps xmm0, xmm0
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x68], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
mov ecx, edi
push eax
call fcn.10019040
test bl, 8
je 0x1001b167
mov ecx, dword [ebp - 0x3c]
call fcn.1002af20
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
test bl, 1
je 0x1001b27c
push dword [ebp - 0x54]
lea eax, [edi + 4]
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, edi
lea eax, [ebp - 0x50]
push eax
call fcn.1001b9b0
mov edx, eax
test edx, edx
je 0x1001b1ce
mov ecx, dword [ebp - 0x48]
sub ecx, dword [edx]
mov eax, dword [ebp - 0x44]
sbb eax, dword [edx + 4]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
je 0x1001b1ce
mov eax, dword [ebp - 0x5c]
sub eax, dword [edx + 8]
mov ecx, dword [ebp - 0x64]
sbb ecx, dword [edx + 0xc]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [edi + 0x164]
test al, 8
je 0x1001b1fb
push edx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push 0x45
lea eax, [ebp - 0x34]
push eax
call fcn.1001ab80
push eax
lea ecx, [ebp - 0x1c]
call fcn.10005820
lea ecx, [ebp - 0x34]
call fcn.10001230
cmp dword [0x102ab10c], 0
je 0x1001b224
mov eax, dword [0x102ab10c]
test eax, eax
setne al
test al, al
je 0x1001b224
call fcn.1002cc00
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x1001b224
add ecx, 0xfffffffc
mov dword [eax + 4], ecx
cmp byte [ebp - 0x4c], 0
je 0x1001b233
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x1001b27c
cmp dword [0x102aa0b4], 2
jg 0x1001b26b
push 2
push 0x5b6
push str.e:zmbase_base_trace_event_trace_log.cc
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x38], 2
call fcn.10010e30
lea edx, [ebp - 0x1c]
lea ecx, [eax + 8]
call fcn.10009b70
test byte [ebp - 0x38], 2
je 0x1001b27c
lea ecx, [ebp - 0x128]
call fcn.10010e80
test bl, 4
je 0x1001b2a9
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1001b2a9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
push 0x45
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call eax
add esp, 0x30
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x1001b2be
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.10001950
mov ecx, dword [edi + 0x200]
xor edx, edx
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.10018f70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret 0x10