Function at 0x4133e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef945
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x3c], eax
add esp, 4
mov word [eax], cx
push dword [0x539fd0]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
or eax, 0x20019
push ecx
push eax
push 0
push dword [edi]
push ebx
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x413670
push 2
mov dword [ebp - 0x20], eax
call fcn.004c8d7a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebx], ax
push 2
call fcn.004c8d7a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov word [esi], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push ecx
push dword [ebp - 0x18]
call fcn.00415050
add esp, 0x18
test eax, eax
jne 0x41364b
push 0x4f9dfc
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov eax, dword [edi]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
add esp, 0x10
lea ecx, [ebp - 0x14]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov edi, dword [ebp - 0x14]
mov eax, 0x4f9d20
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
add esp, 0xc
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004050e0
mov esi, dword [ebp - 0x14]
mov eax, 0x4f9d20
test esi, esi
cmovne eax, esi
push eax
call fcn.004c8d00
push dword [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push 0
push 1
push 0xffffffffffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c390
push 0x4f9d60
mov ebx, eax
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov eax, dword [ebp - 0x14]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
add esp, 0x40
lea ecx, [ebp - 0x1c]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
mov edi, dword [ebp - 0x1c]
mov eax, 0x4f9d20
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
push dword [ebp - 0x24]
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push 0
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c390
push dword [ebp - 0x10]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
mov edi, dword [ebp - 0x20]
inc edi
push 2
mov dword [ebp - 0x20], edi
call fcn.004c8d7a
mov ebx, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], ebx
add esp, 0x40
mov word [ebx], ax
push 2
call fcn.004c8d7a
mov esi, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], esi
mov word [esi], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push edi
push dword [ebp - 0x18]
call fcn.00415050
mov edi, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x4134a4
push dword [ebp - 0x10]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4137c5
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x2c], edi
call fcn.004c8d5f
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00409cf0
add esp, 0x48
mov ebx, eax
push 0x4f9d20
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x30], esi
call fcn.004c8d5f
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push dword [ebp + 0xc]
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push ecx
push 1
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x5c
push dword [ebp - 0x34]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x28]
call fcn.004c8d5f
push dword [ebp - 0x24]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x28
push dword [ebp - 0x3c]
call fcn.004c8d5f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret