Function at 0x41f030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
mov eax, 0xc08
call fcn.0042b055
xor edi, edi
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x41f2b6
lea esi, [ebp - 0xd0]
mov eax, 0xba
call fcn.0040aee3
lea esi, [ebp - 0x110]
mov eax, 0xbb
call fcn.0040aee3
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x28], eax
mov eax, esi
push 8
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0042b138
lea esi, [ebp - 0x70]
mov eax, 0xbc
call fcn.0040aee3
lea esi, [ebp - 0x5c]
mov eax, 0xbd
call fcn.0040aee3
lea esi, [ebp - 0x34]
mov eax, 0xbe
call fcn.0040aee3
lea esi, [ebp - 0x48]
mov eax, 0xbf
call fcn.0040aee3
mov dword [ebp - 0x10], edi
mov ebx, 0xff
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push 8
push edi
push dword [ebp + eax*4 - 0x28]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f280
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41f277
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x318]
push eax
mov eax, dword [ebp - 4]
call fcn.00430939
or esi, 0xffffffff
mov dword [ebp - 8], eax
cmp eax, esi
je 0x41f249
test eax, eax
je 0x41f249
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x318]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.00430939
mov dword [ebp - 8], eax
cmp eax, esi
je 0x41f16a
test eax, eax
jne 0x41f191
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x318]
push eax
mov eax, dword [ebp - 4]
call fcn.00430939
mov dword [ebp - 8], eax
cmp eax, esi
je 0x41f249
test eax, eax
je 0x41f249
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
lea ecx, [ebp - 0x318]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f1c9
push ebx
lea eax, [edi + 0x1fe]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x14]
call fcn.00430a61
jmp 0x41f1cb
mov eax, esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41f249
test eax, eax
je 0x41f249
mov eax, dword [ebp - 0xc]
add eax, 0x1fe
lea edi, [eax + 0x1fe]
mov dword [ebp - 0x14], eax
call fcn.0041efd6
test eax, eax
jle 0x41f249
lea esi, [ebp - 0x90]
mov eax, 0x8d
call fcn.0040aee3
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push esi
add eax, 0x1fe
push eax
lea ecx, [esi + 0x1fe]
push ecx
lea ecx, [ebp - 0x90]
push ecx
mov edx, 0x307
lea edi, [eax + 0x1fe]
call fcn.0042bebe
add esp, 0x10
test eax, eax
jle 0x41f249
lea ecx, [esi + 0x5fa]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0042b479
test al, al
je 0x41f249
inc dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41f115
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x41f0c9
push dword [ebp - 0xc]
call fcn.0042b085
cmp dword [ebp - 0x1c], edi
jbe 0x41f2ae
mov edi, dword [ebp - 0x20]
push 0xcb
mov eax, 0xc0
call fcn.0041cf45
jmp 0x41f2b6
push dword [ebp - 0x20]
call fcn.0042b085
pop edi
pop esi
pop ebx
leave
ret