Function at 0x415f70
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 0x415fbb
mov eax, dword [ebp + 0x45c]
xor esi, esi
test eax, eax
jle 0x415fbb
cmp esi, eax
jge 0x415fa5
test esi, esi
jl 0x415fa5
mov eax, dword [ebp + 0x458]
mov eax, dword [eax + esi*4]
jmp 0x415fa7
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [ebp + 0x45c]
add esp, 4
inc esi
cmp esi, eax
jl 0x415f96
mov ecx, dword [ebp + 0x458]
push ecx
call fcn.004c7e56
push 0x80
call fcn.004c7e90
mov ebx, 0x1f
mov edi, pe_nt_image_headers32
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 0x416039
mov eax, dword [ebp + 0x478]
xor esi, esi
test eax, eax
jle 0x416039
cmp esi, eax
jge 0x416023
test esi, esi
jl 0x416023
mov edx, dword [ebp + 0x474]
mov eax, dword [edx + esi*4]
jmp 0x416025
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [ebp + 0x478]
add esp, 4
inc esi
cmp esi, eax
jl 0x416014
mov eax, dword [ebp + 0x474]
push eax
call fcn.004c7e56
push 0x80
call fcn.004c7e90
xor esi, esi
add esp, 8
mov dword [ebp + 0x474], eax
mov dword [ebp + 0x478], esi
mov dword [ebp + 0x47c], ebx
mov dword [ebp + 0x484], edi
mov ecx, ebp
mov dword [ebp + 0x48c], esi
call fcn.00412510
mov ecx, dword [eax + 8]
cmp ecx, esi
jne 0x416106
mov eax, dword [eax + 0x68]
push 0x2e
push eax
call fcn.004c82b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41609d
mov esi, 0x4fbe40
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 0x4160ed
mov al, byte [esp + 0x210]
test al, al
je 0x4160ed
lea eax, [esp + 0x210]
lea ecx, [esp + 0x110]
push eax
push 0x4ee740
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
jmp 0x416137
push esi
lea edx, [esp + 0x114]
push 0x4ee740
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
jmp 0x416137
cmp ecx, 1
je 0x416124
cmp ecx, 2
je 0x416124
cmp ecx, 3
jne 0x416137
lea eax, [esp + 0x110]
push 0x4ee734
push eax
jmp 0x416131
lea ecx, [esp + 0x110]
push 0x4ee724
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
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 0x4163ea
mov cl, byte [0x4fbe40]
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 0x4161c2
lea edx, [esp + 0xc0]
push 0x4ee600
push edx
call dword [sym.imp.kernel32.dll_lstrcpy]
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 0x4163df
lea edx, [esp + 0x70]
push edx
call fcn.00442c90
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x416295
mov eax, dword [ebp + 0x460]
mov esi, dword [ebp + 0x45c]
lea edx, [eax + 1]
cmp esi, edx
jne 0x416279
add eax, dword [ebp + 0x468]
lea eax, [eax*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebp + 0x460]
mov esi, dword [ebp + 0x458]
mov ebx, eax
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 + 0x458]
push eax
call fcn.004c7e56
mov ecx, dword [ebp + 0x468]
mov eax, dword [ebp + 0x460]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x458], ebx
mov dword [ebp + 0x460], eax
mov edx, dword [ebp + 0x45c]
mov eax, dword [ebp + 0x458]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x45c]
inc eax
mov dword [ebp + 0x45c], eax
mov cl, byte [0x4fbe40]
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 0x4162e9
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
lea edx, [esp + 0x20]
push edx
call fcn.00442c90
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x416398
mov eax, dword [ebp + 0x47c]
mov esi, dword [ebp + 0x478]
lea edx, [eax + 1]
cmp esi, edx
jne 0x41637c
add eax, dword [ebp + 0x484]
lea eax, [eax*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [ebp + 0x47c]
mov esi, dword [ebp + 0x474]
mov ebx, eax
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 + 0x474]
push eax
call fcn.004c7e56
mov ecx, dword [ebp + 0x484]
mov eax, dword [ebp + 0x47c]
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x474], ebx
mov dword [ebp + 0x47c], eax
mov edx, dword [ebp + 0x478]
mov eax, dword [ebp + 0x474]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x478]
inc eax
mov dword [ebp + 0x478], eax
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.004d52d0
add esp, 8
test eax, eax
jne 0x4163bb
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x48c], 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 0x4161e6
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