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

Disassembly:
push 0xffffffffffffffff
push 0x481e78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
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 0x49789d
mov dword [esp + 0x74], edi
call fcn.00416570
test eax, eax
jne 0x418f70
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 0x418f70
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 0x418e57
push ebp
lea ecx, [esp + 0x7c]
call fcn.004165a0
test eax, eax
jne 0x418e57
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 0x418e57
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.00418300
mov ecx, eax
mov byte [esp + 0x70], 1
call fcn.00416550
mov ecx, dword [esp + 0x90]
push eax
call fcn.00416860
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0
call fcn.00416420
add dword [esp + 0x1c], 1
cmp edi, 0x103
jne 0x418da5
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 0x418f19
lea ecx, [esp + 0x44]
call fcn.00417480
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.004174f0
test eax, eax
jne 0x418f0b
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.00416dd0
lea ecx, [esp + 0x60]
call fcn.00418cc0
lea ecx, [esp + 0x44]
call fcn.00417590
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0
call fcn.004189c0
add ebp, 1
cmp edi, 0x103
jne 0x418e70
test ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x418f40
push ebx
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418f50
push eax
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x418f60
push eax
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x418f70
push eax
push 0
call edi
push eax
call esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00416420
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