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

Disassembly:
push ebp
lea ebp, [esp - 0x46c]
sub esp, 0x46c
push 0xffffffffffffffff
push 0x5462b1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x463df0]
xor eax, ebp
mov dword [ebp + 0x468], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [0x59cfc4]
mov eax, dword [ebp + 0x474]
mov edi, dword [ebp + 0x47c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x480]
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4da579
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4da579
mov eax, dword [0x59cfc4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 4
lea ecx, [ebp - 0x24]
push ecx
mov dword [esi], ebx
call fcn.004ee390
test al, al
je 0x4da595
mov esi, dword [ebp - 0x24]
cmp esi, 0xffff
jbe 0x4da5a4
mov ecx, dword [ebp - 0x14]
push 0x72
call fcn.004cc3d0
jmp 0x4da7e4
cmp edi, ebx
jne 0x4da668
cmp dword [ebp + 0x484], ebx
je 0x4da674
push 0x90
lea edx, [ebp + 0x24c]
push ebx
push edx
call fcn.00526600
add esp, 0xc
push 0x90
lea eax, [ebp + 0x24c]
push eax
push 1
push esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004d3ec0
cmp eax, 0x90
jne 0x4da7e4
mov eax, 2
cmp edi, ebx
jne 0x4da5ff
mov eax, 0x1002
push eax
lea ecx, [ebp + 0x38c]
call fcn.004d99b0
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x4da683
call fcn.004b5900
push eax
lea ecx, [ebp + 0x448]
call fcn.004bc340
push ebx
lea ecx, [ebp + 0x448]
push ecx
lea ecx, [ebp + 0x38c]
mov byte [ebp - 4], 2
call fcn.004f92a0
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004bbaf0
mov edx, dword [ebp + 0x484]
mov eax, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp + 0x38c]
call fcn.004f77c0
jmp 0x4da715
cmp dword [ebp + 0x484], ebx
je 0x4da5b8
mov ecx, dword [ebp - 0x14]
push 0x69
call fcn.004cc3d0
jmp 0x4da7e4
lea ecx, [ebp + 0x448]
call fcn.004bbad0
mov eax, dword [ebp + 0x478]
and eax, 0xf00
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp + 0x448]
cmp eax, 0x100
je 0x4da6c0
cmp eax, 0x200
je 0x4da6b9
call fcn.004b5f20
jmp 0x4da6c5
call fcn.004b60c0
jmp 0x4da6c5
call fcn.004b5500
lea ecx, [ebp + 0x448]
call fcn.004bba00
cmp al, bl
jne 0x4da6f4
push 0xdc
mov ecx, esi
call fcn.004cc3d0
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004bbaf0
jmp 0x4da7d2
lea ecx, [ebp + 0x448]
push ecx
lea ecx, [ebp + 0x38c]
call fcn.004f9390
lea ecx, [ebp + 0x448]
mov byte [ebp - 4], 1
call fcn.004bbaf0
push 0xb0
lea edx, [ebp + 0x2dc]
push ebx
push edx
mov dword [ebp - 4], ebx
call fcn.00526600
mov ecx, 0x24
lea esi, [ebp + 0x24c]
lea edi, [ebp + 0x2fc]
mov dword [ebp + 0x2dc], 0x10100
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x250]
mov ecx, dword [ebp + 0x24e]
push eax
push ecx
lea ecx, [ebp + 0x38c]
call fcn.004f8250
test al, al
je 0x4da9b0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x2f4]
push eax
lea ecx, [ebp + 0x2e8]
push ecx
lea edx, [ebp + 0x2e4]
push edx
lea eax, [ebp + 0x2e0]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp + 0x38c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004fa120
mov dword [ebp - 0x34], eax
mov ecx, edi
cmp eax, ebx
jne 0x4da80d
push 0xdc
call fcn.004cc3d0
lea ecx, [ebp + 0x38c]
call fcn.004f90f0
lea ecx, [ebp + 0x38c]
mov dword [ebp - 4], 0xffffffff
call fcn.004d9a20
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 + 0x468]
xor ecx, ebp
call fcn.00526a8a
add ebp, 0x46c
mov esp, ebp
pop ebp
ret 0x14
push ebx
lea eax, [ebp + 0x2dc]
push eax
push 2
call fcn.004d3580
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x4da886
cmp dword [ebp + 0x2e4], ebx
je 0x4da87e
call fcn.004bb230
push ebx
xor ecx, ecx
lea edx, [ebp + 0x2dc]
push edx
mov word [ebp + 0x2f4], cx
push 2
mov ecx, edi
mov dword [ebp - 0x30], eax
mov dword [ebp + 0x2dc], 0x110100
mov dword [ebp + 0x2e4], ebx
call fcn.004d3580
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x4da874
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b7340
add esp, 4
mov dword [ebp + 0x2dc], 0x10100
cmp esi, ebx
je 0x4da94c
cmp dword [ebp - 0x1c], ebx
je 0x4da8e8
push 0x24c
lea ecx, [ebp]
push ebx
push ecx
call fcn.00526600
push 0x24c
lea edx, [ebp]
push edx
push 5
push esi
call fcn.004badc0
add esp, 0x1c
cmp eax, ebx
je 0x4da8e8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x4da8e8
push esi
mov ecx, edi
call fcn.004cf640
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x1c]
mov ecx, edi
jbe 0x4da8de
push 0xe5
call fcn.004cc3d0
mov byte [ebp - 4], bl
jmp 0x4da753
push 0xe4
jmp 0x4da7c2
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push ebx
push ebx
push edx
push eax
push ecx
push esi
mov ecx, edi
call fcn.004d45f0
cmp eax, ebx
jne 0x4da935
mov edx, dword [0x59cfc4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x4da915
mov ebx, dword [eax]
lea ecx, [ebp + 0x38c]
call fcn.004f90f0
push esi
mov ecx, edi
call fcn.004cf640
push ebx
mov ecx, edi
call fcn.004cc3d0
jmp 0x4da7d2
push esi
mov ecx, edi
call fcn.004cf640
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], ebx
jmp 0x4da750
mov eax, dword [0x59cfc4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
jne 0x4da960
xor esi, esi
jmp 0x4da962
mov esi, dword [eax]
lea ecx, [ebp + 0x38c]
call fcn.004f90f0
push ebx
mov ecx, edi
call fcn.004cf640
push esi
mov ecx, edi
call fcn.004cc3d0
jmp 0x4da7d2
mov esi, dword [ebp - 0x18]
cmp esi, ebx
jne 0x4da9c3
push 0xc9
mov ecx, edi
call fcn.004cc3d0
lea ecx, [ebp + 0x38c]
mov dword [ebp - 4], 0xffffffff
call fcn.004d9a20
mov eax, esi
jmp 0x4da7e6