Function at 0x41f02f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x330], 0x104
mov dword [ebp - 0x32c], 0
lea eax, [ebp - 0x118]
push eax
call fcn.00430c03
add esp, 4
test eax, eax
jne 0x41f07f
xor eax, eax
jmp 0x41f312
push 0x104
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.0043280d
add esp, 0xc
push 0x2c
push 0x412bec
lea edx, [ebp - 0x324]
push edx
call fcn.0042ece7
add esp, 0xc
movsx eax, byte [ebp - 0x118]
test eax, eax
je 0x41f2f3
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea edx, [ebp - 0x324]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41f2f3
mov dword [ebp - 8], 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41f2e9
cmp dword [ebp - 8], 0
jbe 0x41f2e9
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x328], 0
mov dword [ebp - 4], 0
jmp 0x41f15b
mov ecx, dword [ebp - 0x328]
add ecx, 1
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
cmp edx, dword [ebp - 8]
jae 0x41f2cf
mov eax, dword [ebp - 0x220]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0x330], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f1bc
cmp dword [ebp - 4], 0x103
jne 0x41f2bf
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
push 0x412c1c
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
mov ecx, dword [ebp - 0x220]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
push 0x412c24
call sub.MSVCRT.dll_strlen
add esp, 4
add esi, eax
cmp esi, 0x104
jb 0x41f209
jmp 0x41f14c
push 0x104
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0042ece7
add esp, 0xc
push 0x412c30
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00428ff9
add esp, 8
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00428ff9
add esp, 8
push 0x412c38
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00428ff9
add esp, 8
lea edx, [ebp - 0x21c]
push edx
call fcn.004270e0
add esp, 4
test eax, eax
je 0x41f2bf
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x41f2bf
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 4], 0x103
jne 0x41f2ca
jmp 0x41f2cf
jmp 0x41f14c
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x220], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x411109
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, dword [ebp - 0x32c]
jbe 0x41f30d
xor eax, eax
jmp 0x41f312
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret