Function at 0x4146ac
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.00416ed5
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x414920
lea esi, [ebp - 0xd4]
mov eax, 0x83
call fcn.00408c1d
lea esi, [ebp - 0x118]
mov eax, 0x84
call fcn.00408c1d
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.00416fb8
lea esi, [ebp - 0x74]
mov eax, 0x85
call fcn.00408c1d
lea esi, [ebp - 0x60]
mov eax, 0x86
call fcn.00408c1d
lea esi, [ebp - 0x38]
mov eax, 0x87
call fcn.00408c1d
lea esi, [ebp - 0x4c]
mov eax, 0x88
call fcn.00408c1d
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 reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4148ea
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 0x4148e1
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.0041b02d
or esi, 0xffffffff
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4148b3
test eax, eax
je 0x4148b3
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
add edi, 0x1fe
call fcn.0041b02d
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4147f1
test eax, eax
jne 0x414818
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.0041b02d
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4148b3
test eax, eax
je 0x4148b3
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 0x41484b
push ebx
push dword [ebp - 0x10]
lea esi, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041b155
jmp 0x41484d
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4148b3
test eax, eax
je 0x4148b3
mov edi, dword [ebp - 0x10]
call fcn.00414652
test eax, eax
jle 0x4148b3
push 0x56
lea esi, [ebp - 0x94]
pop eax
call fcn.00408c1d
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.00417bf8
add esp, 0x10
test eax, eax
jle 0x4148b3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fe
push ecx
lea ecx, [ebp - 0x20]
call fcn.004172f9
test al, al
je 0x4148b3
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 0x41479c
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x414750
push dword [ebp - 0x14]
call fcn.00416f05
cmp dword [ebp - 0x1c], edi
jbe 0x414918
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0x89
call fcn.004125c3
jmp 0x414920
push dword [ebp - 0x20]
call fcn.00416f05
pop edi
pop esi
pop ebx
leave
ret