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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x775148
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x69bc80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x34], 0x6a0f08
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x70c135
cmp ebx, ecx
je 0x70c135
movzx eax, byte [ebp + 8]
dec eax
mov byte [ebp - 4], 1
lea esi, [ecx + 1]
cmp eax, 0x52
ja case.0x70bfe7.6
movzx edx, byte [eax + 0x70c1bc]
jmp dword [edx*4 + 0x70c1a4]
push edi
lea ecx, [ebp - 0x34]
call fcn.006eb4f0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x70bf77
sub eax, edx
lea edi, [eax + eax + 2]
jmp 0x70bfc7
push edi
lea ecx, [ebp - 0x34]
call fcn.006ebd30
mov edi, dword [ebp - 0x1c]
inc edi
jmp 0x70bfc7
xor eax, eax
cmp eax, 0xffff
jge 0x70bfac
cmp byte [edi + eax*2], 0
jne 0x70bfee
cmp byte [edi + eax*2 + 1], 0
jne 0x70bfee
inc eax
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.006ec630
mov eax, dword [ebp - 0x1c]
lea edi, [eax + eax]
shr edi, 1
cmp esi, 1
jne 0x70c078
mov esi, dword [ebp + 0x14]
push esi
push 0
push ebx
call fcn.00755e40
movzx eax, byte [ebp + 8]
dec eax
add esp, 0xc
cmp eax, 0x53
ja case.0x70bfe7.6
movzx ecx, byte [eax + 0x70c228]
jmp dword [ecx*4 + 0x70c210]
inc eax
jmp 0x70bf97
push edi
lea ecx, [ebp - 0x34]
call fcn.006ec2b0
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x70c000
sub eax, edx
lea edi, [eax + eax + 2]
jmp 0x70bfc7
push edi
lea ecx, [ebp - 0x34]
call fcn.006ec2b0
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x70c020
sub eax, edx
lea edi, [eax + eax + 2]
jmp 0x70bfc7
mov ecx, dword [ebp - 0x3c]
push 0x69
xor esi, esi
call fcn.00703780
jmp 0x70c118
mov edx, dword [ebp - 0x38]
mov ebx, esi
push 1
shr ebx, 1
push ebx
push edx
lea ecx, [ebp - 0x34]
call fcn.006eb580
mov esi, eax
cmp esi, ebx
jb 0x70c062
inc esi
cmp edi, esi
jbe 0x70c078
mov esi, edi
jmp 0x70c078
inc esi
jmp 0x70c078
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.006eb410
mov esi, eax
test esi, esi
jne 0x70c0b4
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x70c0cc
mov ecx, dword [ebp - 0x3c]
push 0x69
call fcn.00703780
jmp 0x70c118
mov eax, dword [ebp - 0x38]
mov ebx, esi
push 1
shr ebx, 1
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.006eb7b0
mov esi, eax
test esi, esi
jne 0x70c055
jmp 0x70c075
push 1
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.006eb6a0
mov esi, eax
cmp esi, dword [ebp + 0x14]
jmp 0x70c057
push 1
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.006eba30
mov esi, eax
cmp esi, dword [ebp + 0x14]
jmp 0x70c057
mov eax, dword [ebp + 0x14]
cmp esi, eax
jb 0x70c0ef
mov esi, dword [ebp - 0x1c]
lea esi, [esi*4 + 4]
cmp esi, eax
ja 0x70c0e3
mov esi, eax
mov ecx, dword [ebp - 0x3c]
push 0x70
call fcn.00703780
jmp 0x70c118
mov ecx, dword [ebp - 0x3c]
push 0
call fcn.00703780
jmp 0x70c118
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0x6a0f08
jb 0x70c131
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00755e35
add esp, 4
mov eax, esi
jmp 0x70c186
mov edx, dword [0x7cad84]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x70c165
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x70c165
mov eax, dword [0x7cad84]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x69
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0x6a0f08
jb 0x70c184
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00755e35
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.007562ca
mov esp, ebp
pop ebp
ret 0x10