Function at 0x414e40
Capabilities:
Accept command line arguments
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
lea edx, [ebp - 0x25c]
cmp cl, 0x22
jne 0x414e8c
inc eax
mov cl, byte [eax]
test cl, cl
je 0x414ea2
cmp cl, 0x22
je 0x414ea2
mov byte [edx], cl
mov cl, byte [eax + 1]
inc edx
inc eax
test cl, cl
jne 0x414e92
lea eax, [ebp - 0x14]
mov byte [edx], 0
push eax
push 0x428510
push DirectSoundCreate
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414ed5
lea ecx, [ebp - 0x3c]
push 0x425280
push ecx
mov dword [ebp - 0x3c], 0xffffffff
call fcn.0041a4ef
mov edi, str.NESROM
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x14]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
dec ecx
push ecx
push str.NESROM
push 1
push esi
push edx
call ebx
test eax, eax
je 0x414f12
lea eax, [ebp - 0x34]
push 0x425280
push eax
mov dword [ebp - 0x34], 0xffffffff
call fcn.0041a4ef
lea edi, [ebp - 0x25c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x158]
push ecx
push 1
push str.DefaultIcon
push edx
call ebx
test eax, eax
je 0x414f79
lea eax, [ebp - 0x4c]
push 0x425280
push eax
mov dword [ebp - 0x4c], 0xffffffff
call fcn.0041a4ef
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [ebp - 0x18]
push edx
push str.NESROM
push DirectSoundCreate
mov dword [ebp - 0x14], 0
call esi
test eax, eax
je 0x414fb9
lea eax, [ebp - 0x2c]
push 0x425280
push eax
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0041a4ef
mov edi, str.NES_ROM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 0x18]
push str.NES_ROM
push 1
push eax
push ecx
call ebx
test eax, eax
je 0x414ff0
lea edx, [ebp - 0x54]
push 0x425280
push edx
mov dword [ebp - 0x54], 0xffffffff
call fcn.0041a4ef
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push str.DefaultIcon
push ecx
call esi
test eax, eax
je 0x415018
lea edx, [ebp - 0x44]
push 0x425280
push edx
mov dword [ebp - 0x44], 0xffffffff
call fcn.0041a4ef
lea edi, [ebp - 0x25c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or esi, 0xffffffff
lea edi, [ebp - 0x158]
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x158]
push ecx
push 1
push eax
push edx
call ebx
test eax, eax
je 0x415079
lea eax, [ebp - 0x50]
push 0x425280
push eax
mov dword [ebp - 0x50], esi
call fcn.0041a4ef
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
push edx
push str.Shell
push eax
call edi
test eax, eax
je 0x4150b4
lea ecx, [ebp - 0x30]
push 0x425280
push ecx
mov dword [ebp - 0x30], esi
call fcn.0041a4ef
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
push str.Open
push eax
call edi
test eax, eax
je 0x4150d8
lea ecx, [ebp - 0x38]
push 0x425280
push ecx
mov dword [ebp - 0x38], esi
call fcn.0041a4ef
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
push str.Command
push eax
call edi
test eax, eax
je 0x4150fc
lea ecx, [ebp - 0x40]
push 0x425280
push ecx
mov dword [ebp - 0x40], esi
call fcn.0041a4ef
lea edi, [ebp - 0x25c]
mov ecx, esi
xor eax, eax
lea edx, [ebp - 0x360]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x360]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.___1_
or ecx, 0xffffffff
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x360]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x360]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
xor edi, edi
push 1
push edi
push ecx
call ebx
test eax, eax
je 0x4151f1
lea edx, [ebp - 0x48]
push 0x425280
push edx
mov dword [ebp - 0x48], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4151a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x4151a6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4151b0
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4151ba
push eax
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4151c4
push eax
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4151ce
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4151d8
push eax
call esi
mov eax, 0x4151de
ret
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
push ecx
call esi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
push edx
call esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], edi
push eax
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret