Function at 0x415aa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a99c0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], eax
add esp, 0x14
mov word [eax], cx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 0x10]
or eax, 0x20019
push eax
mov eax, dword [ebp + 0xc]
push 0
push ecx
push eax
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x415e54
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
push ecx
push ecx
push dword [ebp + 0x14]
push dword [ebp - 0x54]
call fcn.00410620
add esp, 0x18
test eax, eax
jne 0x415e40
mov eax, dword [ebp - 0x20]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415b84
sub ecx, esi
sar ecx, 1
je 0x415e40
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
push ecx
push 0x2c
push eax
call fcn.00406950
mov esi, dword [ebp - 0x74]
add esp, 0x10
mov ecx, dword [ebp - 0x78]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x4c], 0
sar eax, 4
test eax, eax
je 0x415e23
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebx + ecx + 4]
lea edi, [ebx + ecx]
mov esi, dword [ebp - 0x18]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 0
push edi
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x14]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x14], eax
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00404ce0
mov dword [ebp - 0x68], eax
mov ecx, 0x4af9b8
mov eax, dword [ebp + 0x14]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0048faa4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x30], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00403c00
add esp, 0x44
mov bl, al
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0048faf7
add esp, 0x18
test bl, bl
je 0x415dfe
mov ebx, dword [ebp + 0x14]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x48], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x18]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
push ecx
movzx ecx, byte [ebp + 0x24]
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [ebp + 0x20]
push dword [ebp - 0x68]
push esi
call fcn.00403eb0
add esp, 0x64
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.0048faf7
add esp, 0x14
mov esi, dword [ebp - 0x74]
mov eax, esi
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x78]
inc edx
mov ebx, dword [ebp - 0x50]
sub eax, ecx
add ebx, 0x10
sar eax, 4
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ebx
cmp edx, eax
jb 0x415be4
test ecx, ecx
je 0x415e40
push dword [ebp + 0x20]
lea eax, [ebp - 0xd]
push eax
push esi
push ecx
call fcn.00402b30
push dword [ebp - 0x78]
call fcn.0048f453
add esp, 0x14
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
mov eax, dword [ebp + 0x20]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret