Function at 0x409c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x258]
sub esp, 0x258
push 0xffffffffffffffff
push 0x5846da
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6531f0]
xor eax, ebp
mov dword [ebp + 0x254], 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 + 0x260]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0x264]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x11], 0
xor edi, edi
mov dword [ebp - 0x18], edi
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
je 0x409cea
mov eax, dword [ebp - 0x18]
cmp eax, 1
jne 0x409ced
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x18], 8
jb 0x409cf8
mov ecx, dword [ebx + 4]
jmp 0x409cfb
lea ecx, [ebx + 4]
lea edx, [ebp - 0x3c]
push edx
dec eax
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x100
or eax, 0x20019
push eax
push edi
push ecx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409f36
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
lea esi, [ebp - 0x48]
call fcn.004136f0
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0xff
mov ecx, dword [ebp - 0x40]
mov eax, ecx
inc ecx
mov dword [ebp - 0x40], ecx
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0x54]
push edx
push eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x409eec
lea ecx, [ebp - 0x30]
push ecx
call fcn.004074a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
dec edx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 4
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
call fcn.00413760
mov edx, eax
lea edi, [ebp - 0x2c]
call fcn.004027b0
mov edx, 0x63132c
call fcn.0040cc10
cmp dword [ebx + 0x18], 8
jb 0x409dc6
mov edx, dword [ebx + 4]
jmp 0x409dc9
lea edx, [ebx + 4]
lea edi, [ebp - 0x2c]
call fcn.0040cc10
mov edx, 0x63132c
call fcn.0040cc10
lea edx, [ebp + 0x54]
call fcn.0040cc10
mov eax, str.InprocServer32
lea ecx, [ebp - 0x64]
call fcn.0040c640
mov byte [ebp - 4], 3
lea eax, [ebp + 0x54]
push eax
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x80]
call fcn.0040c610
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x64]
lea edi, [ebp + 0x38]
call fcn.00408fb0
add esp, 4
mov byte [ebp - 4], 6
lea esi, [ebp - 0x80]
call fcn.0042f9c0
mov byte [ebp - 4], 7
lea esi, [ebp - 0x64]
call fcn.0042f9c0
cmp dword [ebp + 0x4c], 0
je 0x409e8b
mov ecx, dword [ebp - 0x38]
push ecx
lea esi, [ebp]
call fcn.0040c680
mov byte [ebp - 4], 8
mov edx, esi
push edx
mov eax, 0x63132c
call fcn.0040c6e0
push 0
mov eax, edi
push eax
or eax, 0xffffffff
call fcn.0040e1e0
mov esi, dword [ebp - 0x34]
push esi
lea ecx, [ebp - 0x30]
lea edx, [ebp]
call fcn.004089b0
add esp, 4
test al, al
jne 0x409e82
push esi
lea ecx, [ebp - 0x30]
mov edx, edi
call fcn.004089b0
add esp, 4
mov byte [ebp - 4], 7
lea esi, [ebp]
jmp 0x409ec9
push ebx
lea esi, [ebp + 0x1c]
call fcn.0040c680
mov byte [ebp - 4], 9
mov ecx, esi
push ecx
mov eax, 0x63132c
call fcn.0040c6e0
mov edx, esi
push edx
lea eax, [ebp + 0x54]
call fcn.0040c6e0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x34]
mov ecx, esi
call fcn.004093a0
add esp, 8
mov byte [ebp - 4], 7
call fcn.0042f9c0
mov byte [ebp - 4], 2
lea esi, [ebp + 0x38]
call fcn.0042f9c0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x30]
push edx
call fcn.00407500
mov eax, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x409f06
cmp eax, edi
je 0x409d4b
cmp eax, 0x103
jne 0x409f19
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
call edx
mov eax, dword [esi]
push 1
mov ecx, esi
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x18]
mov ecx, eax
dec eax
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x409ced
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 + 0x254]
xor ecx, ebp
call fcn.004fdb4a
add ebp, 0x258
mov esp, ebp
pop ebp
ret