Function at 0x1041a5c
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
mov eax, 0x107f0f5
call fcn.01002b15
sub esp, 0x60
push esi
push edi
xor esi, esi
push esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp - 4], esi
je 0x1041aba
dec eax
je 0x1041aa9
push 0x80070057
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x1041b12
push 0x1083dd0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator_1
push 0x29
jmp 0x1041abc
push 0x25
pop edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push esi
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
lea ecx, [ebp - 0x10]
je 0x1041b23
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
and byte [ebp - 4], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
jmp 0x1041cc6
push ebx
push 0xffffffffffffffff
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x1083dbc
lea ecx, [ebp - 0x10]
call fcn.0101067f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0101f6d3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
mov byte [ebp - 4], 3
jne 0x1041b7c
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x1041ca5
xor esi, esi
inc esi
cmp dword [ebp - 0x1c], esi
jle 0x1041c43
push dword [ebx + esi*4]
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
push 0x1083db4
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
call fcn.0100b720
test al, al
je 0x1041c2d
push 0x1083dac
lea eax, [ebp + 0xc]
push eax
call fcn.0100b720
test al, al
je 0x1041c2d
push 0x1083da4
lea eax, [ebp + 0xc]
push eax
call fcn.0100b720
test al, al
je 0x1041c2d
push 0x1083d9c
lea eax, [ebp + 0xc]
push eax
call fcn.0100b720
test al, al
je 0x1041c2d
lea eax, [ebp + 0xc]
push eax
push 0x1083d98
lea eax, [ebp - 0x24]
push eax
call sub.MFC42u.DLL_operator_1
push 0x1083d90
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x1041b88
xor eax, eax
push 0xe
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1041c90
lea ecx, [ebp - 0x30]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
mov eax, dword [eax + 4]
jmp 0x1041c9b
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x18]
call fcn.0100bbf8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc