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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x4d3094]
mov esi, ecx
test eax, eax
je 0x48b6f9
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b64f
cmp dword [eax + 4], 0
mov edi, eax
jne 0x48b6f4
mov eax, dword [0x4d3094]
test eax, eax
je 0x48b71a
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b736
mov edi, eax
test eax, eax
jne 0x48b6b2
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b753
mov dword [eax], 0x4d3094
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4d3094]
test eax, eax
je 0x48b741
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x48b6c7
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x48b6c9
mov eax, dword [esi + 4]
jmp 0x48b6c9
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x48b6f4
test ecx, ecx
je 0x48b6f4
lock dec dword [ecx]
jne 0x48b6f4
lea ecx, [ebp - 0xc]
call fcn.00442cd0
add edi, 8
jmp 0x48b738
push 0x4d3094
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b643
jmp 0x48b64f
push 0x4d3094
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b66c
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebp
ret
push 0x4d3094
call fcn.00480f80
add esp, 4
jmp 0x48b6ab
push 0xc
push 4
call fcn.004a7010
nop dword [eax]
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x4d30a4]
test eax, eax
je 0x48b85c
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b790
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x48b857
mov eax, dword [0x4d30a4]
test eax, eax
je 0x48b87d
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b899
mov esi, eax
test eax, eax
jne 0x48b7fa
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 8
push 0x20
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b8b5
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x4d30a4
mov esi, eax
mov eax, dword [0x4d30a4]
test eax, eax
je 0x48b8a3
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x48b819
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x48b846
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x48b838
movaps xmm0, xmmword [esp]
jmp 0x48b846
lea ecx, [esp + 0x10]
call fcn.00480050
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x48b89b
push 0x4d30a4
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b783
jmp 0x48b790
push 0x4d30a4
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b7ad
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x4d30a4
call fcn.00480f80
add esp, 4
jmp 0x48b7f3
push 0x20
push 8
call fcn.004a7010
nop