Function at 0x418689
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor esi, esi
push 0x38
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 8], 0x435584
mov dword [ebp - 0x44], esi
call fcn.00423fe0
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x454], ax
lea eax, [ebp - 0x452]
push esi
push eax
call fcn.00423fe0
xor eax, eax
push edi
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push esi
push eax
call fcn.00423fe0
mov ebx, 0x7ff
push ebx
lea eax, [ebp - 0xc53]
push esi
push eax
mov byte [ebp - 0xc54], 0
call fcn.00423fe0
add esp, 0x30
mov edi, 0x104
push edi
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
dec edi
test eax, eax
jne 0x41876e
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.0040a95b
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call fcn.004220d3
add esp, 0x14
cmp eax, esi
je 0x41875d
lea ecx, [ebp - 0x24c]
sub eax, ecx
sar eax, 1
jmp 0x418760
or eax, 0xffffffff
cmp eax, esi
jbe 0x41876e
xor ecx, ecx
mov word [ebp + eax*2 - 0x24c], cx
push str.mtuninstall.bat
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.004233e5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
add esp, 0xc
test byte [eax + 0x840], 1
je 0x4187c9
lea ecx, [ebp - 0x24c]
push ecx
add eax, 4
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x454]
push eax
push str.cd_r_n__S___processwait:_d_r_ndel__Q___S__r_nrd___S__r_ndel__Q___S__r_n
mov ecx, ebx
lea edi, [ebp - 0xc54]
call fcn.004189db
add esp, 0x18
jmp 0x4187fa
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x454]
push eax
push str.cd_r_n__S___processwait:_d_r_ndel__Q___S__r_ndel__Q___S__r_n
mov ecx, ebx
lea edi, [ebp - 0xc54]
call fcn.004189db
add esp, 0x14
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test bl, bl
je 0x4188c6
mov edi, 0x800
mov ecx, edi
lea eax, [ebp - 0xc54]
xor edx, edx
cmp byte [eax], dl
je 0x418821
inc eax
dec ecx
jne 0x418819
cmp ecx, esi
jne 0x4188cf
mov edx, 0x80070057
xor edi, edi
cmp edx, esi
sete bl
test bl, bl
je 0x4188c6
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 8]
call fcn.00401897
test al, al
je 0x4188b7
push edi
lea eax, [ebp - 0xc54]
push eax
lea eax, [ebp - 8]
call fcn.0040a8f7
cmp eax, edi
jne 0x4188b7
cmp dword [ebp - 4], 0xffffffff
je 0x418880
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x38], str.Open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 4], 0xffffffff
je 0x4188c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
sub edi, ecx
jmp 0x418830