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

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0xc0
push 0xffffffffffffffff
push 0x77564e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x69bc80]
xor eax, ebp
mov dword [ebp + 0xbc], 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 - 0x14], ecx
mov edx, dword [0x7cad84]
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebp + 0xd8]
mov esi, dword [ebp + 0xd0]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x70fae9
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x70fae9
mov eax, dword [0x7cad84]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0xdc]
add eax, eax
add eax, eax
add eax, eax
mov dword [edi], ebx
cmp eax, ebx
je 0x70fb1a
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.00724c70
test al, al
jne 0x70fb1a
mov ecx, dword [ebp - 0x14]
push 0x71
call fcn.00703780
xor eax, eax
jmp 0x70fe55
cmp dword [ebp - 0x18], ebx
jne 0x70fb5d
cmp dword [ebp + 0xd4], ebx
je 0x70fb65
mov dword [ebp - 0x50], 0x69d7b0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x70fb76
mov edx, dword [ebp + 0xd4]
mov ecx, dword [ebp - 0x14]
push edx
push esi
call fcn.0070e370
mov ebx, dword [ebp + 0xc8]
jmp 0x70fb95
cmp dword [ebp + 0xd4], ebx
je 0x70fb27
mov ecx, dword [ebp - 0x14]
push 0x69
call fcn.00703780
xor eax, eax
jmp 0x70fe55
mov ebx, dword [ebp + 0xc8]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
and ecx, 0xf00
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.0070e810
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00712ea0
mov byte [ebp - 4], 1
cmp edi, 7
jne 0x70fbe4
test esi, esi
jne 0x70fbcb
mov eax, dword [ebp - 0x48]
mov esi, eax
neg esi
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
sbb esi, esi
and esi, dword [ebp - 0x4c]
push eax
push esi
call fcn.0070f910
jmp 0x70fde1
mov eax, dword [ebp + 0xd4]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push esi
call fcn.0070f910
jmp 0x70fde1
cmp edi, 4
jne 0x70fdd4
cmp dword [ebp - 0x18], 0
lea eax, [edi - 2]
jne 0x70fbfb
mov eax, 0x1002
push eax
lea ecx, [ebp]
call fcn.0072c050
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test edi, edi
jne 0x70fc55
call fcn.006eb860
push eax
lea ecx, [ebp + 0x9c]
call fcn.006f2bf0
push edi
lea edx, [ebp + 0x9c]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.0072d8b0
lea ecx, [ebp + 0x9c]
mov byte [ebp - 4], 3
call fcn.007158a0
mov eax, dword [ebp + 0xd4]
push eax
push esi
lea ecx, [ebp]
call fcn.0072bdd0
jmp 0x70fcb2
lea ecx, [ebp + 0x9c]
call fcn.006f23b0
and ebx, 0xf00
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp + 0x9c]
cmp ebx, 0x100
je 0x70fc8f
cmp ebx, 0x200
je 0x70fc88
call fcn.006ebe80
jmp 0x70fc94
call fcn.006ec030
jmp 0x70fc94
call fcn.006eb450
lea ecx, [ebp + 0x9c]
push ecx
lea ecx, [ebp]
call fcn.0072d9a0
lea ecx, [ebp + 0x9c]
mov byte [ebp - 4], 3
call fcn.007158a0
lea ecx, [ebp]
call fcn.0072c7c0
test al, al
je 0x70fd7f
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
jbe 0x70fccf
call fcn.007564b6
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x28], edi
jbe 0x70fcdf
call fcn.007564b6
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x70fcea
cmp eax, ebx
je 0x70fcef
call fcn.007564b6
cmp edi, esi
jne 0x70fd17
mov dx, word [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], dx
mov dword [ebp - 0x1c], eax
call fcn.0070f2c0
jmp 0x70fcb2
test ebx, ebx
jne 0x70fd73
call fcn.007564b6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x70fd2c
call fcn.007564b6
mov edx, dword [ebp + 0x24]
cmp dword [esi], edx
jne 0x70fd56
test ebx, ebx
jne 0x70fd77
call fcn.007564b6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x70fd48
call fcn.007564b6
mov ax, word [ebp + 0x20]
cmp word [esi + 4], ax
je 0x70fcb2
test ebx, ebx
jne 0x70fd7b
call fcn.007564b6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x70fd6b
call fcn.007564b6
add esi, 8
jmp 0x70fcd2
mov eax, dword [ebx]
jmp 0x70fd22
mov eax, dword [ebx]
jmp 0x70fd3e
mov eax, dword [ebx]
jmp 0x70fd61
lea ecx, [ebp]
mov dword [ebp - 4], 2
call fcn.0072d700
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0072be90
jmp 0x70fde1
mov ecx, dword [ebp - 0x14]
push 0xdc
call fcn.00703780
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov eax, esi
sub eax, edi
sar eax, 3
test eax, eax
je 0x70fe22
mov ebx, dword [ebp + 0xdc]
cmp ebx, eax
jb 0x70fdfe
mov ebx, eax
test eax, eax
ja 0x70fe0d
call fcn.007564b6
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
lea ecx, [ebx*8]
push ecx
push edi
push edx
call fcn.00756630
add esp, 0xc
sub esi, edi
xor ebx, ebx
sar esi, 3
cmp edi, ebx
je 0x70fe36
push edi
call fcn.00755e35
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00755e35
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.006aece0
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 + 0xbc]
xor ecx, ebp
call fcn.007562ca
add ebp, 0xc0
mov esp, ebp
pop ebp
ret 0x18