Function at 0x4fa7d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi], ecx
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esi + 0x38], eax
mov ebx, dword [0x6ceba8]
cmp ebx, 1
jbe 0x4fab99
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x4fa81a
mov ecx, dword [ebx]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [ebx + 4]
jne 0x4fa81a
mov edi, dword [eax + ecx*8]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
mov ebx, dword [esi]
jb 0x4facbf
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov dword [ebx], edi
mov ebx, dword [0x6cebb4]
cmp ebx, 1
jbe 0x4fabde
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x4fa874
mov ecx, dword [ebx]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [ebx + 4]
jne 0x4fa874
mov edi, dword [eax + ecx*8]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
mov ebx, dword [esi]
jb 0x4faccd
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov eax, dword [ebp + 8]
mov dword [ebx + 4], edi
cmp dword [ebp + 0xc], 1
sete cl
mov dword [esi + 0x14], ecx
je 0x4fa8b6
test edi, edi
jne 0x4fab1f
mov edx, esp
mov byte [ebx + 8], cl
push eax
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov byte [ecx + 0x10], 0
mov eax, 0x11be9915
mov dword [ecx + 0x14], eax
mov edi, ebx
xor ebx, ebx
mov dword [ecx + 0x18], ebx
mov ecx, dword [ecx + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], eax
mov ecx, dword [0x6bede4]
test ecx, ecx
jne 0x4facdb
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
lea edi, [edi + 0xc]
jb 0x4faceb
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
mov dword [esi + 0xc], edi
mov dword [edi], ebx
test ebx, ebx
jne 0x4facff
mov ebx, dword [esi]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x11be9915
mov esp, edx
mov byte [ebx + 0x20], 0
mov edi, dword [0x6cebb4]
cmp edi, 1
jbe 0x4fac23
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4facad
mov ecx, dword [edi]
mov dword [eax + ecx*8], ebx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax + ecx*8 + 4], edx
mov edi, dword [0x6cf5bc]
cmp edi, 1
jbe 0x4fac68
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4fa9a8
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x4fa9a8
mov eax, dword [eax + ecx*8]
test eax, eax
jne 0x4fab04
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
je 0x4fa9ea
mov eax, dword [eax + 4]
test eax, eax
jne 0x4fab5f
mov ebx, dword [esi]
mov ecx, dword [ebx]
test ecx, ecx
mov edi, dword [esi + 0xc]
jne 0x4faaf0
mov eax, dword [edi]
test eax, eax
jne 0x4fad22
mov ecx, dword [esi + 0x38]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
cmp byte [eax + 8], 0
jne 0x4fa9b0
cmp dword [eax + 4], 0
jne 0x4fa9bb
mov edi, dword [esi]
lea ebx, [edi + 0x28]
cmp byte [edi + 0x20], 0
jne 0x4fad98
mov ecx, dword [fcn.00509260]
cmp ecx, 0x50efc0
jne 0x4fab2e
mov dword [esi + 0x24], ebx
xor eax, eax
lea edi, [esi + 0x30]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, 0x7bd05af6
cmp ecx, eax
mov ecx, 0x863
sbb ecx, edi
jge 0x4fadcb
mov ecx, dword [0x6c02b0]
mov dword [esi + 0x10], ecx
mov edx, dword [0x6c02b4]
mov dword [esi + 4], edx
push edx
push ecx
push edi
push eax
mov dword [esi + 0x20], eax
call fcn.00517110
mov dword [esi + 8], edi
mov ebx, edx
mov ecx, eax
mov edi, dword [esi + 0x10]
mul edi
mov dword [esi + 0x18], eax
mov eax, ecx
imul ecx, dword [esi + 4]
add edx, ecx
imul ecx, ebx, 0xf4240
mov dword [esi + 0x1c], ecx
imul ebx, edi
add ebx, edx
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x18]
mov edi, dword [esi + 8]
sbb edi, ebx
mov edx, 0xf4240
mul edx
mov dword [esi + 8], eax
mov ebx, edx
add ebx, dword [esi + 0x1c]
mov eax, ecx
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esi + 4]
push dword [esi + 0x10]
push edx
push eax
call fcn.00517110
add eax, dword [esi + 8]
adc edx, ebx
mov ebx, dword [esi + 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edi, dword [esi]
lea ecx, [edi + 0x30]
push edx
push eax
push ecx
call fcn.00408790
add esp, 0xc
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4fada8
mov byte [edi + 0x20], 1
jmp 0x4fa9bb
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4fab41
push dword [ebp + 0xc]
call fcn.00408930
jmp 0x4fa9ca
cmp byte [eax], 0
jne 0x4fa9a8
call fcn.00422df0
test al, al
je 0x4fa9a8
jmp 0x4fa9bb
mov cl, byte [edi + 8]
mov dword [esi + 0x14], 0
jmp 0x4fa8b6
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
jmp 0x4faace
cmp byte [esi + 0x14], 0
je 0x4fa9ca
cmp byte [eax + 8], 0
jne 0x4fa9ca
call fcn.00596ac0
jmp 0x4fa9ca
cmp byte [eax + 0x20], 0
je 0x4fa9bb
mov ebx, dword [eax + 0x30]
mov dword [eax + 0x30], 0
test ebx, ebx
je 0x4fa9bb
lock dec dword [ebx]
jne 0x4fa9bb
mov ecx, ebx
call fcn.00584a90
push ebx
call fcn.0050fc7c
add esp, 4
jmp 0x4fa9bb
push 0x6ceba8
call fcn.00408860
add esp, 4
test al, al
je 0x4fadf2
mov dword [0x6cebb0], 0
mov dword [0x6cebac], 0xffffffff
mov ebx, 0x6cebac
mov ecx, 0x6cebac
push 0
call fcn.0040c200
mov dword [0x6ceba8], ebx
jmp 0x4fa7f9
push 0x6cebb4
call fcn.00408860
add esp, 4
test al, al
je 0x4fadfd
mov dword [0x6cebbc], 0
mov dword [0x6cebb8], 0xffffffff
mov ebx, 0x6cebb8
mov ecx, 0x6cebb8
push 0
call fcn.0040c200
mov dword [0x6cebb4], ebx
jmp 0x4fa853
push 0x6cebb4
call fcn.00408860
add esp, 4
test al, al
je 0x4fae08
mov dword [0x6cebbc], 0
mov dword [0x6cebb8], 0xffffffff
mov edi, 0x6cebb8
mov ecx, 0x6cebb8
push 0
call fcn.0040c200
mov dword [0x6cebb4], edi
jmp 0x4fa94f
push 0x6cf5bc
call fcn.00408860
add esp, 4
test al, al
je 0x4fae13
mov dword [0x6cf5c4], 0
mov dword [0x6cf5c0], 0xffffffff
mov edi, 0x6cf5c0
mov ecx, 0x6cf5c0
push 0
call fcn.0040c200
mov dword [0x6cf5bc], edi
jmp 0x4fa981
test ebx, ebx
je 0x4fa972
call fcn.00404220
jmp 0x4fa964
push edi
call fcn.004e3a80
add esp, 4
jmp 0x4fa842
push edi
call fcn.004e3a80
add esp, 4
jmp 0x4fa89c
mov ebx, edx
call fcn.00566ad0
mov edx, ebx
mov ebx, eax
jmp 0x4fa8f4
push ebx
mov dword [esi + 0xc], edx
call fcn.004e3a80
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x4fa91d
lea eax, [esi + 0x30]
mov ecx, ebx
push eax
push 0xf0
push 0
push dword [esi + 4]
mov edi, edx
call fcn.00565a20
mov edx, edi
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
jmp 0x4fa92a
mov eax, dword [eax + 0xc]
cmp eax, dword [ebx + 0x10]
jbe 0x4fa9d4
xor eax, eax
dec eax
mov ebx, edi
lea edi, [esi + 0x28]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call fcn.00504e70
add esp, 4
mov ecx, ebx
call fcn.00565e40
mov ebx, eax
movsd xmm0, qword [edi]
lea edi, [esi + 0x30]
movsd qword [edi], xmm0
mov eax, 8
mov ecx, ebx
push eax
push edi
push eax
push 0xc
push str.timestamp_us
call fcn.00565770
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 0x1f
mov dword [edi + 4], eax
mov dword [edi], ecx
mov ecx, ebx
mov ebx, dword [esi]
mov eax, 8
push eax
push edi
push eax
push 0xd
push str.blocking_type
call fcn.00565770
jmp 0x4fa9d4
mov ecx, ebx
call fcn.005847b0
mov byte [edi + 0x20], 0
jmp 0x4faa05
mov edx, dword [ebx + 4]
mov eax, dword [ecx + 0xf8]
mov ecx, dword [ecx + 0xfc]
cmp dword [ebx], eax
sbb edx, ecx
jge 0x4faae7
mov dword [ebx], eax
mov dword [ebx + 4], ecx
jmp 0x4faae7
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6c02b4]
push dword [0x6c02b0]
push ecx
push eax
call fcn.00517110
jmp 0x4faac4
mov ebx, dword [0x6ceba8]
jmp 0x4fa7f9
mov ebx, dword [0x6cebb4]
jmp 0x4fa853
mov edi, dword [0x6cebb4]
jmp 0x4fa94f
mov edi, dword [0x6cf5bc]
jmp 0x4fa981