Function at 0x41f3d2
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44aa08
call fcn.00438c74
sub esp, 0x150
mov eax, dword [0x45e56c]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x134], 0x104
push dword [ebp + 8]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x120], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f62d
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x140]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41f621
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x128], eax
call fcn.004384ab
push dword [ebp + 0xc]
mov dword [ebp - 0x124], eax
call fcn.00438420
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x130]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.004384ab
add esp, 0xc
push ebx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x138], edi
push esi
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x158]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x138]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
mov dword [ebp - 0x150], eax
jne 0x41f5ed
push dword [ebp - 0x124]
call fcn.00438674
mov ebx, eax
cmp ebx, edi
pop ecx
jle 0x41f5f5
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
jmp 0x41f536
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, ebx
je 0x41f53c
mov esi, dword [esi + 0x34]
cmp esi, edi
jne 0x41f528
jmp 0x41f53e
xor ebx, ebx
cmp ebx, edi
jle 0x41f5f5
cmp dword [ebp + 0x14], edi
jl 0x41f554
cmp dword [ebp + 0x14], ebx
jne 0x41f5f5
push dword [ebp - 0x124]
push dword [ebp + 0xc]
push str._s_szylomgs
push dword [ebp - 0x12c]
call fcn.0043951c
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
push 0x20019
push edi
push dword [ebp - 0x12c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f5f5
push 0x5c
call fcn.004384ab
pop ecx
mov ecx, eax
mov dword [ebp - 0x15c], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x41f5b0
call fcn.0041eb44
mov esi, eax
jmp 0x41f5b2
xor esi, esi
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push ebx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x54]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, edi
jne 0x41f5d7
mov dword [ecx], esi
jmp 0x41f5df
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x34], edi
jne 0x41f5d4
mov dword [eax + 0x34], esi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f5f5
cmp eax, 0x103
je 0x41f5f5
nop
inc dword [ebp - 0x138]
cmp dword [ebp - 0x150], edi
je 0x41f4c7
push dword [ebp - 0x12c]
call fcn.004383d6
push dword [ebp - 0x124]
call fcn.004383d6
pop ecx
pop ecx
pop esi
pop ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.0043840c
leave
ret