Function at 0x40e0cd
Capabilities:
Check if file exists
Create process on windows
Delete file
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2824]
mov eax, 0x2824
call fcn.004128e0
push 0xffffffffffffffff
push 0x41c40b
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4313f4]
xor eax, ebp
mov dword [ebp + 0x2820], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov eax, str.void___cdecl_InstalledOk_wchar_t__
push eax
push 0x423650
push eax
lea ecx, [ebp - 0x68]
call fcn.00407ab1
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040c9ef
mov byte [ebp - 4], 1
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x2618], ax
lea eax, [ebp + 0x261a]
push ebx
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push edi
mov word [ebp + 0x2410], ax
lea eax, [ebp + 0x2412]
push ebx
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push edi
mov word [ebp + 0x2000], ax
lea eax, [ebp + 0x2002]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov esi, 0x104
push esi
push dword [ebp - 0x14]
lea eax, [ebp + 0x2618]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0x38
push str.InstalledOK.ini
lea eax, [ebp + 0x2618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp + 0x2618]
push eax
lea eax, [ebp + 0x2410]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp + 0x2618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e22a
lea eax, [ebp + 0x2618]
push eax
push 1
push str.hiintegrity
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x2618]
push eax
push esi
lea eax, [ebp + 0x2000]
push eax
push str...installedok.dll
push str.path
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x2000]
push eax
lea eax, [ebp + 0x2410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40e23f
push str...installedok.dll
lea eax, [ebp + 0x2410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 0x2410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e394
cmp dword [ebp - 0x10], ebx
je 0x40e341
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x40e341
push edi
mov word [ebp + 0x2208], ax
lea eax, [ebp + 0x220a]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea eax, [ebp + 0x2208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x22
pop eax
push 0x1ffe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call sub.MSVCR90.dll_memset
push esi
lea eax, [ebp + 0x2410]
push eax
lea eax, [ebp + 2]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
mov esi, dword [sym.imp.MSVCR90.dll_wcscat]
lea eax, [ebp]
push 0x422b28
push eax
call esi
lea eax, [ebp]
push 0x422db8
push eax
call esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x2208]
mov dword [ebp - 0x40], eax
lea eax, [ebp]
mov dword [ebp - 0x3c], eax
add esp, 0x34
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], str.runas
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e374
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jmp 0x40e372
lea eax, [ebp + 0x2410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40e374
push 0x422dac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40e374
push ebx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
jl 0x40e394
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x2618]
push eax
call esi
lea eax, [ebp + 0x2410]
push eax
call esi
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407d23
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2820]
xor ecx, ebp
call fcn.0041276a
add ebp, 0x2824
leave
ret