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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x48], ebx
mov al, byte [ebp + 0xc]
xor edx, edx
mov byte [esp + 0xe], al
mov byte [esp + 0x40], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x74], eax
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
cmp byte [ecx], al
jne 0x42f952
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x42ff00
push dword [ebx + 0x218]
lea esi, [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f97a
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x42ff00
push esi
lea ecx, [esp + 0x60]
call fcn.0042e2a0
mov eax, dword [ebp + 0x48]
test al, 4
je 0x42f9c8
mov esi, dword [ebp + 0x24]
test eax, 0x300
mov eax, dword [ebp + 0x28]
je 0x42f9a4
xor esi, dword [ebx + 0x128]
xor eax, dword [ebx + 0x12c]
mov dword [esp + 0x2c], esi
mov esi, dword [ebp + 0x1c]
xor esi, dword [ebx + 0x128]
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0x20]
xor esi, dword [ebx + 0x12c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
jmp 0x42f9e4
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
push dword [esp + 0x44]
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
call fcn.0042e230
call fcn.004154a0
test al, al
je 0x42fa08
lea ecx, [esp + 0x50]
call fcn.004153e0
jmp 0x42fa1b
xorps xmm0, xmm0
lea eax, [esp + 0x80]
movlpd qword [esp + 0x80], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov ecx, ebx
mov dword [esp + 0x80], eax
call fcn.0042f1e0
push dword [ebx + 0x210]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
jne 0x42fb89
call fcn.004391e0
push dword [esp + 0x18]
mov ecx, eax
call fcn.00439060
mov esi, eax
mov dword [esp + 0x24], esi
call fcn.00431000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x42fb85
test esi, esi
je 0x42fb85
cmp byte [esi], 0
je 0x42fb85
push esi
push ecx
call fcn.00431000
add esp, 4
mov ecx, eax
call fcn.00421200
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [ebx + 0xbc]
call fcn.004116e0
mov esi, dword [esp + 0x78]
cmp esi, dword [ebx + 0xc0]
jne 0x42faf0
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [ebx + 0xbc]
call fcn.00431160
add esp, 4
mov ecx, eax
call fcn.00416a00
jmp 0x42fb7a
sub esp, 8
mov ecx, esp
push 0x48c54c
call fcn.00408530
sub esp, 8
lea eax, [esi + 0xc]
mov ecx, esp
push eax
call fcn.00408500
push ecx
xor edx, edx
lea ecx, [esp + 0xa0]
call fcn.0041cb80
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0xa0]
add esp, 0x14
push dword [esp + 0x5c]
push eax
call fcn.00432a00
mov ecx, dword [esp + 0x98]
add esp, 8
cmp eax, ecx
jne 0x42fb6e
sub ecx, dword [esp + 0x8c]
test ecx, 0xfffffff8
je 0x42fb62
push 0x2c
lea ecx, [esi + 0xc]
call fcn.004173e0
push dword [esp + 0x24]
lea ecx, [esi + 0xc]
call fcn.004087b0
lea ecx, [esp + 0x8c]
call fcn.0041cdd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
test byte [eax], 8
je 0x42fbb9
push ecx
push dword [esp + 0x34]
mov cl, byte [esp + 0x16]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [ebp + 0x34]
sub esp, 8
push dword [esp + 0x30]
call fcn.0043b220
mov eax, dword [esp + 0x3c]
add esp, 0x20
test byte [eax], 1
mov dword [esp + 0x210], 0xf
mov dword [esp + 0x20c], 0
mov byte [esp + 0x1fc], 0
je 0x42fd38
mov byte [esp + 0xf], 0
lea eax, [ebx + 4]
test esi, esi
je 0x42fbfa
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.0042e750
jmp 0x42fc14
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x64]
mov byte [esp + 0x13], 1
push eax
mov ecx, ebx
call fcn.0042f730
mov esi, eax
test esi, esi
je 0x42fc77
push dword [esp + 0x80]
mov ecx, esi
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [ebp + 0x48]
push dword [esp + 0x88]
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [ebp + 0x34]
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [esp + 0x6c]
push dword [esp + 0x54]
push dword [esp + 0x84]
push dword [esp + 0x50]
push dword [esp + 0x5c]
push dword [esp + 0x84]
push dword [esp + 0x60]
call fcn.0043fab0
mov eax, dword [ebx + 0x17c]
test al, 8
je 0x42fcc4
cmp byte [esp + 0xe], 0x58
mov ecx, 0x42
movzx eax, byte [esp + 0xe]
push esi
push dword [esp + 0x48]
cmove eax, ecx
mov ecx, ebx
movzx eax, al
push eax
lea eax, [esp + 0x240]
push eax
call fcn.00430010
push eax
lea ecx, [esp + 0x200]
call fcn.004139c0
lea ecx, [esp + 0x234]
call fcn.004087f0
cmp byte [esp + 0xf], 0
je 0x42fcd5
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20c], 0
je 0x42fd38
cmp dword [0x494e44], 2
jg 0x42fd1d
push 2
push 0x50d
mov eax, 4
lea ecx, [esp + 0xa0]
push str.d:webapps_b_build_slave_repo_build_src_base_trace_event_trace_log.cc
mov dword [esp + 0x1c], eax
call fcn.00413f50
lea ecx, [esp + 0x1fc]
add eax, 8
push ecx
push eax
call fcn.0040b6e0
add esp, 8
mov eax, dword [esp + 0x10]
test al, 4
je 0x42fd3c
and eax, 0xfffffffb
lea ecx, [esp + 0x98]
mov dword [esp + 0x10], eax
call fcn.00414010
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp dword [ebx + 0x160], ecx
jne 0x42fdf3
mov dword [esp + 0x214], 0
mov dword [esp + 0x218], 0
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], 0
mov byte [esp + 0x21c], 0
test al, 8
je 0x42fd90
lea ecx, [esp + 0x148]
call fcn.00414010
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x164]
call fcn.004157e0
mov ecx, dword [esp + 0x48]
mov bl, al
add ecx, 0x140
push ecx
lea ecx, [esp + 0x218]
call fcn.004175b0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x42fde3
mov eax, dword [esp + 0x214]
test eax, eax
je 0x42fde3
push eax
call dword [esp + 0x21c]
add esp, 4
lea ecx, [esp + 0x214]
call fcn.00417560
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
test byte [eax], 4
je 0x42fe52
mov ecx, dword [ebx + 0x4c]
mov bl, byte [esp + 0xe]
test ecx, ecx
je 0x42fe56
push dword [ebp + 0x48]
cmp bl, 0x58
mov edx, 0x42
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [ebp + 0x34]
push dword [esp + 0x50]
push dword [esp + 0x38]
push dword [esp + 0x68]
push esi
push eax
movzx eax, bl
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x98]
push dword [esp + 0x98]
call ecx
add esp, 0x34
jmp 0x42fe56
mov bl, byte [esp + 0xe]
test byte [ebp + 0x48], 1
jne 0x42feab
cmp dword [0x495ed4], 0
je 0x42feab
mov eax, dword [0x495ed4]
test eax, eax
setne al
test al, al
je 0x42feab
cmp bl, 0x42
je 0x42fe96
cmp bl, 0x58
je 0x42fe96
cmp bl, 0x45
jne 0x42feab
call fcn.0043c850
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x42feab
add ecx, 0xfffffffc
mov dword [eax + 4], ecx
jmp 0x42feab
mov dword [esp + 0x40], esi
call fcn.0043c850
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.0043c8c0
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x210]
cmp eax, 0x10
jb 0x42fed9
inc eax
lea ecx, [esp + 0x1fc]
push eax
push dword [esp + 0x200]
call fcn.0040a4f0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x210], 0xf
mov dword [esp + 0x20c], 0
mov byte [esp + 0x1fc], 0
call fcn.0042e310
mov ecx, dword [esp + 0x24c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 0x44