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

Disassembly:
sub esp, 0x28
lea eax, [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push esi
push 0
push 0
mov esi, dword [esp + 0x3c]
push eax
push ecx
push 0
push 0
push edx
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x403df5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
push ebp
lea ecx, [eax + eax + 3]
lea eax, [edx + edx + 3]
mov edx, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
inc edx
push eax
push 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
call edi
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
push 0
call edi
mov ebp, eax
mov byte [ebx], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
mov byte [ebp], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], edx
push ebp
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x403c7c
test eax, eax
jne 0x403c36
push 0x1c
push 0x40
call edi
mov esi, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x403bc8
mov dword [eax + 4], esi
jmp 0x403bcf
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x10], esi
mov edx, dword [esp + 0x2c]
push ebx
mov dword [esi], edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], esi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call edi
push ebx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403c27
push eax
push 0
call edi
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov esi, ebp
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov eax, dword [0x406674]
mov esi, dword [esp + 0x40]
inc eax
mov dword [0x406674], eax
mov byte [ebx], 0
mov eax, dword [esp + 0x28]
mov byte [ebp], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0x30]
push ebp
push edx
lea ecx, [esp + 0x2c]
push 0
inc eax
push ecx
push ebx
push eax
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x403ba8
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
push ebp
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4066c4]
xor ebp, ebp
push 0x4068c0
mov dword [esp + 0x28], edx
push ebp
mov byte [eax], 0
mov edx, dword [0x4066c4]
mov eax, dword [esp + 0x48]
push ebp
lea ecx, [esp + 0x30]
push ebp
push ecx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x403db8
test eax, eax
jne 0x403d78
push 0x18
push 0x40
call edi
mov ebx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [ebx + 8]
test eax, eax
jne 0x403ce5
mov dword [ebx + 8], esi
jmp 0x403cec
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0xc], esi
mov edx, dword [0x4066c4]
mov dword [esp + 0x34], esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call edi
mov dword [esi], eax
mov ecx, dword [0x4066c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0x10], ebx
mov ecx, dword [0x406630]
mov edx, dword [0x4066c8]
mov eax, dword [0x4066c4]
inc ecx
push edx
push eax
mov dword [0x406630], ecx
call fcn.00405320
add esp, 8
test eax, eax
jne 0x403d78
mov edx, dword [0x4066c4]
lea ecx, [esp + 0x30]
push ecx
push 9
push eax
mov eax, dword [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d78
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push esi
push ecx
push edx
call fcn.00403af0
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4066c4]
push 0x4068c0
mov dword [esp + 0x28], ecx
push 0
mov byte [edx], 0
mov ecx, dword [0x4066c4]
mov edx, dword [esp + 0x48]
push 0
lea eax, [esp + 0x30]
push 0
inc ebp
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x403cc5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x40667c]
mov dword [0x406640], eax
sub eax, edx
pop edi
pop ebp
cmp eax, 0x6e
pop ebx
jbe 0x403df5
mov eax, dword [0x406674]
mov ecx, dword [0x406630]
mov edx, dword [0x406738]
push eax
mov eax, dword [0x406828]
push ecx
push edx
push eax
call fcn.00403780
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x28
ret