Function at 0x415bcb
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.0041e7d1
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x415e3f
lea esi, [ebp - 0xd4]
mov eax, 0x83
call fcn.004106a9
lea esi, [ebp - 0x118]
mov eax, 0x84
call fcn.004106a9
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.0041e8b4
lea esi, [ebp - 0x74]
mov eax, 0x85
call fcn.004106a9
lea esi, [ebp - 0x60]
mov eax, 0x86
call fcn.004106a9
lea esi, [ebp - 0x38]
mov eax, 0x87
call fcn.004106a9
lea esi, [ebp - 0x4c]
mov eax, 0x88
call fcn.004106a9
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 0x415e09
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 0x415e00
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.00422d63
or esi, 0xffffffff
mov dword [ebp - 4], eax
cmp eax, esi
je 0x415dd2
test eax, eax
je 0x415dd2
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
add edi, 0x1fe
call fcn.00422d63
mov dword [ebp - 4], eax
cmp eax, esi
je 0x415d10
test eax, eax
jne 0x415d37
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.00422d63
mov dword [ebp - 4], eax
cmp eax, esi
je 0x415dd2
test eax, eax
je 0x415dd2
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 0x415d6a
push ebx
push dword [ebp - 0x10]
lea esi, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00422e8b
jmp 0x415d6c
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x415dd2
test eax, eax
je 0x415dd2
mov edi, dword [ebp - 0x10]
call fcn.00415b71
test eax, eax
jle 0x415dd2
push 0x56
lea esi, [ebp - 0x94]
pop eax
call fcn.004106a9
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.0041f4f4
add esp, 0x10
test eax, eax
jle 0x415dd2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fe
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041ebf5
test al, al
je 0x415dd2
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 0x415cbb
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x415c6f
push dword [ebp - 0x14]
call fcn.0041e801
cmp dword [ebp - 0x1c], edi
jbe 0x415e37
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0x89
call fcn.00413936
jmp 0x415e3f
push dword [ebp - 0x20]
call fcn.0041e801
pop edi
pop esi
pop ebx
leave
ret