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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fabcd
mov eax, dword fs:[0]
push eax
mov eax, 0x11bc
call fcn.004cd750
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x11a5]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x11a4], eax
call fcn.00405d80
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x408f71
mov eax, dword [ecx]
push 0x501ef4
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x408f82
mov eax, dword [ecx]
push 1
call dword [eax + 0xec]
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x408fa0
mov eax, dword [ecx]
push 0x501e94
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x54]
push 1
mov eax, dword [ecx]
call dword [eax + 0xec]
cmp byte [ebp + 8], 0
je 0x4095be
call fcn.0040b240
mov ecx, eax
call fcn.0040d1a0
mov dword [ebp - 0x11ac], eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x11b0], ecx
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
mov esi, dword [eax]
mov eax, dword [ebp - 0x11b0]
cmp esi, eax
je 0x408ffe
mov ecx, dword [ebp - 0x11ac]
nop
cmp dword [esi], ecx
je 0x408ffe
add esi, 0x84
cmp esi, eax
jne 0x408ff0
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
cmp esi, dword [eax + 4]
jne 0x4090fa
push 0x568
lea eax, [ebp - 0x6d0]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x6d0]
push eax
call fcn.004155e0
mov esi, dword [method.DuiLib::CListElementUI.1.virtual_0]
lea ecx, [edi - 0x4bc]
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x501e3c
mov dword [ebp - 4], 0
call esi
push eax
lea ecx, [ebp - 0x6d0]
call dword [0x5273d0]
lea ecx, [ebp - 0x6d0]
call dword [0x5273d8]
push 0
lea ecx, [ebp - 0x6d0]
call fcn.00416960
push 0x501f00
lea ecx, [ebp - 0x6d0]
call fcn.004170c0
push 0x501f0c
lea ecx, [ebp - 0x6d0]
call fcn.00416dc0
lea ecx, [ebp - 0x6d0]
call dword [0x5273d4]
push 1
push 0
push 0
push dword [ebp - 0x11a4]
push 0x527214
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0xf060
push 0x112
lea ecx, [edi - 0x4bc]
call esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x6d0]
jmp 0x4096a0
cmp dword [edi + 0x90], 0x10
lea eax, [edi + 0x7c]
jb 0x409108
mov eax, dword [eax]
cmp dword [edi + 0xa8], 0x10
lea ecx, [edi + 0x94]
jb 0x409119
mov ecx, dword [ecx]
push eax
push 0x501e84
push str.complete
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [ebp - 0x11a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [esi + 0x80], 0x10
lea eax, [esi + 0x6c]
jb 0x409162
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x130], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409197
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.00404480
push 0xffffffffffffffff
push 0x501e38
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.0040b6d0
mov edx, eax
mov dword [ebp - 0x138], 0
cmp dword [ebp - 0x120], edx
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
cmovb edx, dword [ebp - 0x120]
lea ecx, [ebp - 0x148]
cmp dword [ebp - 0x11c], 0x10
push edx
cmovae eax, dword [ebp - 0x130]
push eax
movups xmmword [ebp - 0x148], xmm0
call fcn.00404480
lea ecx, [ebp - 0x130]
call fcn.00403880
movups xmm0, xmmword [ebp - 0x148]
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x148], 0
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [ebp - 0x138]
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
call fcn.00403880
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409371
push 0x568
push eax
lea eax, [ebp - 0x6d0]
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x6d0]
push eax
call fcn.004155e0
mov esi, dword [method.DuiLib::CListElementUI.1.virtual_0]
lea ecx, [edi - 0x4bc]
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x501e3c
mov byte [ebp - 4], 2
call esi
push eax
lea ecx, [ebp - 0x6d0]
call dword [0x5273d0]
lea ecx, [ebp - 0x6d0]
call dword [0x5273d8]
push 0
lea ecx, [ebp - 0x6d0]
call fcn.00416960
push 0x501e4c
lea ecx, [ebp - 0x6d0]
call fcn.004170c0
push 0x501e58
lea ecx, [ebp - 0x6d0]
call fcn.00416dc0
lea ecx, [ebp - 0x6d0]
call dword [0x5273d4]
push 1
push 0
push 0
push dword [ebp - 0x11a4]
push 0x527214
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0xf060
push 0x112
lea ecx, [edi - 0x4bc]
call esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x6d0]
call fcn.00415740
lea ecx, [ebp - 0x130]
call fcn.00403880
jmp 0x4096a5
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x409382
mov eax, dword [ecx]
push 0x501f34
call dword [eax + 0x3c]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00401cb0
add esp, 8
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4094da
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x148]
call fcn.004029f0
push 4
push str..lnk
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 4
call fcn.00402880
push 0x208
lea eax, [ebp - 0x370]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x370]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x11c8]
push eax
call fcn.00401cb0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x409445
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x11c8]
call fcn.00403730
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x11c8]
push eax
call fcn.00401cb0
add esp, 8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [ebp - 4], 5
jb 0x409490
mov ecx, dword [ecx]
cmp dword [ebp - 0x14c], 8
lea eax, [ebp - 0x160]
push ecx
cmovae eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x370]
push 0
push ecx
push 0
add edi, 0xfffffb44
push eax
mov ecx, edi
call fcn.00407f70
lea ecx, [ebp - 0x11c8]
call fcn.00403730
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00403880
jmp 0x4094e0
add edi, 0xfffffb44
push 0x568
lea eax, [ebp - 0xc38]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x164]
lea ecx, [ebp - 0xc38]
push eax
call fcn.004155e0
mov esi, dword [method.DuiLib::CListElementUI.1.virtual_0]
mov ecx, edi
push 0
push 0
push 0
push 0
push 0
push 0x108
push 0x10ce0000
push 0x501e3c
mov byte [ebp - 4], 6
call esi
push eax
lea ecx, [ebp - 0xc38]
call dword [0x5273d0]
lea ecx, [ebp - 0xc38]
call dword [0x5273d8]
push 0
lea ecx, [ebp - 0xc38]
call fcn.00416960
push 0x501f48
lea ecx, [ebp - 0xc38]
call fcn.004170c0
push 0x501f54
lea ecx, [ebp - 0xc38]
call fcn.00416dc0
lea ecx, [ebp - 0xc38]
call dword [0x5273d4]
push 0
push 0xf060
push 0x112
mov ecx, edi
call esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0xc38]
call fcn.00415740
lea ecx, [ebp - 0x160]
call fcn.00403730
lea ecx, [ebp - 0x130]
call fcn.00403880
jmp 0x4096a5
push 0x568
lea eax, [ebp - 0x11a0]
push 0
push eax
call fcn.004cf400
add esp, 0xc
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x11a0]
push eax
call fcn.004155e0
mov esi, dword [method.DuiLib::CListElementUI.1.virtual_0]
lea ecx, [edi - 0x4bc]
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x501e3c
mov dword [ebp - 4], 7
call esi
push eax
lea ecx, [ebp - 0x11a0]
call dword [0x5273d0]
lea ecx, [ebp - 0x11a0]
call dword [0x5273d8]
push 0
lea ecx, [ebp - 0x11a0]
call fcn.00416960
push 0x501e4c
lea ecx, [ebp - 0x11a0]
call fcn.004170c0
push 0x501e58
lea ecx, [ebp - 0x11a0]
call fcn.00416dc0
lea ecx, [ebp - 0x11a0]
call dword [0x5273d4]
push 1
push 0
push 0
push dword [ebp - 0x11a4]
push 0x527214
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0xf060
push 0x112
lea ecx, [edi - 0x4bc]
call esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x11a0]
call fcn.00415740
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.004cd2ac
mov esp, ebp
pop ebp
ret 0xc