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

Disassembly:
sub esp, 0x300
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x464]
test eax, eax
je 0x41c26b
mov eax, dword [ebp + 0x45c]
xor esi, esi
test eax, eax
jle 0x41c26b
cmp esi, eax
jge 0x41c255
test esi, esi
jl 0x41c255
mov eax, dword [ebp + 0x458]
mov eax, dword [eax + esi*4]
jmp 0x41c257
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [ebp + 0x45c]
add esp, 4
inc esi
cmp esi, eax
jl 0x41c246
mov ecx, dword [ebp + 0x458]
push ecx
call fcn.004be975
push 0x80
call fcn.004be967
mov ebx, 0x1f
mov edi, 0x40
mov dword [ebp + 0x458], eax
mov dword [ebp + 0x45c], 0
mov dword [ebp + 0x460], ebx
mov dword [ebp + 0x468], edi
mov eax, dword [ebp + 0x480]
add esp, 8
test eax, eax
je 0x41c2e9
mov eax, dword [ebp + 0x478]
xor esi, esi
test eax, eax
jle 0x41c2e9
cmp esi, eax
jge 0x41c2d3
test esi, esi
jl 0x41c2d3
mov edx, dword [ebp + 0x474]
mov eax, dword [edx + esi*4]
jmp 0x41c2d5
xor eax, eax
push eax
call fcn.004be975
mov eax, dword [ebp + 0x478]
add esp, 4
inc esi
cmp esi, eax
jl 0x41c2c4
mov eax, dword [ebp + 0x474]
push eax
call fcn.004be975
push 0x80
call fcn.004be967
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
mov dword [ebp + 0x474], eax
xor eax, eax
mov dword [ebp + 0x478], eax
mov dword [ebp + 0x47c], ebx
mov dword [ebp + 0x484], edi
mov ecx, dword [ebp + 0xc]
push 1
push 0xffffffffffffffff
push 0x100c
push ecx
mov dword [ebp + 0x48c], eax
call esi
cmp eax, 0xffffffff
jne 0x41c340
xor eax, eax
jmp 0x41c370
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push edx
push 0
push 0x1005
push eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x38], 0
call esi
mov ecx, dword [esp + 0x40]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41c3fd
mov eax, dword [eax + 0x68]
push 0x2e
push eax
call fcn.004bea30
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c394
mov esi, 0x4eb858
lea ecx, [esp + 0x10]
lea edx, [esp + 0x210]
push ecx
push edx
push esi
push 0x80000000
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x41c3e4
mov al, byte [esp + 0x210]
test al, al
je 0x41c3e4
lea eax, [esp + 0x210]
lea ecx, [esp + 0x110]
push eax
push str._s_shell
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41c42e
push esi
lea edx, [esp + 0x114]
push str._s_shell
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41c42e
cmp ecx, 1
je 0x41c41b
cmp ecx, 2
je 0x41c41b
cmp ecx, 3
jne 0x41c42e
lea eax, [esp + 0x110]
push str.Drive_shell
push eax
jmp 0x41c428
lea ecx, [esp + 0x110]
push str.Directory_shell
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x110]
push edx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c6e0
mov cl, byte [0x4eb858]
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], cl
mov ecx, 0x13
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x18]
lea eax, [esp + 0xc0]
push edx
lea ecx, [esp + 0x114]
push eax
push ecx
push 0x80000000
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov al, byte [esp + 0xc0]
test al, al
jne 0x41c4b9
lea edx, [esp + 0xc0]
push str.Open
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push 0x50
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41c6d5
lea edx, [esp + 0x70]
push edx
call fcn.0044a200
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41c58c
mov ecx, dword [ebp + 0x460]
mov esi, dword [ebp + 0x45c]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x41c570
mov eax, dword [ebp + 0x468]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [ebp + 0x460]
mov esi, dword [ebp + 0x458]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
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 [ebp + 0x458]
push ecx
call fcn.004be975
mov edx, dword [ebp + 0x468]
mov eax, dword [ebp + 0x460]
add esp, 8
add eax, edx
mov dword [ebp + 0x460], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x458], ebx
mov ecx, dword [ebp + 0x45c]
mov edx, dword [ebp + 0x458]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x45c]
inc eax
mov dword [ebp + 0x45c], eax
mov al, byte [0x4eb858]
mov ecx, 0x13
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x50
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov al, byte [esp + 0x20]
test al, al
jne 0x41c5df
lea edx, [esp + 0x70]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
push ecx
call fcn.0044a200
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41c68e
mov ecx, dword [ebp + 0x47c]
mov esi, dword [ebp + 0x478]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x41c672
mov eax, dword [ebp + 0x484]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004be967
mov edx, dword [ebp + 0x47c]
mov esi, dword [ebp + 0x474]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
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 [ebp + 0x474]
push ecx
call fcn.004be975
mov edx, dword [ebp + 0x484]
mov eax, dword [ebp + 0x47c]
add esp, 8
add eax, edx
mov dword [ebp + 0x47c], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x474], ebx
mov ecx, dword [ebp + 0x478]
mov edx, dword [ebp + 0x474]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x478]
inc eax
mov dword [ebp + 0x478], eax
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004cab10
add esp, 8
test eax, eax
jne 0x41c6b1
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x48c], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x70]
inc eax
push 0x50
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41c4dd
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret