Function at 0x414a27
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
mov eax, 0xc08
call fcn.004051b6
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x414c9b
lea esi, [ebp - 0xd4]
mov eax, 0x83
call fcn.0040f34a
lea esi, [ebp - 0x118]
mov eax, 0x84
call fcn.0040f34a
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x2c], eax
mov eax, esi
push 8
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.00405299
lea esi, [ebp - 0x74]
mov eax, 0x85
call fcn.0040f34a
lea esi, [ebp - 0x60]
mov eax, 0x86
call fcn.0040f34a
lea esi, [ebp - 0x38]
mov eax, 0x87
call fcn.0040f34a
lea esi, [ebp - 0x4c]
mov eax, 0x88
call fcn.0040f34a
lea eax, [ebx + 0x3fc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
mov ebx, 0xff
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 8
push edi
push dword [ebp + eax*4 - 0x2c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414c65
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x320]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x414c5c
mov edi, dword [ebp - 0x14]
inc dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.0040930a
or esi, 0xffffffff
mov dword [ebp - 4], eax
cmp eax, esi
je 0x414c2e
test eax, eax
je 0x414c2e
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
add edi, 0x1fe
call fcn.0040930a
mov dword [ebp - 4], eax
cmp eax, esi
je 0x414b6c
test eax, eax
jne 0x414b93
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.0040930a
mov dword [ebp - 4], eax
cmp eax, esi
je 0x414c2e
test eax, eax
je 0x414c2e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
lea ecx, [ebp - 0x320]
push ecx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414bc6
push ebx
push dword [ebp - 0x10]
lea esi, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409432
jmp 0x414bc8
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x414c2e
test eax, eax
je 0x414c2e
mov edi, dword [ebp - 0x10]
call fcn.004149cd
test eax, eax
jle 0x414c2e
push 0x56
lea esi, [ebp - 0x94]
pop eax
call fcn.0040f34a
mov eax, dword [ebp - 0x14]
push eax
mov ecx, edi
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x307
lea edi, [ecx + 0x1fe]
call fcn.00405ed9
add esp, 0x10
test eax, eax
jle 0x414c2e
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fe
push ecx
lea ecx, [ebp - 0x20]
call fcn.004055da
test al, al
je 0x414c2e
inc dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], 0x104
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x414b17
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x414acb
push dword [ebp - 0x14]
call fcn.004051e6
cmp dword [ebp - 0x1c], edi
jbe 0x414c93
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0x89
call fcn.0041293e
jmp 0x414c9b
push dword [ebp - 0x20]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret