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

Disassembly:
push 0xffffffffffffffff
push 0x5456c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
push 4
lea eax, [esp + 0x78]
push eax
xor edi, edi
call fcn.004ee390
test al, al
jne 0x4d1869
mov ecx, dword [0x59cfc4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4d185c
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4d185c
mov edx, dword [0x59cfc4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x72
mov eax, edi
jmp 0x4d1a4f
cmp dword [esp + 0x74], 0xffff
jbe 0x4d18b0
mov eax, dword [0x59cfc4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4d18a3
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4d18a3
mov ecx, dword [0x59cfc4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x72
mov eax, edi
jmp 0x4d1a4f
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4d1907
mov edx, dword [esp + 0x7c]
push eax
push edx
call fcn.004ee390
test al, al
jne 0x4d1907
mov eax, dword [0x59cfc4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4d18fa
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4d18fa
mov ecx, dword [0x59cfc4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x71
mov eax, edi
jmp 0x4d1a4f
mov edi, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
lea eax, [edi + edi*8]
shl eax, 4
test eax, eax
je 0x4d1967
push eax
push ebp
call fcn.004ee390
test al, al
jne 0x4d1967
mov edx, dword [0x59cfc4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4d195a
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4d195a
mov eax, dword [0x59cfc4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x71
xor eax, eax
jmp 0x4d1a4f
mov esi, dword [esp + 0x90]
lea eax, [esi + esi*8]
shl eax, 4
test eax, eax
je 0x4d198a
mov ecx, dword [esp + 0x8c]
push eax
push ecx
call fcn.004ee390
test al, al
je 0x4d192a
mov ecx, dword [esp + 0x94]
push 4
push ecx
call fcn.004ee390
test al, al
je 0x4d192a
lea ecx, [esp + 0x14]
call fcn.004edfc0
mov ecx, dword [esp + 0x74]
push ecx
lea ecx, [ebx + 0x6c]
mov dword [esp + 0x70], 0
call fcn.004ca7c0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x80]
push esi
push edi
push ebp
push edx
mov edx, dword [esp + 0x88]
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004edaf0
push 0
lea ecx, [esp + 0x18]
call fcn.004edbc0
push eax
lea ecx, [esp + 0x1c]
call fcn.004edba0
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x28]
call fcn.004eeba0
test al, al
jne 0x4d1a21
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004eda50
xor eax, eax
jmp 0x4d1a4f
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x8c]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004edbd0
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x6c], 0xffffffff
call fcn.004eda50
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x24