Function at 0x4064e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573222
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 0x23d], 0
call fcn.00405330
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax + 0x80], 0
je 0x4067ee
push 1
push str.Starting_Up_Sub_Job
call fcn.00419830
add esp, 8
mov ecx, dword [ebp - 0x24c]
mov ecx, dword [ecx + 0x78]
call fcn.0041ceb0
push eax
lea edx, [ebp - 0x250]
push edx
mov ecx, dword [ebp + 8]
call fcn.00420380
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.00403e60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065bc
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x5c8478]
mov dword [eax], ecx
mov edx, dword [0x5c847c]
mov dword [eax + 4], edx
mov ecx, dword [0x5c8480]
mov dword [eax + 8], ecx
mov edx, dword [0x5c8484]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
call fcn.004205b0
mov byte [ebp - 0x23d], 1
jmp 0x4067dc
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.Corel_Download_Manager_Job
call fcn.00421a30
add esp, 4
push eax
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 0x80]
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0x80]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0xc]
call ecx
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0x80010108
jne 0x406637
push 0
mov ecx, dword [ebp - 0x24c]
call fcn.00406960
push 1
mov ecx, dword [ebp - 0x24c]
call fcn.00406310
push 1
push str.Service_Down___could_not_create_job
call fcn.00419830
add esp, 8
jmp 0x4067dc
cmp dword [ebp - 0x248], 0
jl 0x406790
cmp dword [ebp - 0x244], 0
je 0x406790
push 0x5c8478
lea edx, [ebp - 0x34]
push edx
call fcn.00406f10
add esp, 8
movzx eax, al
test eax, eax
je 0x406790
push 0
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [edx + 0x54]
call ecx
push 1
lea ecx, [ebp - 0x250]
call fcn.00403e60
push eax
call fcn.00419830
add esp, 8
lea ecx, [ebp - 0x250]
call fcn.00403e60
push eax
lea ecx, [ebp - 0x23c]
call fcn.00406b30
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x254]
call fcn.00403e60
push eax
mov ecx, dword [ebp + 8]
call fcn.004206c0
push eax
lea ecx, [ebp - 0x138]
call fcn.00406b30
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x25c]
call fcn.00403e60
push eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.00406bf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.00406bf0
cmp dword [ebp - 0x248], 0
jl 0x40678e
mov edx, dword [ebp - 0x244]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x248], eax
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x28]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
call fcn.004205b0
mov byte [ebp - 0x23d], 1
jmp 0x4067dc
push 1
push str.BITS_Service_could_not_create_job_error:
call fcn.00419830
add esp, 8
xor eax, eax
mov word [ebp - 0x24], ax
xor ecx, ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov word [ebp - 0x12], cx
push 0x10
push 0xa
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x248]
push eax
call fcn.00550c77
add esp, 0x10
push 1
lea ecx, [ebp - 0x24]
push ecx
call fcn.00419830
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00403b70
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret 4