Function at 0x1400051b0
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 [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x308], rax
mov byte [rsp + 0x30], 0
call fcn.140003c70
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x330]
cmp qword [rax + 0xf0], 0
je 0x140005509
mov dl, 1
lea rcx, str.Starting_Up_Sub_Job
call fcn.140018f90
mov rax, qword [rsp + 0x330]
mov rcx, qword [rax + 0xe0]
call fcn.14001d0e0
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x338]
call fcn.140020d00
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 0x140005290
lea rax, [rsp + 0xb0]
lea rcx, [0x140049a08]
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.140020f50
mov byte [rsp + 0x30], 1
jmp 0x1400054fe
lea rcx, str.Corel_Download_Manager_Job
call fcn.14001f590
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 0x140005337
xor edx, edx
mov rcx, qword [rsp + 0x330]
call fcn.1400056a0
mov edx, 1
mov rcx, qword [rsp + 0x330]
call fcn.140004f00
mov dl, 1
lea rcx, str.Service_Down___could_not_create_job
call fcn.140018f90
jmp 0x1400054fe
cmp dword [rsp + 0x34], 0
jl 0x1400054a4
cmp qword [rsp + 0x38], 0
je 0x1400054a4
lea rdx, [0x140049a08]
lea rcx, [rsp + 0xc0]
call fcn.140003c80
movzx eax, al
test eax, eax
je 0x1400054a4
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.140018f90
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140005940
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400034a0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x338]
call fcn.140021060
mov rdx, rax
lea rcx, [rsp + reloc.mfc120u.dll_Ordinal_480]
call fcn.140005940
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400034a0
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.140005a00
nop
lea rcx, [rsp + 0xd0]
call fcn.140005a00
cmp dword [rsp + 0x34], 0
jl 0x1400054a2
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.140020f50
mov byte [rsp + 0x30], 1
jmp 0x1400054fe
mov dl, 1
lea rcx, str.BITS_Service_could_not_create_job_error:
call fcn.140018f90
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.140018f90
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.140029b50
add rsp, 0x318
pop rdi
pop rsi
ret