Function at 0x402ca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a77fa
mov eax, dword fs:[0]
push eax
sub esp, 0x98
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 - 0x50], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
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 - 0x3c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x48], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x18], 0xffffffff
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 4
jne 0x402eaa
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x18], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x14], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x44]
mov dword [ebp + 0x18], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0048faf7
mov esi, dword [ebp + 0xc]
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push esi
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x403333
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x7c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x40332a
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
push 0x20
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x11
push eax
push 0x2c
push dword [ebp - 0x50]
call fcn.00406950
mov edx, dword [ebp - 0x64]
add esp, 0x10
mov ecx, dword [ebp - 0x68]
mov eax, edx
sub eax, ecx
xor edi, edi
sar eax, 4
test eax, eax
je 0x40330d
xor esi, esi
mov dword [ebp - 0x44], esi
lea esp, [esp]
lea eax, [ecx + esi]
push 0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00404ce0
test ebx, ebx
mov dword [ebp - 0x94], eax
mov ecx, 0x4af9b8
cmovne ecx, ebx
push ecx
call fcn.0048faa4
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x30], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x38], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00407620
add esp, 0x4c
mov esi, eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x17
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x78]
push esi
push eax
push dword [ebp + 8]
call fcn.00403c00
push dword [ebp - 0xa4]
mov bl, al
call fcn.0048faf7
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
add esp, 0x40
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0048faf7
add esp, 8
test bl, bl
je 0x4032eb
cmp dword [ebp + 0x18], 0xffffffff
jne 0x40320f
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x84], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x74], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x58], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x14]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x18], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x21
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 0x23
push 0
lea ecx, [ebp - 0x84]
push ecx
movzx ecx, byte [ebp + 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0xa0]
mov dword [ebp + 0x18], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x98]
call fcn.0048faf7
push dword [ebp - 0x20]
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 - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
add esp, 0x2c
jmp 0x403212
mov ebx, dword [ebp + 0x14]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x1c]
push ecx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x78]
push 5
push dword [ebp + 0x18]
push dword [ebp - 0x94]
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x64
push dword [ebp - 0x9c]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
push dword [ebp - 0x80]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x40]
mov byte [ebp - 4], 0x11
call fcn.0048faf7
add esp, 0x14
jmp 0x4032ee
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x64]
inc edi
mov ecx, dword [ebp - 0x68]
mov eax, edx
mov esi, dword [ebp - 0x44]
sub eax, ecx
add esi, 0x10
sar eax, 4
mov dword [ebp - 0x44], esi
cmp edi, eax
jb 0x402f30
test ecx, ecx
je 0x40332a
push dword [ebp + 0x18]
lea eax, [ebp - 0x49]
push eax
push edx
push ecx
call fcn.00402b30
push dword [ebp - 0x68]
call fcn.0048f453
add esp, 0x14
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
mov eax, dword [ebp + 0x18]
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