Function at 0x43c140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5d4074]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov al, byte [ebp + 0xc]
xor edx, edx
mov byte [esp + 0xe], al
mov byte [esp + 0x44], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x30], eax
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp byte [ecx], al
jne 0x43c1c4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x43c6da
push dword [ebx + 0x200]
lea edi, [ebx + 0x200]
mov dword [esp + 0x70], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c1f0
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x43c6da
mov ecx, dword [edi]
mov edx, edi
call fcn.0043adf0
mov eax, dword [ebp + 0x44]
mov esi, dword [ebp + 0x20]
test al, 4
je 0x43c239
test eax, 0x300
mov eax, dword [ebp + 0x24]
je 0x43c219
xor esi, dword [ebx + 0x128]
xor eax, dword [ebx + 0x12c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
xor eax, dword [ebx + 0x128]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebx + 0x12c]
mov dword [esp + 0x3c], eax
jmp 0x43c24e
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
push dword [esp + 0x50]
lea eax, [esp + 0x64]
mov dword [esp + 0x14], esi
push eax
mov ecx, ebx
call fcn.0043af10
call fcn.00428d70
test al, al
je 0x43c279
lea ecx, [esp + 0x88]
call fcn.00428cb0
jmp 0x43c286
xorps xmm0, xmm0
lea eax, [esp + 0x70]
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov ecx, ebx
mov dword [esp + 0x70], eax
call fcn.0043bb40
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 + 0x1c], eax
jne 0x43c3e8
call fcn.00431d80
push dword [esp + 0x1c]
mov ecx, eax
call fcn.00431c10
mov esi, eax
mov dword [esp + 0x18], esi
call fcn.0043da70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x43c3e4
test esi, esi
je 0x43c3e4
cmp byte [esi], 0
je 0x43c3e4
call fcn.0043da70
push esi
mov ecx, eax
call fcn.00435680
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebx + 0xbc]
call fcn.004271f0
mov esi, dword [esp + 0x68]
cmp esi, dword [ebx + 0xc0]
jne 0x43c355
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [ebx + 0xbc]
call fcn.0043d820
add esp, 4
mov ecx, eax
call fcn.00412960
jmp 0x43c3d9
sub esp, 8
mov ecx, esp
push 0x5bf3a4
call fcn.004125b0
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.00405700
push ecx
xor edx, edx
lea ecx, [esp + 0x90]
call fcn.004241e0
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x90]
add esp, 0x14
push dword [esp + 0x54]
push eax
call fcn.0043e4c0
mov ecx, dword [esp + 0x88]
add esp, 8
cmp eax, ecx
jne 0x43c3d0
sub ecx, dword [esp + 0x7c]
test ecx, 0xfffffff8
je 0x43c3c4
push 0x2c
lea ecx, [esi + 0xc]
call fcn.00421250
push dword [esp + 0x18]
lea ecx, [esi + 0xc]
call fcn.004058f0
lea ecx, [esp + 0x7c]
call fcn.00424460
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
test byte [ecx], 8
je 0x43c414
push ecx
push dword [esp + 0x34]
mov cl, byte [esp + 0x16]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [ebp + 0x30]
sub esp, 8
push dword [esp + 0x30]
call fcn.00441920
add esp, 0x20
lea ecx, [esp + 0x1f4]
call fcn.00405a50
mov eax, dword [esp + 0x28]
test byte [eax], 3
je 0x43c521
mov ecx, dword [esp + 0x88]
lea eax, [ebx + 4]
mov byte [esp + 0xf], 0
test ecx, ecx
je 0x43c452
lea eax, [esp + 0x58]
push eax
call fcn.0043b2a0
mov ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x43c472
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x5c]
mov byte [esp + 0x13], 1
push eax
mov ecx, ebx
call fcn.0043bfe0
mov ecx, eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x43c4c3
push dword [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [ebp + 0x44]
push 0
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [ebp + 0x30]
push dword [esp + 0x54]
push esi
push dword [esp + 0x6c]
push dword [esp + 0x74]
push dword [esp + 0x4c]
push dword [esp + 0x64]
push dword [esp + 0x84]
push dword [esp + 0x60]
call fcn.00445e30
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x164]
test al, 8
je 0x43c510
cmp byte [esp + 0xe], 0x58
movzx eax, byte [esp + 0xe]
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.0043c7b0
push eax
lea ecx, [esp + 0x1f8]
call fcn.004129c0
lea ecx, [esp + 0x20c]
call fcn.00405950
cmp byte [esp + 0xf], 0
je 0x43c521
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x204], 0
je 0x43c584
cmp dword [0x79c13c], 2
jg 0x43c569
push 2
push 0x517
mov eax, 4
lea ecx, [esp + 0x98]
push str.e:zmbase_base_trace_event_trace_log.cc
mov dword [esp + 0x2c], eax
call fcn.00421910
lea ecx, [esp + 0x1f4]
add eax, 8
push ecx
push eax
call fcn.00414560
add esp, 8
mov eax, dword [esp + 0x20]
test al, 4
je 0x43c588
and eax, 0xfffffffb
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], eax
call fcn.004219d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp dword [ebx + 0x148], ecx
jne 0x43c624
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test al, 0x20
je 0x43c5b8
lea ecx, [esp + 0x140]
call fcn.004219d0
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x14c]
call fcn.004290e0
mov ecx, dword [esp + 0x24]
mov bl, al
add ecx, 0x140
push ecx
lea ecx, [esp + 0x4c]
call fcn.00425f20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x48]
test bl, bl
je 0x43c602
test esi, esi
je 0x43c620
push esi
call dword [esp + pe_nt_image_headers32]
add esp, 4
test esi, esi
je 0x43c620
or eax, 0xffffffff
lock xadd dword [esi], eax
sub eax, 1
setne al
test al, al
jne 0x43c620
mov eax, dword [esi + 4]
push esi
call eax
add esp, 4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
test byte [eax], 4
je 0x43c67f
mov ecx, dword [ebx + 0x4c]
mov bl, byte [esp + 0xe]
test ecx, ecx
je 0x43c683
push dword [ebp + 0x44]
cmp bl, 0x58
mov edx, 0x42
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [ebp + 0x30]
push dword [esp + 0x50]
push dword [esp + 0x58]
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 0x43c683
mov bl, byte [esp + 0xe]
cmp dword [0x79c3d4], 0
je 0x43c6b4
mov eax, dword [0x79c3d4]
test eax, eax
setne al
test al, al
je 0x43c6b4
cmp bl, 0x58
jne 0x43c6b4
mov dword [esp + 0x44], esi
call fcn.00443310
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.00435f50
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x1f4]
mov eax, dword [esp + 0x58]
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
call fcn.00405950
mov ecx, dword [edi]
xor edx, edx
call fcn.0043adf0
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 0x40