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

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0xc0
push 0xffffffffffffffff
push 0x4e935e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x417270]
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 [0x53e204]
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 0x48a2a9
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x48a2a9
mov eax, dword [0x53e204]
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 0x48a2da
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.0049ef30
test al, al
jne 0x48a2da
mov ecx, dword [ebp - 0x14]
push 0x71
call fcn.0047e020
xor eax, eax
jmp 0x48a615
cmp dword [ebp - 0x18], ebx
jne 0x48a31d
cmp dword [ebp + 0xd4], ebx
je 0x48a325
mov dword [ebp - 0x50], 0x418d24
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 0x48a336
mov edx, dword [ebp + 0xd4]
mov ecx, dword [ebp - 0x14]
push edx
push esi
call fcn.00488b30
mov ebx, dword [ebp + 0xc8]
jmp 0x48a355
cmp dword [ebp + 0xd4], ebx
je 0x48a2e7
mov ecx, dword [ebp - 0x14]
push 0x69
call fcn.0047e020
xor eax, eax
jmp 0x48a615
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.00488fd0
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004904f0
mov byte [ebp - 4], 1
cmp edi, 7
jne 0x48a3a4
test esi, esi
jne 0x48a38b
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.0048a0d0
jmp 0x48a5a1
mov eax, dword [ebp + 0xd4]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push esi
call fcn.0048a0d0
jmp 0x48a5a1
cmp edi, 4
jne 0x48a594
cmp dword [ebp - 0x18], 0
lea eax, [edi - 2]
jne 0x48a3bb
mov eax, 0x1002
push eax
lea ecx, [ebp]
call fcn.004a6280
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test edi, edi
jne 0x48a415
call fcn.00466a60
push eax
lea ecx, [ebp + 0x9c]
call fcn.0046dff0
push edi
lea edx, [ebp + 0x9c]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004a7ae0
lea ecx, [ebp + 0x9c]
mov byte [ebp - 4], 3
call fcn.004a5ea0
mov eax, dword [ebp + 0xd4]
push eax
push esi
lea ecx, [ebp]
call fcn.004a6000
jmp 0x48a472
lea ecx, [ebp + 0x9c]
call fcn.0046d7f0
and ebx, 0xf00
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp + 0x9c]
cmp ebx, 0x100
je 0x48a44f
cmp ebx, 0x200
je 0x48a448
call fcn.00466fc0
jmp 0x48a454
call fcn.00467220
jmp 0x48a454
call fcn.00466660
lea ecx, [ebp + 0x9c]
push ecx
lea ecx, [ebp]
call fcn.004a7bd0
lea ecx, [ebp + 0x9c]
mov byte [ebp - 4], 3
call fcn.004a5ea0
lea ecx, [ebp]
call fcn.004a69f0
test al, al
je 0x48a53f
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
jbe 0x48a48f
call fcn.004caf0d
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x28], edi
jbe 0x48a49f
call fcn.004caf0d
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48a4aa
cmp eax, ebx
je 0x48a4af
call fcn.004caf0d
cmp edi, esi
jne 0x48a4d7
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.00489a80
jmp 0x48a472
test ebx, ebx
jne 0x48a533
call fcn.004caf0d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x48a4ec
call fcn.004caf0d
mov edx, dword [ebp + 0x24]
cmp dword [esi], edx
jne 0x48a516
test ebx, ebx
jne 0x48a537
call fcn.004caf0d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x48a508
call fcn.004caf0d
mov ax, word [ebp + 0x20]
cmp word [esi + 4], ax
je 0x48a472
test ebx, ebx
jne 0x48a53b
call fcn.004caf0d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x48a52b
call fcn.004caf0d
add esi, 8
jmp 0x48a492
mov eax, dword [ebx]
jmp 0x48a4e2
mov eax, dword [ebx]
jmp 0x48a4fe
mov eax, dword [ebx]
jmp 0x48a521
lea ecx, [ebp]
mov dword [ebp - 4], 2
call fcn.004a7930
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004a60c0
jmp 0x48a5a1
mov ecx, dword [ebp - 0x14]
push 0xdc
call fcn.0047e020
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov eax, esi
sub eax, edi
sar eax, 3
test eax, eax
je 0x48a5e2
mov ebx, dword [ebp + 0xdc]
cmp ebx, eax
jb 0x48a5be
mov ebx, eax
test eax, eax
ja 0x48a5cd
call fcn.004caf0d
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.004cb570
add esp, 0xc
sub esi, edi
xor ebx, ebx
sar esi, 3
cmp edi, ebx
je 0x48a5f6
push edi
call fcn.004cada5
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.004cada5
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.0042a080
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.004cb3aa
add ebp, 0xc0
mov esp, ebp
pop ebp
ret 0x18