Function at 0x417fe0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47bdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498e04]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x90]
xor edi, edi
push 0x48e349
mov dword [esp + 0x74], edi
call fcn.00418820
test eax, eax
jne 0x418290
push edi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 4]
push edi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push edi
push edi
push edi
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
jne 0x418290
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add edx, 1
push edx
push 8
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov ebx, eax
mov eax, dword [esp + 0x28]
add eax, 1
push eax
push 8
call ebp
push eax
call edi
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
push 8
mov dword [esp + 0x3c], eax
call ebp
push eax
call edi
mov edx, dword [esp + 0x18]
add edx, 1
push edx
mov ebp, eax
push 8
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
add eax, 1
lea edx, [esp + 0x48]
push edx
add ecx, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
push ebp
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
cmp edi, 0x103
je 0x418177
push ebp
lea ecx, [esp + 0x7c]
call fcn.00418850
test eax, eax
jne 0x418177
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418177
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0x40
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00417660
mov ecx, eax
mov byte [esp + 0x70], 1
call fcn.00418800
mov ecx, dword [esp + 0x90]
push eax
call fcn.00418b10
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0
call fcn.004186d0
add dword [esp + 0x1c], 1
cmp edi, 0x103
jne 0x4180c5
xor ebp, ebp
lea ebx, [ebx]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x38], eax
add ecx, 1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x48]
push edx
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, 0x103
je 0x418239
lea ecx, [esp + 0x44]
call fcn.004166d0
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push ebx
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 2
call fcn.00416740
test eax, eax
jne 0x41822b
mov edx, dword [esp + 0x90]
push edx
sub esp, 0x18
lea eax, [esp + 0x94]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00419080
lea ecx, [esp + 0x60]
call fcn.00417fe0
lea ecx, [esp + 0x44]
call fcn.004167e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0
call fcn.00417ce0
add ebp, 1
cmp edi, 0x103
jne 0x418190
test ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x418260
push ebx
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418270
push eax
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418280
push eax
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x418290
push eax
push 0
call edi
push eax
call esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.004186d0
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x1c