Function at 0x418193
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], 0x435590
mov dword [ebp - 0x44], esi
call fcn.004243a0
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x454], ax
lea eax, [ebp - 0x452]
push esi
push eax
call fcn.004243a0
xor eax, eax
push edi
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push esi
push eax
call fcn.004243a0
mov ebx, 0x7ff
push ebx
lea eax, [ebp - 0xc53]
push esi
push eax
mov byte [ebp - 0xc54], 0
call fcn.004243a0
add esp, 0x30
mov edi, 0x104
push edi
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.l_mt5clwtst__GetModuleFileNameW]
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.l_mt5clwtst__GetTempPathW]
dec edi
test eax, eax
jne 0x418278
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.0040ab8d
lea eax, [ebp - 0x24c]
push 0x5c
push eax
call fcn.004227a7
add esp, 0x14
cmp eax, esi
je 0x418267
lea ecx, [ebp - 0x24c]
sub eax, ecx
sar eax, 1
jmp 0x41826a
or eax, 0xffffffff
cmp eax, esi
jbe 0x418278
xor ecx, ecx
mov word [ebp + eax*2 - 0x24c], cx
push str.mtuninstall.bat
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.004238a4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
add esp, 0xc
test byte [eax + 0x840], 1
je 0x4182d3
lea ecx, [ebp - 0x24c]
push ecx
add eax, 4
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.l_mt5clwtst__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.00416120
add esp, 0x18
jmp 0x418304
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.l_mt5clwtst__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.00416120
add esp, 0x14
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test bl, bl
je 0x4183d0
mov edi, 0x800
mov ecx, edi
lea eax, [ebp - 0xc54]
xor edx, edx
cmp byte [eax], dl
je 0x41832b
inc eax
dec ecx
jne 0x418323
cmp ecx, esi
jne 0x4183d9
mov edx, 0x80070057
xor edi, edi
cmp edx, esi
sete bl
test bl, bl
je 0x4183d0
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 8]
call fcn.004018e1
test al, al
je 0x4183c1
push edi
lea eax, [ebp - 0xc54]
push eax
lea eax, [ebp - 8]
call fcn.0040ab04
cmp eax, edi
jne 0x4183c1
cmp dword [ebp - 4], 0xffffffff
je 0x41838a
push dword [ebp - 4]
call dword [sym.imp.l_mt5clwtst__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 [0x430378]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 4], 0xffffffff
je 0x4183d0
push dword [ebp - 4]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
sub edi, ecx
jmp 0x41833a