Function at 0x431680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x49f270]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
push dword [edi + 0x1e4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43194b
mov ecx, dword [edi + 0x1e4]
lea edx, [edi + 0x1e4]
call fcn.0041eb30
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x34], xmm0
call dword [0x4a06a8]
add esp, 4
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push dword [edi + 0x12c]
push dword [edi + 0x128]
call fcn.004128a0
mov ecx, dword [esp + 0x28]
add esp, 0x10
test ecx, ecx
je 0x43173c
or eax, 0xffffffff
mov edx, closesocket
cmp ecx, 1
jne 0x43173c
mov eax, ecx
mov edx, closesocket
neg eax
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x10], eax
adc edx, 0
mov dword [esp + 0x104], 0
neg edx
mov byte [esp + 0xf4], 0
test byte [ebx], 1
mov dword [esp + 0x14], edx
je 0x4318d9
push dword [esp + 0x28]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
push dword [esp + 0x10]
mov ecx, edi
mov byte [esp + 0x2c], 0
push eax
call fcn.00431e70
mov ecx, eax
test ecx, ecx
je 0x4317a4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0042e920
mov eax, dword [edi + 0x16c]
test al, 8
je 0x431839
push ecx
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0x45
lea eax, [esp + 0x118]
push eax
call fcn.00431110
lea ecx, [esp + 0xf4]
mov dword [esp + 0xc], eax
cmp ecx, eax
je 0x431820
cmp dword [esp + 0x108], 0x10
jb 0x4317f5
push dword [esp + 0xf4]
call fcn.00466fe4
mov eax, dword [esp + 0x10]
add esp, 4
push eax
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x108], 0
mov byte [esp + 0xf8], 0
call fcn.00403d80
cmp dword [esp + 0x120], 0x10
jb 0x431839
push dword [esp + 0x10c]
call fcn.00466fe4
add esp, 4
cmp byte [esp + 0x24], 0
je 0x43184a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x104], 0
je 0x4318d9
cmp dword [0x4a2cc0], 2
jg 0x4318c9
push 1
push 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], 2
mov dword [esp + 0x48], 2
call fcn.00405490
mov dword [esp + 0xe4], str.d:webapps_b_build_slave_repo_build_src_base_trace_event_trace_event_impl.cc
mov dword [esp + 0xe8], 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 + 0x48]
mov dword [esp + 0xf4], eax
call fcn.0040b200
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00407e80
add esp, 8
test byte [esp + 0x1c], 2
je 0x4318d9
lea ecx, [esp + 0x40]
call fcn.0040af80
test byte [ebx], 4
je 0x431907
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x431907
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x48]
push ebx
push 0x45
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
add esp, 0x30
cmp dword [esp + 0x108], 0x10
jb 0x431920
push dword [esp + 0xf4]
call fcn.00466fe4
add esp, 4
mov ecx, dword [edi + 0x1e4]
xor edx, edx
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.0041eb30
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret 0x10