Function at 0x40cebc
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.00410a60
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x40d130
lea esi, [ebp - 0xd4]
mov eax, 0x83
call fcn.0040e24a
lea esi, [ebp - 0x118]
mov eax, 0x84
call fcn.0040e24a
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.00410b43
lea esi, [ebp - 0x74]
mov eax, 0x85
call fcn.0040e24a
lea esi, [ebp - 0x60]
mov eax, 0x86
call fcn.0040e24a
lea esi, [ebp - 0x38]
mov eax, 0x87
call fcn.0040e24a
lea esi, [ebp - 0x4c]
mov eax, 0x88
call fcn.0040e24a
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 0x40d0fa
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 0x40d0f1
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.00414bb8
or esi, 0xffffffff
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40d0c3
test eax, eax
je 0x40d0c3
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
add edi, 0x1fe
call fcn.00414bb8
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40d001
test eax, eax
jne 0x40d028
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 8]
call fcn.00414bb8
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40d0c3
test eax, eax
je 0x40d0c3
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 0x40d05b
push ebx
push dword [ebp - 0x10]
lea esi, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414ce0
jmp 0x40d05d
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40d0c3
test eax, eax
je 0x40d0c3
mov edi, dword [ebp - 0x10]
call fcn.0040ce62
test eax, eax
jle 0x40d0c3
push 0x56
lea esi, [ebp - 0x94]
pop eax
call fcn.0040e24a
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.00411783
add esp, 0x10
test eax, eax
jle 0x40d0c3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1fe
push ecx
lea ecx, [ebp - 0x20]
call fcn.00410e84
test al, al
je 0x40d0c3
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 0x40cfac
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jb 0x40cf60
push dword [ebp - 0x14]
call fcn.00410a90
cmp dword [ebp - 0x1c], edi
jbe 0x40d128
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0x89
call fcn.0040add3
jmp 0x40d130
push dword [ebp - 0x20]
call fcn.00410a90
pop edi
pop esi
pop ebx
leave
ret