Function at 0x416e60
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 + 0x450]
test eax, eax
je 0x416eab
mov eax, dword [ebp + 0x448]
xor esi, esi
test eax, eax
jle 0x416eab
cmp esi, eax
jge 0x416e95
test esi, esi
jl 0x416e95
mov eax, dword [ebp + 0x444]
mov eax, dword [eax + esi*4]
jmp 0x416e97
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [ebp + 0x448]
add esp, 4
inc esi
cmp esi, eax
jl 0x416e86
mov ecx, dword [ebp + 0x444]
push ecx
call fcn.00498600
add esp, 4
push 0x80
call fcn.004985f0
mov ebx, 0x1f
mov edi, 0x40
mov dword [ebp + 0x444], eax
mov dword [ebp + 0x448], 0
mov dword [ebp + 0x44c], ebx
mov dword [ebp + 0x454], edi
mov eax, dword [ebp + 0x46c]
add esp, 4
test eax, eax
je 0x416f2c
mov eax, dword [ebp + 0x464]
xor esi, esi
test eax, eax
jle 0x416f2c
cmp esi, eax
jge 0x416f16
test esi, esi
jl 0x416f16
mov edx, dword [ebp + 0x460]
mov eax, dword [edx + esi*4]
jmp 0x416f18
xor eax, eax
push eax
call fcn.00498600
mov eax, dword [ebp + 0x464]
add esp, 4
inc esi
cmp esi, eax
jl 0x416f07
mov eax, dword [ebp + 0x460]
push eax
call fcn.00498600
add esp, 4
push 0x80
call fcn.004985f0
xor esi, esi
add esp, 4
mov dword [ebp + 0x460], eax
mov dword [ebp + 0x464], esi
mov dword [ebp + 0x468], ebx
mov dword [ebp + 0x470], edi
mov ecx, ebp
mov dword [ebp + 0x478], esi
call fcn.00413740
mov ecx, dword [eax + 4]
cmp ecx, esi
jne 0x416ffc
mov ecx, dword [eax + 0x5c]
push 0x2e
push ecx
call fcn.004989e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x416f93
mov esi, 0x4caf4c
lea edx, [esp + 0x10]
lea eax, [esp + 0x210]
push edx
push eax
push esi
push 0x80000000
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x416fe3
mov al, byte [esp + 0x210]
test al, al
je 0x416fe3
lea ecx, [esp + 0x210]
lea edx, [esp + 0x110]
push ecx
push str._s_shell
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41702d
push esi
lea eax, [esp + 0x114]
push str._s_shell
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41702d
cmp ecx, 1
je 0x41701a
cmp ecx, 2
je 0x41701a
cmp ecx, 3
jne 0x41702d
lea ecx, [esp + 0x110]
push str.Drive_shell
push ecx
jmp 0x417027
lea edx, [esp + 0x110]
push str.Directory_shell
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x110]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4172e6
mov dl, byte [0x4caf4c]
mov ecx, 0x13
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc0]
push eax
lea edx, [esp + 0x114]
push ecx
push edx
push 0x80000000
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov al, byte [esp + 0xc0]
test al, al
jne 0x4170b8
lea eax, [esp + 0xc0]
push str.Open
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x70]
push 0x50
push ecx
push 0
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4172db
lea eax, [esp + 0x70]
push eax
call fcn.0043c610
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x41718e
mov eax, dword [ebp + 0x44c]
mov esi, dword [ebp + 0x448]
lea edx, [eax + 1]
cmp esi, edx
jne 0x417172
add eax, dword [ebp + 0x454]
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebp + 0x44c]
mov esi, dword [ebp + 0x444]
mov ebx, eax
add esp, 4
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x444]
push eax
call fcn.00498600
mov ecx, dword [ebp + 0x454]
mov eax, dword [ebp + 0x44c]
add esp, 4
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x444], ebx
mov dword [ebp + 0x44c], eax
mov edx, dword [ebp + 0x448]
mov eax, dword [ebp + 0x444]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x448]
inc eax
mov dword [ebp + 0x448], eax
mov cl, byte [0x4caf4c]
xor eax, eax
mov byte [esp + 0x20], cl
mov ecx, 0x13
lea edi, [esp + 0x21]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x74]
push eax
push ecx
push edx
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov al, byte [esp + 0x20]
test al, al
jne 0x4171e2
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x20]
push edx
call fcn.0043c610
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x417294
mov eax, dword [ebp + 0x468]
mov esi, dword [ebp + 0x464]
lea edx, [eax + 1]
cmp esi, edx
jne 0x417278
add eax, dword [ebp + 0x470]
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebp + 0x468]
mov esi, dword [ebp + 0x460]
mov ebx, eax
add esp, 4
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x460]
push eax
call fcn.00498600
mov ecx, dword [ebp + 0x470]
mov eax, dword [ebp + 0x468]
add esp, 4
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x460], ebx
mov dword [ebp + 0x468], eax
mov edx, dword [ebp + 0x464]
mov eax, dword [ebp + 0x460]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x464]
inc eax
mov dword [ebp + 0x464], eax
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x4172b7
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x478], eax
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 0x4170dc
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