Function at 0x27552150
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x275a7a31
mov eax, dword fs:[0]
push eax
sub esp, 0x120
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
mov esi, ecx
mov eax, dword [esi + 0x24]
movzx ecx, byte [ebp + 8]
push eax
push esi
push ecx
push 0x27511c18
push 0x27511bd0
lea edx, [ebp - 0x120]
push edx
push 0x27511b60
lea eax, [ebp - 0x11c]
push 2
xor ebx, ebx
push eax
mov dword [ebp - 0x120], ebx
call fcn.2753a320
add esp, 0x24
cmp dword [esi + 0x158], ebx
mov dword [ebp - 4], ebx
je 0x275525a1
cmp byte [esi + 0x160], bl
jne 0x275525a1
cmp dword [esi + 0x70], 0x80048852
jne 0x2755228c
mov ecx, dword [esi + 0x88]
cmp ecx, 5
lea edi, [esi + 0x88]
jge 0x2755228c
cmp dword [esi + 0x164], ebx
je 0x2755228c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.27595010
test al, al
je 0x2755224b
lea edx, [ebp - 0x12c]
push edx
mov ecx, esi
call fcn.2754f400
mov eax, dword [eax]
push eax
mov eax, dword [edi]
push eax
push 0x27511b38
push 0x27511ac8
push ebx
mov byte [ebp - 4], 1
call fcn.27595fd0
add esp, 0x14
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.2753a510
mov ecx, esi
call fcn.2754f050
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275525a1
call fcn.27595010
test al, al
je 0x275525a1
mov ecx, dword [ebp - 0x120]
push ecx
push 0x27511a58
push 0x275119e8
push ebx
call fcn.27595fd0
add esp, 0x10
jmp 0x275525a1
mov eax, dword [esi + 0x70]
cmp eax, 0x8004885c
je 0x275522a1
cmp eax, 0x8004885d
jne 0x2755235f
mov edx, dword [esi + 0x8c]
cmp edx, 3
lea edi, [esi + 0x8c]
jge 0x2755235f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.27595010
test al, al
je 0x275522dd
mov eax, dword [edi]
push eax
push 0x275112b8
push 0x27511978
push 3
call fcn.27595fd0
add esp, 0x10
mov ecx, dword [esi + 0x168]
call fcn.2756de00
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x2755231e
call fcn.27595010
test al, al
je 0x275525a1
mov ecx, dword [ebp - 0x120]
push ecx
push 0x275111c0
push 0x27511908
push ebx
call fcn.27595fd0
add esp, 0x10
jmp 0x275525a1
mov ecx, esi
call fcn.2754f210
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x275525a1
call fcn.27595010
test al, al
je 0x275525a1
mov edx, dword [ebp - 0x120]
push edx
push 0x275110c8
push 0x27511898
push ebx
call fcn.27595fd0
add esp, 0x10
jmp 0x275525a1
mov eax, dword [0x275bc8c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x275bc8c4
call edx
add eax, 0x10
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 2
mov byte [ebp - 0x121], bl
call fcn.27595010
test al, al
je 0x275523a6
mov eax, dword [esi + 0x15c]
push eax
push esi
push 0x27511818
push 0x275117a8
push 3
call fcn.27595fd0
add esp, 0x14
lea ecx, [ebp - 0x128]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x27511784
call fcn.275391c0
mov ecx, esi
call fcn.2754fde0
cmp dword [esi + 0x188], ebx
je 0x27552402
cmp dword [esi + 0x68], ebx
jl 0x275523d9
cmp dword [esi + 0x6c], ebx
jge 0x27552402
mov eax, dword [esi + 0x70]
cmp eax, 0x80048820
je 0x27552402
cmp eax, 0x80048842
je 0x27552402
push 0x27511780
lea ecx, [ebp - 0x128]
call fcn.2754eea0
test eax, eax
je 0x27552402
mov byte [ebp + 8], 1
mov ecx, dword [esi + 0x188]
cmp ecx, ebx
je 0x2755246b
cmp byte [ebp + 8], bl
jne 0x2755246b
call fcn.27558cc0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x27552453
call fcn.27595010
test al, al
je 0x27552443
mov edx, dword [ebp - 0x120]
push edx
push 0x27511738
push 0x275116c8
push ebx
call fcn.27595fd0
add esp, 0x10
lea ecx, [ebp - 0x128]
call fcn.2753a510
jmp 0x275525a1
mov ecx, dword [esi + 0x188]
push ebx
call fcn.275591d0
mov dword [esi + 0x188], ebx
mov dword [ebp - 0x120], ebx
mov eax, dword [0x275bbc60]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x275524be
call fcn.27595010
test al, al
je 0x275524be
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x27552496
call edi
jmp 0x275524a2
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [0x275bbc60]
push eax
push ecx
push 0x27511670
push 0x27511600
push 1
call fcn.27595fd0
add esp, 0x14
cmp dword [esi + 0x188], ebx
je 0x275524cd
mov byte [ebp - 0x121], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x15c]
mov ecx, dword [esi + 0x158]
push edx
push eax
push esi
call ecx
cmp byte [ebp - 0x121], bl
mov dword [ebp - 0x120], eax
je 0x2755255f
cmp eax, ebx
jge 0x27552545
mov ecx, dword [esi + 0x188]
call fcn.27558cc0
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x2755252b
call fcn.27595010
test al, al
je 0x27552443
mov edx, dword [ebp - 0x120]
push edx
push 0x27511738
push 0x27511590
jmp 0x2755243a
mov ecx, dword [esi + 0x188]
push ebx
call fcn.275591d0
mov dword [esi + 0x188], ebx
mov dword [ebp - 0x120], ebx
jmp 0x2755255f
cmp byte [ebp + 8], bl
je 0x2755255f
mov ecx, dword [esi + 0x188]
cmp ecx, ebx
je 0x2755255f
call fcn.2755d7a0
mov dword [ebp - 0x120], eax
call fcn.27595010
test al, al
je 0x2755257c
push 0x27511550
push 0x275114e0
push 3
call fcn.27595fd0
add esp, 0xc
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x275525a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4