Function at 0x408cc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0x138]
push edi
lea eax, [esp + 0x20]
push 0xa
push eax
push ecx
call fcn.00412660
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x24]
lea ebx, [esp + ecx + 0x24]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x100
mov byte [ebx + 1], al
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x140]
mov byte [ebx], 0x44
push ecx
mov ecx, dword [eax]
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408d38
cmp dword [esp + 0x10], 1
je 0x408d47
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x124
ret 8
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x18], esi
call fcn.004015e0
test al, al
je 0x408d8c
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x1c]
mov byte [ebx], 0x54
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push 0
push edx
push ecx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408dc8
cmp dword [esp + 0x14], 1
je 0x408dd7
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x124
ret 8
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x18], esi
call fcn.004015e0
test al, al
je 0x408e1f
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
mov byte [edx], 0x43
push ecx
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408e5f
cmp dword [esp + 0x14], 1
je 0x408e6e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x124
ret 8
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x18], esi
call fcn.004015e0
test al, al
je 0x408eb4
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov byte [edx], 0x45
push ecx
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
push 0
mov esi, 4
push eax
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408efa
cmp dword [esp + 0x10], esi
jne 0x408efa
cmp dword [esp + 0x18], esi
je 0x408f09
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x124
ret 8
mov eax, dword [esp + 0x1c]
pop edi
test eax, eax
setne al
mov byte [ebp + 0x30], al
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x124
ret 8