Function at 0x401610
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414a6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c
xor esi, esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.00403ee0
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push str.ExecuteMofcomp_Entry
mov byte [ebp - 4], 3
call fcn.004014d0
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x415cd8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x4016b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetKnownFolderPath_failed_with_status__lu
jmp 0x401939
mov edx, dword [ebp - 0x60]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4016e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.00402600
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401410
lea ecx, [ebp - 0xb4]
call fcn.00401390
push dword [ebp - 0x60]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x11
push str.wbemmofcomp.exe
lea ecx, [ebp - 0x2c]
call fcn.00402470
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401756
push str.PathFileExists_failed
call fcn.004014d0
add esp, 4
jmp 0x401941
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x401a8a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xb4]
push eax
push 1
push 0x4156ec
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call fcn.00401200
push 0x4156ec
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00401040
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401410
lea ecx, [ebp - 0xcc]
call fcn.00401390
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401390
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb4]
push 0x4156ec
push eax
call fcn.00401110
push 0x4156ec
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 5
push eax
call fcn.00401040
add esp, 0x18
lea ecx, [ebp - 0x44]
push eax
call fcn.00401410
lea ecx, [ebp - 0xcc]
call fcn.00401390
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401390
movups xmm0, xmmword [ebp - 0x5c]
sub esp, 0x18
mov eax, esp
push 0x4156f0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [eax + 0x10], xmm0
call fcn.004014d0
movups xmm0, xmmword [ebp - 0x44]
add esp, 4
mov eax, esp
push str.param_is:__s
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
call fcn.004014d0
add esp, 0x1c
mov dword [ebp - 0x9c], 0x3c
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x98], 0x40
cmovae eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], str.open
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x80], 5
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4018df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx_failed_with_status__d
jmp 0x401939
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4018f5
push str.Procces_handle_is_Null
call fcn.004014d0
add esp, 4
jmp 0x401941
push 0xf4240
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40190d
push eax
push str.WaitForSingleObject_failed_with_status__lu
jmp 0x401939
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40192c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeProcess_failed_with_status__lu
jmp 0x401939
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401944
push eax
push str.Execution_failed_with_exit_code__lu
call fcn.004014d0
add esp, 8
or esi, 0xffffffff
push str.ExecuteMofcomp_Exit
call fcn.004014d0
mov edx, dword [ebp - 0x30]
add esp, 4
cmp edx, 8
jb 0x40198b
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a8f
push edx
push ecx
call fcn.004027d2
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x4019d9
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4019cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a8f
push edx
push ecx
call fcn.004027d2
add esp, 8
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x401a23
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a8f
push edx
push ecx
call fcn.004027d2
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x401a6d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a8f
push edx
push ecx
call fcn.004027d2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004027e0
mov esp, ebp
pop ebp
ret
call fcn.00402400
call fcn.00405a7f
int3