Function at 0x407e60
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
sub esp, 0x10c
mov al, byte [0x4214c0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408330
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWARE_aheadShared
push 0x80000002
call ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407fa9
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x4214e0
push ecx
push 0
push str.NeroAPI
push eax
mov dword [esp + 0x2c], 0xff
call ebp
test eax, eax
je 0x407eed
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407fa9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4214e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xf3
jae 0x407fa9
push 0xff
lea ecx, [esp + 0x20]
push 0x4214e0
push ecx
call fcn.0040a300
mov al, byte [esp + 0x28]
add esp, 0xc
test al, al
mov byte [esp + 0x11b], 0
je 0x407f6e
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1b], 0x5c
jne 0x407f6e
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov byte [esp + ecx + 0x1f], al
call fcn.004082d0
add esp, 4
mov edi, str.NeroAPI.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004081f0
add esp, 4
mov al, byte [0x4214e0]
test al, al
jne 0x408095
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsNero.exe
push 0x80000002
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408095
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x4214e0
push ecx
push 0
push str.Path
push eax
mov dword [esp + 0x2c], 0xff
call ebp
test eax, eax
je 0x40800f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408095
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4214e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xf3
jae 0x408088
push 0xff
lea ecx, [esp + 0x20]
push 0x4214e0
push ecx
call fcn.0040a300
mov edi, str.NeroAPI.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x127], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004081f0
add esp, 0x10
push 0x4214e0
call fcn.004082d0
add esp, 4
push str.PATH
call fcn.0040caa0
mov ebx, eax
mov edi, 0x4214e0
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408183
push 0x4214e0
push ebx
call fcn.0040ca20
add esp, 8
test eax, eax
jne 0x408183
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4214e0
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 2]
push eax
call fcn.0040c8da
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x408183
or ecx, 0xffffffff
mov edi, 0x4214e0
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PATH
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41e0d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebp
call fcn.0040a524
add esp, 4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebp
mov dword [0x42199c], eax
test eax, eax
pop ebx
je 0x4081da
push 0
push 0xf
push 0xa
push 5
push 5
call fcn.00408e00
add esp, 0x14
test eax, eax
jne 0x4081d5
mov ecx, dword [0x42199c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
test eax, eax
setne dl
mov dword [0x42199c], eax
mov eax, edx
add esp, 0x10c
ret
mov eax, dword [0x42199c]
xor edx, edx
test eax, eax
setne dl
mov eax, edx
add esp, 0x10c
ret