Function at 0x41f420
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x30c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41f452
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
mov esi, dword [esp + 0x328]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebp
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call edi
test eax, eax
je 0x41f48b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41f4bc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
mov esi, dword [esp + 0x32c]
push esi
call ebp
mov edx, dword [esp + 0x10]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call edi
test eax, eax
je 0x41f4e9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xff
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x41f555
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push str.DefaultIcon
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41f57d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x21c]
push eax
push str._s_0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x21c]
push edx
call ebp
mov ecx, dword [esp + 0x18]
inc eax
push eax
lea eax, [esp + 0x220]
push eax
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
push edx
call ebx
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xff
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x41f630
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x14]
push ecx
push str.shellopen
push edx
call esi
test eax, eax
je 0x41f65a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
push str.Open_with_W3Chart
call ebp
inc eax
push eax
mov eax, dword [esp + 0x18]
push str.Open_with_W3Chart
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.shellopencommand
push eax
call esi
test eax, eax
je 0x41f6a4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30c
ret 0x10
mov edi, str.___1_
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 ebp
mov edx, dword [esp + 0x14]
inc eax
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x30c
ret 0x10