Function at 0x41792e
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.00404c1b
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x417ba2
lea esi, [ebp - 0xd4]
mov eax, 0x83
call fcn.004157fb
lea esi, [ebp - 0x118]
mov eax, 0x84
call fcn.004157fb
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.00404cfe
lea esi, [ebp - 0x74]
mov eax, 0x85
call fcn.004157fb
lea esi, [ebp - 0x60]
mov eax, 0x86
call fcn.004157fb
lea esi, [ebp - 0x38]
mov eax, 0x87
call fcn.004157fb
lea esi, [ebp - 0x4c]
mov eax, 0x88
call fcn.004157fb
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 0x417b6c
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 0x417b63
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.00408d73
or esi, 0xffffffff
mov dword [ebp - 4], eax
cmp eax, esi
je 0x417b35
test eax, eax
je 0x417b35
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
add edi, 0x1fe
call fcn.00408d73
mov dword [ebp - 4], eax
cmp eax, esi
je 0x417a73
test eax, eax
jne 0x417a9a
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.00408d73
mov dword [ebp - 4], eax
cmp eax, esi
je 0x417b35
test eax, eax
je 0x417b35
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 0x417acd
push ebx
push dword [ebp - 0x10]
lea esi, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00408e9b
jmp 0x417acf
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x417b35
test eax, eax
je 0x417b35
mov edi, dword [ebp - 0x10]
call fcn.004178d4
test eax, eax
jle 0x417b35
push 0x56
lea esi, [ebp - 0x94]
pop eax
call fcn.004157fb
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.0040593e
add esp, 0x10
test eax, eax
jle 0x417b35
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fe
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040503f
test al, al
je 0x417b35
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 0x417a1e
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x4179d2
push dword [ebp - 0x14]
call fcn.00404c4b
cmp dword [ebp - 0x1c], edi
jbe 0x417b9a
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0x89
call fcn.00415845
jmp 0x417ba2
push dword [ebp - 0x20]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret