Function at 0x435890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0x1e4]
push dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x435b16
push esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4358f7
call fcn.0042e260
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x3c], xmm0
call dword [0x4f6a28]
add esp, 4
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push dword [edi + 0x12c]
push dword [edi + 0x128]
call fcn.00413310
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
je 0x43594f
or eax, 0xffffffff
mov edx, bind
cmp ecx, 1
jne 0x43594f
mov eax, ecx
mov edx, bind
neg eax
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10], eax
adc edx, 0
mov dword [esp + 0x10c], 0
neg edx
mov byte [esp + 0xfc], 0
test byte [ebx], 1
mov dword [esp + 0x14], edx
je 0x435a9e
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push dword [esp + 0x38]
mov ecx, edi
mov byte [esp + 0x30], 0
push eax
call fcn.00436040
mov ecx, eax
test ecx, ecx
je 0x4359b7
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004329a0
mov eax, dword [edi + 0x16c]
test al, 8
je 0x4359fe
push ecx
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0x45
lea eax, [esp + 0x120]
push eax
call fcn.00435350
push eax
lea ecx, [esp + 0x100]
call fcn.0040f020
cmp dword [esp + 0x128], 0x10
jb 0x4359fe
push dword [esp + 0x114]
call fcn.004a733a
add esp, 4
cmp byte [esp + 0x28], 0
je 0x435a0f
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10c], 0
je 0x435a9e
cmp dword [0x4f9f2c], 2
jg 0x435a8e
push 1
push 2
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], 2
mov dword [esp + 0x50], 2
call fcn.00409530
mov dword [esp + 0xec], str.d:webapps_b_build_slave_repo_build_src_base_trace_event_trace_event_impl.cc
mov dword [esp + 0xf0], 0x887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x887
push str.d:webapps_b_build_slave_repo_build_src_base_trace_event_trace_event_impl.cc
lea ecx, [esp + 0x50]
mov dword [esp + 0xfc], eax
call fcn.0040a300
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0040c320
add esp, 8
test byte [esp + 0x1c], 2
je 0x435a9e
lea ecx, [esp + 0x48]
call fcn.0040a0c0
test byte [ebx], 4
je 0x435acc
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x435acc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x4c]
push ebx
push 0x45
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
add esp, 0x30
cmp dword [esp + 0x110], 0x10
jb 0x435ae5
push dword [esp + 0xfc]
call fcn.004a733a
add esp, 4
push 0
push dword [esi]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x435b16
call fcn.0042e260
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 0x10