Function at 0x40a2d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x585130
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x6531f0]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x468]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp + 0x46c]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x11], 0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x40a347
mov dword [ebp - 0x18], ebx
jmp 0x40a354
mov eax, 1
cmp dword [ebp - 0x18], eax
jne 0x40a354
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x50], 7
mov dword [ebp + 0x4c], ebx
xor ecx, ecx
mov word [ebp + 0x3c], cx
push 0xffffffffffffffff
push ebx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x38]
call fcn.0040e380
mov dword [ebp - 4], ebx
push 1
mov eax, 0x63132c
lea ecx, [ebp + 0x38]
call fcn.0040e2a0
push ebx
push edi
or eax, 0xffffffff
lea esi, [ebp + 0x38]
call fcn.0040e1e0
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40a39d
lea eax, [ebp + 0x3c]
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x18]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x100
or ecx, 0x20019
push ecx
push ebx
push eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a601
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x40]
call fcn.004136f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], ebx
jmp 0x40a402
xor ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0xff
mov ecx, dword [ebp - 0x38]
mov eax, ecx
inc ecx
mov dword [ebp - 0x38], ecx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0x25c]
push ecx
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x40a5b5
mov dword [ebp - 0x3c], 0x104
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
lea ecx, [ebp + 0x25c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a5b5
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea esi, [ebp - 0x4c]
call fcn.004136f0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp - 0x34]
push ecx
push ebx
push str.FileSysPath
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a5a9
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x40a4b5
cmp eax, 2
jne 0x40a5a9
mov ecx, dword [ebp - 0x3c]
shr ecx, 1
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x68]
call fcn.0040c610
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x40a4d5
mov ecx, dword [eax + 4]
jmp 0x40a4d8
lea ecx, [eax + 4]
lea esi, [ebp + 0x1c]
call fcn.00406eb0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x68]
call fcn.0042f9c0
lea ecx, [ebp + 0x1c]
push ecx
mov eax, 0x63132c
call fcn.0040c6e0
lea edx, [ebp + 0x1c]
push edx
mov eax, str.Scripts
call fcn.0040c6e0
lea eax, [ebp + 0x1c]
push eax
mov eax, 0x63132c
call fcn.0040c6e0
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp + 0x1c]
call fcn.0040e1e0
mov ecx, esi
push ecx
lea esi, [ebp]
call fcn.0040c680
mov byte [ebp - 4], 7
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x1c]
call fcn.0040e380
lea edx, [ebp + 0x1c]
push edx
mov eax, 0x63132c
call fcn.0040c6e0
push 0
push edi
or eax, 0xffffffff
lea esi, [ebp + 0x1c]
call fcn.0040e1e0
mov eax, esi
push eax
mov eax, 0x63132c
call fcn.0040c6e0
mov ecx, esi
push ecx
lea eax, [ebp + 0x25c]
call fcn.0040c6e0
mov edx, esi
push edx
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp]
mov ecx, dword [ebp - 0x44]
call fcn.00409c70
add esp, 8
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 6
lea esi, [ebp]
call fcn.0042f9c0
mov byte [ebp - 4], 3
lea esi, [ebp + 0x1c]
call fcn.0042f9c0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x4c]
call fcn.00406860
mov dword [ebp - 4], 1
jmp 0x40a5d1
test ebx, ebx
je 0x40a400
cmp ebx, 0x103
jne 0x40a5e5
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x40]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x50], 8
jb 0x40a61a
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.004fdb3f
add esp, 4
mov dword [ebp + 0x50], 7
mov dword [ebp + 0x4c], ebx
xor edx, edx
mov word [ebp + 0x3c], dx
mov eax, dword [ebp - 0x18]
mov ecx, eax
dec eax
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x40a354
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.004fdb4a
add ebp, 0x460
mov esp, ebp
pop ebp
ret