Function at 0x4fa580
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov bl, byte [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0
push edi
test bl, bl
je 0x4fa7f0
push dword [esi + 0x218]
lea edi, [esi + 0x218]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4fa7f0
push edi
lea ecx, [esp + 0x40]
call fcn.004f8340
call fcn.004f2640
test al, al
je 0x4fa605
lea ecx, [esp + 0x40]
call fcn.004f2580
jmp 0x4fa612
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movlpd qword [esp + 0x30], xmm0
mov edi, dword [eax]
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
call fcn.004f8210
test bl, 8
je 0x4fa635
mov ecx, dword [esp + 0x14]
call fcn.00511ad0
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
test bl, 1
je 0x4fa775
push dword [esp + 0x28]
lea eax, [esi + 4]
mov byte [esp + 0x28], 0
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov ecx, esi
lea eax, [esp + 0x28]
push eax
call fcn.004faf30
mov edx, eax
test edx, edx
je 0x4fa6ad
mov ecx, dword [esp + 0x18]
sub ecx, dword [edx]
mov eax, dword [esp + 0x1c]
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 0x4fa6ad
sub edi, dword [edx + 8]
mov eax, dword [esp + 0x30]
sbb eax, dword [edx + 0xc]
mov dword [edx + 0x18], edi
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x17c]
test al, 8
je 0x4fa6e7
push edx
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push 0x45
lea eax, [esp + 0x120]
push eax
call fcn.004f9f40
push eax
lea ecx, [esp + 0x100]
call fcn.004eb7a0
lea ecx, [esp + 0x114]
call fcn.004e0b20
cmp dword [0x5c2bd4], 0
je 0x4fa710
mov eax, dword [0x5c2bd4]
test eax, eax
setne al
test al, al
je 0x4fa710
call fcn.00512e70
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x4fa710
add ecx, 0xfffffffc
mov dword [eax + 4], ecx
cmp byte [esp + 0x24], 0
je 0x4fa721
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10c], 0
je 0x4fa775
cmp dword [0x5c1b2c], 2
jg 0x4fa765
push 2
push 0x5b4
push str.d:webapps_b_build_slave_repo_build_src_base_trace_event_trace_log.cc
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], 2
call fcn.004ebdd0
lea ecx, [esp + 0xfc]
add eax, 8
push ecx
push eax
call fcn.004e3aa0
add esp, 8
test byte [esp + 0x10], 2
je 0x4fa775
lea ecx, [esp + 0x48]
call fcn.004ebe90
test bl, 4
je 0x4fa7a8
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4fa7a8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x5c]
push 0x45
push dword [esp + 0x48]
push dword [esp + 0x48]
call eax
add esp, 0x34
mov eax, dword [esp + 0x110]
cmp eax, 0x10
jb 0x4fa7c9
inc eax
lea ecx, [esp + 0xfc]
push eax
push dword [esp + 0x100]
call fcn.004e2910
lea ecx, [esp + 0x3c]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
call fcn.004f83b0
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret 0x10