Function at 0x4fd7d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov ebx, ecx
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov byte [esp + 0x30], 0
pxor xmm0, xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x68], xmm0
mov al, byte [ecx + 4]
mov byte [esp + 0xb], al
test al, al
je 0x4fda55
call fcn.004ee180
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov ecx, dword [0x6bede4]
xor esi, esi
test ecx, ecx
jne 0x4fdad4
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
jb 0x4fdae0
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x6ca4fc], 1
test esi, esi
jne 0x4fdaee
xor eax, eax
dec eax
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
push 0x42
push str....._base_synchronizationwaitable_event_win.cc
push str.Wait
push edi
call fcn.004fdcd0
add esp, 0x10
lea ecx, [esp + 0x38]
push 1
push 0
push edi
call fcn.004fa7d0
test byte [0x5f5168], 0x19
jne 0x4fdb04
mov byte [esp + 0x30], 1
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esp + 0x30], 0
je 0x4fda16
test byte [0x5f5168], 0x19
jne 0x4fdb21
call fcn.00510cbf
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.00510cbf
xor edi, edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [0x6cebb4]
cmp edi, 1
jbe 0x4fda81
mov ebx, dword [esp + 0x3c]
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4fdac2
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 ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4fd962
cmp dword [esp + 0x3c], 0
je 0x4fda61
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00510cbf
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
cmp byte [esp + 0x58], 0
jne 0x4fda6b
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4fdb43
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x4c], 0
test edi, edi
jne 0x4fdb96
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jne 0x4fdbab
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6c24fc]
bt edx, ecx
jb 0x4fdbc2
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x3c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6c24fc]
bt edx, ecx
jb 0x4fdbd0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x38]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6c24fc]
bt edx, ecx
jb 0x4fdbde
cmp byte [esp + 0xb], 0
je 0x4fda3f
test esi, esi
jne 0x4fdbec
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6c24fc]
bt ecx, eax
jb 0x4fdc19
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00512ee3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
dec esi
mov dword [esp + 0xc], esi
jmp 0x4fd8d2
call fcn.00407cf0
jmp 0x4fd962
mov edi, dword [esp + 0x68]
test edi, edi
jne 0x4fdc27
mov byte [esp + 0x58], 0
jmp 0x4fd982
push 0x6cebb4
call fcn.00408860
add esp, 4
test al, al
je 0x4fdca1
xor eax, eax
mov dword [0x6cebbc], eax
mov dword [0x6cebb8], 0xffffffff
mov edi, 0x6cebb8
mov ecx, 0x6cebb8
push eax
call fcn.0040c200
mov dword [0x6cebb4], edi
jmp 0x4fd928
test ebx, ebx
je 0x4fd94f
call fcn.00404220
jmp 0x4fd941
call fcn.00566ad0
mov esi, eax
jmp 0x4fd864
push esi
call fcn.004e3a80
add esp, 4
jmp 0x4fd88a
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x30
push 0
push edi
call fcn.00565a20
jmp 0x4fd895
lea eax, [esp + 0x2c]
mov dword [eax], edi
mov ecx, str.ScopedBlockingCallWithBaseSyncPrimitives
xor edx, edx
push eax
push 0
call fcn.0056c4f0
add esp, 8
jmp 0x4fd8cd
xor eax, eax
push eax
push eax
push 0x5e2088
push 0x5db484
push 0x5f5168
push 0x45
call fcn.005553e0
add esp, 0x18
jmp 0x4fd8f4
mov ecx, dword [esp + 0x48]
cmp dword [eax + 0xc], ecx
jbe 0x4fd98e
mov eax, dword [eax + 8]
shl ecx, 7
cmp dword [eax + ecx + 0x68], 0
je 0x4fd98e
mov ebx, dword [0x6bede4]
lea edi, [ebx + 0x74]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4fdcac
add ebx, 0x48
mov ecx, dword [esp + 0x44]
push ebx
push dword [esp + 0x4c]
call fcn.00565de0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4fd98e
mov ecx, edi
call fcn.00565540
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4fd9a2
mov eax, dword [ecx + 4]
lock dec dword [eax + 0x38]
mov eax, dword [ecx + 4]
lock inc dword [eax + 0x3c]
mov eax, dword [esp + 0x44]
jmp 0x4fd9b0
push eax
call fcn.004e3ba0
add esp, 4
jmp 0x4fd9ca
push eax
call fcn.004e3ba0
add esp, 4
jmp 0x4fd9f0
push eax
call fcn.004e3ba0
add esp, 4
jmp 0x4fda16
mov eax, dword [esp + 0xc]
cmp dword [esi + 0xc], eax
jbe 0x4fdc06
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xc]
shl ecx, 7
cmp dword [eax + ecx + 0x68], 0
jne 0x4fdc72
mov eax, dword [esi + 4]
lock dec dword [eax + 0x38]
mov eax, dword [esi + 4]
lock inc dword [eax + 0x3c]
jmp 0x4fda25
push esi
call fcn.004e3ba0
add esp, 4
jmp 0x4fda3f
lea ebx, [esp + 0x18]
push ebx
call fcn.00504e70
add esp, 4
mov ecx, edi
push dword [ebx + 4]
push dword [ebx]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.00584820
mov edi, dword [esp + 0x68]
test edi, edi
je 0x4fda77
lock dec dword [edi]
jne 0x4fda77
mov ecx, edi
call fcn.00584a90
push edi
call fcn.0050fc7c
add esp, 4
jmp 0x4fda77
mov ebx, dword [0x6bede4]
lea edi, [ebx + 0x74]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4fdcb8
add ebx, 0x48
mov ecx, esi
push ebx
push dword [esp + 0x10]
call fcn.00565de0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4fdc06
mov edi, dword [0x6cebb4]
jmp 0x4fd928
mov ecx, edi
call fcn.004f8930
jmp 0x4fdb79
mov ecx, edi
call fcn.004f8930
jmp 0x4fdc86