Function at 0x140004970
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x318
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x14003b250]
xor rax, rsp
mov qword [rsp + 0x308], rax
mov byte [rsp + 0x30], 0
call fcn.140003460
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x330]
cmp qword [rax + 0xf0], 0
je 0x140004cc9
mov dl, 1
lea rcx, str.Starting_Up_Sub_Job
call fcn.140017250
mov rax, qword [rsp + 0x330]
mov rcx, qword [rax + 0xe0]
call fcn.14001b5c0
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x338]
call fcn.14001f240
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140004a50
lea rax, [rsp + 0xb0]
lea rcx, [0x140031810]
mov rdi, rax
mov rsi, rcx
mov ecx, InitCommonControls
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x338]
call fcn.14001f490
mov byte [rsp + 0x30], 1
jmp 0x140004cbe
lea rcx, str.Corel_Download_Manager_Job
call fcn.140017e80
mov rcx, qword [rsp + 0x330]
mov rcx, qword [rcx + 0xf0]
mov rdx, qword [rsp + 0x330]
mov rdx, qword [rdx + 0xf0]
mov qword [rsp + 0x58], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x88], rcx
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xc0]
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x58]
mov rcx, rax
mov rax, qword [rsp + 0x88]
call qword [rax + 0x18]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x80010108
jne 0x140004af7
xor edx, edx
mov rcx, qword [rsp + 0x330]
call fcn.140004e60
mov edx, 1
mov rcx, qword [rsp + 0x330]
call fcn.1400046c0
mov dl, 1
lea rcx, str.Service_Down___could_not_create_job
call fcn.140017250
jmp 0x140004cbe
cmp dword [rsp + 0x34], 0
jl 0x140004c64
cmp qword [rsp + 0x38], 0
je 0x140004c64
lea rdx, [0x140031810]
lea rcx, [rsp + 0xc0]
call fcn.140003470
movzx eax, al
test eax, eax
je 0x140004c64
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rax + 0xa8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov dl, 1
mov rcx, rax
call fcn.140017250
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140005100
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14001ea00
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x338]
call fcn.14001f5a0
mov rdx, rax
lea rcx, [rsp + reloc.mfc120u.dll_Ordinal_480]
call fcn.140005100
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14001ea00
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x78]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x20]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + reloc.mfc120u.dll_Ordinal_480]
call fcn.1400051c0
nop
lea rcx, [rsp + 0xd0]
call fcn.1400051c0
cmp dword [rsp + 0x34], 0
jl 0x140004c62
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x38]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, InitCommonControls
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x338]
call fcn.14001f490
mov byte [rsp + 0x30], 1
jmp 0x140004cbe
mov dl, 1
lea rcx, str.BITS_Service_could_not_create_job_error:
call fcn.140017250
xor eax, eax
mov word [rsp + 0x2f0], ax
lea rax, [rsp + 0x2f2]
mov rdi, rax
xor eax, eax
mov ecx, 0x12
rep stosb byte [rdi], al
mov r9d, InitCommonControls
mov r8d, 0xa
lea rdx, [rsp + 0x2f0]
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.MSVCR120.dll__ltow_s]
mov dl, 1
lea rcx, [rsp + 0x2f0]
call fcn.140017250
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.140021890
add rsp, 0x318
pop rdi
pop rsi
ret