Function at 0x405bc5
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x41faa8
call fcn.0041ef90
sub esp, 0x844
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [0x44030c]
mov dword [ebp - 0x850], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x84c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x850]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x850]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x24]
push eax
call fcn.004166db
pop ecx
pop ecx
push str._selfdestruct.bat
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator_1
mov edx, dword [0x44030c]
xor eax, eax
mov dword [ebp - 0x43c], edx
mov ecx, 0x81
lea edi, [ebp - 0x438]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x234], edx
mov ecx, 0x81
lea edi, [ebp - 0x230]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x644], edx
mov ecx, 0x81
lea edi, [ebp - 0x640]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x234]
push eax
push esi
mov byte [ebp - 4], 2
call edi
lea eax, [ebp - 0x644]
push eax
push esi
call edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x405dc0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
push 0x42a768
push 0x42a760
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Replace
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x405d4c
xor esi, esi
jmp 0x405d7c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0041efe0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x644]
push eax
push ebx
lea eax, [ebp - 0x234]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x85c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret