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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de1d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov esi, dword [edi]
mov dword [ebp - 0x18], esi
cmp esi, dword [edi + 4]
je 0x41fb6d
cmp byte [esi + 4], 0
je 0x41fb4c
push dword [0x5357c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x41f9d3
push 0x400
call fcn.00493f75
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040e220
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
push ebx
push dword [0x5357c0]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp + 8]
lea eax, [ebp - 0x48]
add ebx, 0x300
push eax
mov eax, dword [esi]
mov dword [ebp - 0x28], ebx
call eax
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x41faec
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0x10]
jb 0x41fa44
cmp dword [eax + 0x314], 8
lea ecx, [eax + 0x314]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi]
jb 0x41fa1f
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [ebx], ecx
jmp 0x41faca
mov eax, dword [eax + 0x310]
mov dword [ebp - 0x18], ecx
add eax, 1
je 0x41fa3d
add eax, eax
push eax
push ebx
push edi
call fcn.004ac550
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx], ecx
jmp 0x41faca
add eax, 0x314
mov dword [ebp - 0x14], eax
cmp dword [eax], 8
jae 0x41faa4
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], 0
cmp eax, edi
mov edx, edi
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 8
mov dword [ebp - 0x20], ecx
cmp edi, eax
ja 0x41faca
mov esi, ebx
mov ebx, ecx
sub esi, edi
mov edi, dword [ebp - 0x1c]
nop word [eax + eax]
mov ax, word [edx + esi]
lea edx, [edx + 2]
movzx ecx, word [edx - 2]
inc edi
mov word [edx - 2], ax
mov word [edx + esi - 2], cx
cmp edi, ebx
jne 0x41fa80
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
jmp 0x41faca
mov ecx, dword [ebx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x10]
add ecx, 1
je 0x41fac2
lea eax, [ecx + ecx]
push eax
push edi
push ebx
call fcn.004ac550
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [edi], ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
mov eax, dword [edx + 0x310]
mov dword [edi + 0x10], eax
mov dword [edx + 0x310], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edx]
mov dword [edi + 0x14], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x41fb33
mov edx, dword [ebp - 0x48]
inc eax
mov ecx, edx
cmp eax, 0x7fffffff
ja 0x41fb9a
add eax, eax
cmp eax, 0x1000
jb 0x41fb2a
test cl, 0x1f
jne 0x41fb9a
mov edx, dword [edx - 4]
cmp edx, ecx
jae 0x41fb9a
sub ecx, edx
cmp ecx, 4
jb 0x41fb9a
cmp ecx, 0x23
ja 0x41fb9a
push edx
call fcn.004943b0
add esp, 4
mov edi, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jmp 0x41fb58
push dword [ebp + 8]
mov eax, dword [esi]
call eax
add esp, 4
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x41fb85
add esi, 8
mov dword [ebp - 0x18], esi
cmp esi, dword [edi + 4]
jne 0x41f981
mov eax, 0x5288f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004af5bc
int3