Function at 0x40b5b0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7942
push eax
mov eax, 0x1384
mov dword fs:[0], esp
call fcn.004a6750
lea ecx, [esp]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 8]
mov dword [esp + 0x138c], 0
call sub.MFC42u.DLL_CString::CString_5
push 0
push str._.txt_.txtAll_Files__._.
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x13a4], 1
call sub.MFC42u.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x40]
mov byte [esp + 0x138c], 2
call sub.MFC42u.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x40b9ba
lea eax, [esp + 4]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42u.DLL_CFileDialog::GetPathName
push 0x2e
lea ecx, [esp + 8]
mov byte [esp + 0x1390], 3
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
jne 0x40b65a
push str..txt
lea ecx, [esp + 8]
call fcn.004a62ac
mov ecx, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40b9a8
push ebx
mov ebx, dword [esp + 0x13a0]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [esp + 0x13a4]
test edi, edi
mov byte [esp + 0x1390], 0
je 0x40b724
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x1004
push edx
call ebp
push eax
push edi
lea eax, [esp + 0x18]
push str._XT___s_:__d_r_n
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x390]
mov eax, dword [ecx - 8]
push 0
push 0
push 0x1000
push edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x20]
push 0
push eax
lea edi, [esp + 0x398]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x39c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::GetHeaderCtrl
mov esi, eax
test esi, esi
je 0x40b857
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Empty
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1200
push edx
call ebp
mov edi, eax
mov eax, dword [esp + 0x13ac]
cmp edi, eax
mov dword [esp + 0x1c], edi
jbe 0x40b85b
sub edi, eax
mov esi, 0
mov dword [esp + 0x1c], edi
je 0x40b7de
mov edx, dword [ebx + 0x20]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x390]
push ecx
push esi
push 0x105f
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0xfff
mov dword [esp + 0x40], 4
mov dword [esp + 0x44], 0
call ebp
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
push str._s_t_t
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jb 0x40b76f
push 9
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimRight_1
mov eax, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x398]
mov eax, dword [eax - 8]
push 0x1000
push ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x390]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x20]
not ecx
push 0
dec ecx
push edx
lea eax, [esp + 0x398]
push ecx
push eax
push edi
call esi
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
push 0x4cc368
push edi
call esi
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x1004
push edx
call ebp
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jbe 0x40b97f
jmp 0x40b87e
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Empty
push ebp
push ebx
call fcn.00416060
add esp, 8
cmp eax, 1
jne 0x40b8a4
push 0x4cc360
lea ecx, [esp + 0x14]
call fcn.004a62ac
xor esi, esi
test edi, edi
jbe 0x40b8f9
push esi
lea eax, [esp + 0x2c]
push ebp
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::GetItemText
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push str._s_t_t
push edx
mov byte [esp + 0x13a8], 4
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x139c], 3
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator
inc esi
cmp esi, edi
jb 0x40b8aa
push 9
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::TrimRight_1
mov ecx, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x398]
mov eax, dword [ecx - 8]
push 0x1000
push edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x20]
push 0
push eax
lea edi, [esp + 0x398]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x39c]
push ecx
push edi
call esi
lea edx, [esp + 0x20]
push 0
push edx
push 2
push 0x4cc368
push edi
call esi
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jb 0x40b87a
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push 1
push 0
push ecx
push str.notepad.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop ebp
pop ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1390], 2
call sub.MFC42u.DLL_CString::CString
pop esi
lea ecx, [esp + 0xf0]
mov byte [esp + 0x138c], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x138c], 1
call fcn.004a6198
lea ecx, [esp + 8]
mov byte [esp + 0x138c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x138c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1384]
mov dword fs:[0], ecx
add esp, 0x1390
ret 0xc