Function at 0x40f580
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x582d4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x12c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x12c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x18]
mov byte [eax + 1], 0
push edx
call sub.MFC42.DLL_CString::CString_4
push 0x5e2630
lea ecx, [esp + 0x24]
mov dword [esp + 0x240], 0
call sub.MFC42.DLL_CString::CString_4
push str.jwfile
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call sub.MFC42.DLL_CString::CString_4
push 0x5fd02c
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], 2
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x18]
push 0x5e268c
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
mov byte [esp + 0x24c], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24]
push str.Jingwei_JWCS
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x10]
push edx
push eax
push SysReAllocString
call esi
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push 0x5fd02c
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push SysReAllocString
call esi
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push 0x5fd02c
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push str._sDefaultIcon
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push SysReAllocString
call esi
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push 0x5fd02c
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push str._sShell
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push SysReAllocString
call esi
mov edi, str.Open
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.Open
push 1
push 0x5fd02c
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x2c]
push str._sShellOpenCommand
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push SysReAllocString
call esi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push str._s____1_
push eax
call edi
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push 0x5fd02c
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x23c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret