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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x102a8430]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov al, byte [ebp + 0xc]
xor edx, edx
mov byte [esp + 0x12], al
mov byte [esp + 0x48], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp byte [ecx], al
jne 0x1001a564
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x1001aaab
push dword [ebx + 0x200]
lea edi, [ebx + 0x200]
mov dword [esp + 0x70], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a590
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x1001aaab
mov ecx, dword [edi]
mov edx, edi
call fcn.10018f70
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x20]
test al, 4
je 0x1001a5d9
test eax, 0x300
mov eax, dword [ebp + 0x24]
je 0x1001a5b9
xor esi, dword [ebx + 0x128]
xor eax, dword [ebx + 0x12c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx + 0x128]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx + 0x12c]
mov dword [esp + 0x40], eax
jmp 0x1001a5ee
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
push dword [esp + 0x50]
lea eax, [esp + 0x64]
mov dword [esp + 0x18], esi
push eax
mov ecx, ebx
call fcn.10019100
call fcn.10016620
test al, al
je 0x1001a619
lea ecx, [esp + 0x88]
call fcn.10016560
jmp 0x1001a626
xorps xmm0, xmm0
lea eax, [esp + 0x70]
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov ecx, ebx
mov dword [esp + 0x70], eax
call fcn.10019e80
push dword [ebx + 0x1f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x24], eax
jne 0x1001a787
call fcn.10029790
push dword [esp + 0x24]
mov ecx, eax
call fcn.100295d0
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.1001c1a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x1001a783
test esi, esi
je 0x1001a783
cmp byte [esi], 0
je 0x1001a783
call fcn.1001c1a0
mov edx, esi
mov ecx, dword [eax]
call fcn.10018f70
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebx + 0xbc]
call fcn.10010260
mov esi, dword [esp + 0x68]
cmp esi, dword [ebx + 0xc0]
jne 0x1001a6f6
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [ebx + 0xbc]
call fcn.1001bf10
add esp, 4
mov ecx, eax
call fcn.1001c160
jmp 0x1001a778
sub esp, 8
mov ecx, esp
push 0x100687e0
call fcn.100080e0
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.100080b0
push ecx
lea ecx, [esp + 0x90]
call fcn.10029e90
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x90]
add esp, 0x14
push dword [esp + 0x54]
push eax
call fcn.1001d210
mov ecx, dword [esp + 0x88]
add esp, 8
cmp eax, ecx
jne 0x1001a76f
sub ecx, dword [esp + 0x7c]
test ecx, 0xfffffff8
je 0x1001a763
push 0x2c
lea ecx, [esi + 0xc]
call fcn.10001180
push dword [esp + 0x20]
lea ecx, [esi + 0xc]
call fcn.100011f0
lea ecx, [esp + 0x7c]
call fcn.1001bdb0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
test byte [eax], 8
je 0x1001a7b7
push ecx
push dword [esp + 0x38]
mov cl, byte [esp + 0x1a]
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [ebp + 0x30]
sub esp, 8
push dword [esp + 0x38]
call fcn.1002ac40
mov eax, dword [esp + 0x4c]
add esp, 0x20
test byte [eax], 3
mov dword [esp + 0x208], 0xf
mov dword [esp + 0x204], 0
mov byte [esp + 0x1f4], 0
je 0x1001a930
mov ecx, dword [esp + 0x88]
lea eax, [ebx + 4]
mov byte [esp + 0x13], 0
test ecx, ecx
je 0x1001a803
lea eax, [esp + 0x58]
push eax
call fcn.100193d0
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x1001a823
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x5c]
mov byte [esp + 0x17], 1
push eax
mov ecx, ebx
call fcn.1001a370
mov ecx, eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x1001a874
push dword [esp + 0x70]
push dword [esp + 0x7c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [ebp + 0x44]
push 0
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push dword [ebp + 0x30]
push dword [esp + 0x58]
push esi
push dword [esp + 0x70]
push dword [esp + 0x78]
push dword [esp + 0x54]
push dword [esp + 0x68]
push dword [esp + 0x88]
push dword [esp + 0x68]
call fcn.1002fdb0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x164]
test al, 8
je 0x1001a8c1
cmp byte [esp + 0x12], 0x58
movzx eax, byte [esp + 0x12]
push ecx
push dword [esp + 0x54]
mov ecx, 0x42
cmove eax, ecx
mov ecx, ebx
movzx eax, al
push eax
lea eax, [esp + 0x218]
push eax
call fcn.1001ab80
push eax
lea ecx, [esp + 0x1f8]
call fcn.10005820
lea ecx, [esp + 0x20c]
call fcn.10001230
cmp byte [esp + 0x13], 0
je 0x1001a8d2
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x204], 0
je 0x1001a930
cmp dword [0x102aa0b4], 2
jg 0x1001a915
push 2
push 0x517
mov eax, 4
lea ecx, [esp + 0x98]
push str.e:zmbase_base_trace_event_trace_log.cc
mov dword [esp + 0x24], eax
call fcn.10010e30
lea edx, [esp + 0x1f4]
lea ecx, [eax + 8]
call fcn.10009b70
mov eax, dword [esp + 0x18]
test al, 4
je 0x1001a934
and eax, 0xfffffffb
lea ecx, [esp + 0x90]
mov dword [esp + 0x18], eax
call fcn.10010e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x148], ecx
jne 0x1001a9d0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test al, 0x10
je 0x1001a964
lea ecx, [esp + 0x140]
call fcn.10010e80
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + 0x14c]
call fcn.100168c0
mov ecx, dword [esp + 0x28]
mov bl, al
add ecx, 0x140
push ecx
lea ecx, [esp + 0x4c]
call fcn.1000e4c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x48]
test bl, bl
je 0x1001a9ae
test esi, esi
je 0x1001a9cc
push esi
call dword [esp + 0x50]
add esp, 4
test esi, esi
je 0x1001a9cc
or eax, 0xffffffff
lock xadd dword [esi], eax
sub eax, 1
setne al
test al, al
jne 0x1001a9cc
mov eax, dword [esi + 4]
push esi
call eax
add esp, 4
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
test byte [eax], 4
je 0x1001aa2b
mov ecx, dword [ebx + 0x4c]
mov bl, byte [esp + 0x12]
test ecx, ecx
je 0x1001aa2f
push dword [ebp + 0x44]
cmp bl, 0x58
mov edx, 0x42
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [ebp + 0x30]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push esi
push eax
movzx eax, bl
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call ecx
add esp, 0x30
jmp 0x1001aa2f
mov bl, byte [esp + 0x12]
cmp dword [0x102ab10c], 0
je 0x1001aa52
mov eax, dword [0x102ab10c]
test eax, eax
setne al
test al, al
je 0x1001aa52
cmp bl, 0x58
jne 0x1001aa52
mov ecx, esi
call fcn.1002cc70
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x208]
cmp eax, 0x10
jb 0x1001aa84
inc eax
lea ecx, [esp + 0x1f4]
push eax
push dword [esp + 0x1f8]
call fcn.10001950
mov ecx, dword [edi]
xor edx, edx
mov dword [esp + 0x208], 0xf
mov dword [esp + 0x204], 0
mov byte [esp + 0x1f4], 0
call fcn.10018f70
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret 0x40