Function at 0x404f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
lea eax, [esp + 8]
push eax
push 1
push 0
mov ebx, ecx
mov ecx, dword [esp + 0x120]
push 0x41c668
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4051a0
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x41c65c
mov edi, 0x100
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x404fbb
mov edx, dword [esp + 0x18]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x41c64c
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x404fe4
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x41c638
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x40500d
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x41c628
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405036
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x41c600
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x40505f
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x41c5d8
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405088
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x41c5b0
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4050b1
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x41c5a4
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4050da
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x41c598
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405103
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x41c58c
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x40512c
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x28], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x41c57c
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405155
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0x2c], 0x40
ja 0x40519e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x41c570
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405196
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x18]
lea edi, [ebx + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], 1
pop edi
pop esi
mov eax, dword [esp + 8]
test eax, eax
pop ebx
je 0x4051b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add esp, 0x10c
ret 4