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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x275a79db
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x275ba2ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x27525078
lea eax, [ebp - 0x120]
push eax
push 0x27524ff8
mov esi, ecx
lea ecx, [ebp - 0x11c]
push 2
xor edi, edi
push ecx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], edi
call fcn.2753a320
add esp, 0x18
lea ecx, [esi + 0x18]
xor eax, eax
cmp dword [ecx], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], ecx
jne 0x2757148a
mov eax, 0x80048008
cmp eax, ebx
mov dword [ebp - 0x120], eax
jl 0x27571827
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jle 0x275714b2
mov dword [ebp - 0x120], 0x48045
jmp 0x27571827
call fcn.27595010
test al, al
je 0x275714cf
push 0x27524fb0
push 0x27524f30
push 1
call fcn.27595fd0
add esp, 0xc
mov dword [ebp - 0x120], ebx
call fcn.27595010
test al, al
je 0x275714f2
push 0x27524ed0
push 0x27524e50
push 1
call fcn.27595fd0
add esp, 0xc
call fcn.2759c080
cmp byte [eax + 0x71], bl
jne 0x27571519
lea ecx, [esi + 0x154]
call fcn.2755acd0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x27571519
mov dword [ebp - 0x124], eax
mov edi, eax
call fcn.27595010
test al, al
je 0x27571536
push 0x27524e00
push 0x27524d80
push 1
call fcn.27595fd0
add esp, 0xc
lea ecx, [esi + 0x23c]
call fcn.2757a810
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x27571557
cmp edi, ebx
jl 0x27571557
mov dword [ebp - 0x124], eax
mov edi, eax
lea ecx, [esi + 0x108]
call fcn.2757d8e0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275715a5
call fcn.27595010
test al, al
je 0x2757158f
mov edx, dword [ebp - 0x120]
push edx
push 0x27524d18
push 0x27524c98
push ebx
call fcn.27595fd0
add esp, 0x10
mov eax, dword [ebp - 0x120]
cmp eax, ebx
jge 0x275715a5
cmp edi, ebx
jl 0x275715a5
mov dword [ebp - 0x124], eax
mov edi, eax
call fcn.2759c080
mov ecx, eax
call fcn.275978a0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275715c7
cmp edi, ebx
jl 0x275715c7
mov dword [ebp - 0x124], eax
mov edi, eax
call fcn.27595010
test al, al
je 0x275715e4
push 0x27524c48
push 0x27524bc8
push 1
call fcn.27595fd0
add esp, 0xc
cmp dword [esi + 0xb8], ebx
mov dword [ebp - 0x120], ebx
je 0x27571645
call fcn.27595010
test al, al
je 0x2757160f
push 0x27524b8c
push 0x27524b10
push 1
call fcn.27595fd0
add esp, 0xc
mov eax, dword [esi + 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x27571627
call fcn.27539290
jmp 0x2757162f
mov dword [esi + 0xb8], ebx
xor eax, eax
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x27571645
cmp edi, ebx
jl 0x27571645
mov dword [ebp - 0x124], eax
mov edi, eax
cmp dword [esi + 0xbc], ebx
je 0x275716a1
call fcn.27595010
test al, al
je 0x2757166a
push 0x27524ab8
push 0x27524a38
push 1
call fcn.27595fd0
add esp, 0xc
mov ecx, dword [esi + 0xbc]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x27571683
call fcn.27539290
jmp 0x2757168b
mov dword [esi + 0xbc], ebx
xor eax, eax
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275716a1
cmp edi, ebx
jl 0x275716a1
mov dword [ebp - 0x124], eax
mov edi, eax
call fcn.27595010
test al, al
je 0x275716be
push 0x275249e0
push 0x27524960
push 1
call fcn.27595fd0
add esp, 0xc
lea ecx, [esi + 0xc0]
call fcn.2756ffc0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275716dd
cmp edi, ebx
jl 0x275716dd
mov dword [ebp - 0x124], eax
mov edx, dword [0x275bc854]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassW]
push edx
push 0x2751b3b4
call edi
mov eax, dword [0x275bc854]
push eax
push 0x275242e0
call edi
mov eax, dword [esi + 0x2c8]
cmp eax, 0xffffffff
je 0x2757173e
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
jne 0x2757173e
cmp dword [ebp - 0x124], ebx
jl 0x2757173e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x2757172c
call edi
jmp 0x27571738
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x124], eax
mov ecx, dword [0x2752cad8]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x2752cadc]
mov dword [esi + 0x20], edx
mov eax, dword [0x2752cae0]
mov dword [esi + 0x24], eax
mov ecx, dword [0x2752cae4]
mov dword [esi + 0x28], ecx
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x27571781
push ebx
mov ecx, edi
call fcn.2753a760
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jge 0x27571792
push 0x80070057
call fcn.27538a70
mov dword [eax - 0xc], ebx
mov edx, dword [edi]
mov byte [edx], bl
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x275717b9
push ebx
mov ecx, edi
call fcn.27538df0
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jge 0x275717ca
push 0x80070057
call fcn.27538a70
mov dword [eax - 0xc], ebx
mov eax, dword [edi]
mov word [eax], bx
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x34]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x275717f2
push ebx
mov ecx, edi
call fcn.27538df0
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jge 0x27571803
push 0x80070057
call fcn.27538a70
mov edx, dword [ebp - 0x128]
mov dword [eax - 0xc], ebx
mov ecx, dword [edi]
mov edi, dword [ebp - 0x124]
mov word [ecx], bx
mov word [esi + 0x38], bx
mov dword [esi + 0x208], 0xffffffff
mov dword [edx], ebx
mov eax, dword [0x275bb94c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x2757184c
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x275bb94c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp edi, ebx
jge 0x2757185e
cmp dword [ebp - 0x120], ebx
jl 0x2757185e
mov dword [ebp - 0x120], edi
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.2753a430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.2757f388
mov esp, ebp
pop ebp
ret