Function at 0x423db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
xor eax, eax
push ebx
push edi
mov byte [ebp - 0x174], 0
mov ecx, 0x40
lea edi, [ebp - 0x173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 0x70], 0
mov ecx, 0xb
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
test ebx, ebx
mov byte [ebp - 0x40], 0
mov ecx, 0xb
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x30
mov dword [ebp - 8], 0
stosb byte es:[edi], al
mov byte [ebp - 1], 0
je 0x42403a
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x30
jb 0x42403a
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42403a
cmp ecx, 3
ja 0x42403a
mov eax, dword [str.SoftwareATIACEAPPS]
mov edx, dword [0x4810b0]
mov dword [ebp - 0x174], eax
mov eax, dword [0x4810b4]
mov dword [ebp - 0x170], edx
mov edx, dword [0x4810b8]
mov dword [ebp - 0x16c], eax
mov eax, dword [0x4810bc]
mov dword [ebp - 0x168], edx
mov dx, word [0x4810c0]
lea edi, [ebp - 0x174]
mov dword [ebp - 0x164], eax
mov word [ebp - 0x160], dx
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423ea0
mov ax, word [0x47511c]
push ecx
mov word [edi], ax
call fcn.00423d90
add esp, 4
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423ec0
lea edi, [ebp - 0x174]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423ed0
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x174]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424023
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.COMMAND
push eax
call esi
test eax, eax
jne 0x424002
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.FILE
push ecx
call esi
test eax, eax
jne 0x424002
push str.GetACEPrbPath___ACE_PATH_is_OK
call fcn.0040acd0
lea eax, [ebp - 0x40]
mov edx, ebx
mov ecx, eax
add esp, 4
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x423f70
mov edi, ebx
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423f80
mov dx, word [0x481078]
lea eax, [ebp - 0x70]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423f97
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x423fa3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x5c
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004616e0
add esp, 8
test eax, eax
je 0x423fdc
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + ecx - 1]
cmp eax, edx
jae 0x423fdc
mov cl, byte [eax + 1]
test cl, cl
je 0x423fe7
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + ecx - 1]
cmp eax, edx
jne 0x423fea
mov byte [eax], 0
mov eax, dword [ebp - 8]
push eax
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.bGetCCCPrbPath___no_command_or_File_entry_n
call fcn.0040acd0
mov eax, dword [ebp - 8]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.bGetCCCPrbPath___Get_CCC_registry_key_failed_n
call fcn.0040acd0
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret