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

Disassembly:
mov eax, 0x40acb0
call fcn.00409d50
sub esp, 0x598
or dword [0x4114b4], 0xffffffff
push ebx
push esi
lea eax, [ebp - 0x298]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x298]
mov esi, 0x4113b0
push eax
push esi
call sub.MSVCRT.dll_strcpy
push str.lxr.tmp
push esi
call sub.MSVCRT.dll_strcat
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
mov dword [ebp - 0x10], ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x407962
cmp dword [ebp - 0x10], 0x3e8
jge 0x407962
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407962
push dword [ebp - 0x10]
lea eax, [ebp - 0x298]
push eax
push str._slxr_ld.tmp
push esi
call sub.MSVCRT.dll_sprintf
add esp, 0x10
inc dword [ebp - 0x10]
push esi
jmp 0x407929
push ebx
push 0x407bb4
push ebx
push 0x6c
call fcn.00409d0d
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x407b5a
mov eax, dword [0x4114b4]
cmp eax, ebx
jne 0x407b32
push esi
call edi
cmp eax, 0xffffffff
je 0x407b5a
lea eax, [ebp - 0x298]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x194]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x194]
push str.lxupdate.exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x194]
push eax
call edi
cmp eax, 0xffffffff
je 0x407a05
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407a05
push dword [ebp - 0x10]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x194]
push str._slxupdate_ld.exe
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
inc dword [ebp - 0x10]
jmp 0x4079c3
lea eax, [ebp - 0x5a4]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x28], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.004069d9
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5a4]
push eax
mov byte [ebp - 4], 1
call fcn.00406c97
test eax, eax
je 0x407b19
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00407b6c
pop ecx
test eax, eax
pop ecx
je 0x407b19
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x4a0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x4a0]
push 0x410ae8
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x4a0]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x4a0]
push 0x410ae4
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x4a0]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x4a0]
push 0x410ae0
push eax
call sub.MSVCRT.dll_strcat
push 0x44
lea eax, [ebp - 0x90]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x4c]
push ebx
push eax
mov dword [ebp - 0x90], esi
call sub.MSVCRT.dll_memset
add esp, 0x48
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4a0]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004069f3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f33
jmp 0x407b5a
push 2
pop esi
cmp eax, esi
jne 0x407b5a
push 1
lea ecx, [ebp - 0x10]
call fcn.00402848
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00402b38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402853
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret