Function at 0x4081e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7e47
mov eax, dword fs:[0]
push eax
sub esp, 0x94
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 - 0x38], eax
mov dword [ebp - 0x40], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov ebx, eax
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x48], ebx
mov word [ebx], ax
cmp dword [ebp + 0x14], 0xffffffff
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 4
jne 0x4083dc
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x10], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x14], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp + 0x14], ebx
push 0x4af9b8
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x20], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00407620
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x44]
push 0
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x30]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x2c]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x54]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0048faf7
mov ebx, dword [ebp - 0x48]
add esp, 0x2c
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp + 0xc]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x408a25
push 2
mov dword [ebp - 0x34], eax
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov word [esi], ax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x14
push eax
push 0
push dword [ebp - 0x50]
call fcn.00410500
add esp, 0x1c
test eax, eax
jne 0x4089fd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x78]
push 0x4afac0
push eax
call fcn.00417070
push 0x4b0594
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00418660
mov esi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x8c]
push 0x4b05b4
push eax
call fcn.00417070
mov esi, ebx
push dword [eax]
call fcn.0048faa4
mov ebx, eax
push esi
mov dword [ebp - 0x48], ebx
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
add esp, 0x40
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x408971
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x18]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x408968
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x10]
call fcn.00406bd0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
call fcn.00404cf0
push dword [eax]
call fcn.0048faa4
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x24
push dword [ebp - 0x18]
call ebx
push 0x4afac0
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041ca30
mov edi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push edi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0xa0]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faa4
push dword [ebp - 0x38]
mov edi, eax
mov dword [ebp - 0x40], edi
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
add esp, 0x28
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x408659
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x18]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x408654
mov eax, dword [ebp - 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408631
sub ecx, esi
sar ecx, 1
je 0x408654
push eax
call fcn.0048faa4
push edi
mov dword [ebp - 0x40], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x20], ebx
push 0x4af9b8
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x28], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push eax
call fcn.00407620
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00407620
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.00403c00
add esp, 0x4c
mov byte [ebp - 0x21], al
push dword [ebp - 0x9c]
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
add esp, 0x14
cmp byte [ebp - 0x21], 0
je 0x40893d
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4088a1
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp + 0x14], ebx
push 0x4af9b8
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x94], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00407620
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x25
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x4c]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x80]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x88]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
add esp, 0x2c
push 0x4af9b8
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x5c], edi
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x98]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push 3
push dword [ebp + 0x14]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x98]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00402130
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
jmp 0x40898f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x70]
call fcn.00402130
push edi
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
inc dword [ebp - 0x34]
add esp, 0xc
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov word [esi], ax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x14
push eax
mov eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x50]
call fcn.00410500
add esp, 0x1c
test eax, eax
je 0x408471
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
add esp, 0x10
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
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