Function at 0x140016694
Capabilities:
Create directory
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4b0
mov qword [rbp + 0x180], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140035078]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r14, r9
mov qword [rbp - 0x50], r9
mov rsi, r8
mov qword [rsp + 0x70], r8
mov rbx, rdx
mov qword [rbp - 8], rdx
mov r13, qword [rbp + 0x410]
mov qword [rbp - 0x20], r13
mov r12, qword [rbp + 0x418]
mov qword [rsp + 0x60], r12
mov rax, qword [rbp + 0x420]
mov qword [rbp + 8], rax
mov r15, qword [0x140035688]
mov qword [rsp + 0x68], r15
xor eax, eax
mov edi, eax
mov dword [rsp + 0x50], eax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x58], eax
mov dword [rbp + 0x20], eax
test r15, r15
je 0x14001788f
test rbx, rbx
je 0x14001788f
test rsi, rsi
je 0x14001788f
test r14, r14
jne 0x140016762
test r13, r13
je 0x14001788f
test r12, r12
je 0x14001788f
mov dword [rbp + 0x24], 2
mov dword [rbp + 0x28], 5
mov qword [rbp + 0x30], rsi
lea rax, [rbx + 0x14]
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x38], rax
mov r13d, 1
mov dword [rbp + 0x2c], r13d
mov r8, rax
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp + 0x190]
call fcn.140002fb4
xor esi, esi
test eax, eax
js 0x140017857
mov edx, esi
lea rax, [rbp + 0x190]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x1400167c0
mov r15d, 0x5c
test rcx, rcx
je 0x1400167e1
cmp r15w, word [rbp + rcx*2 + 0x18e]
cmovne rdx, r13
lea rax, [rdx + 8]
add rax, rcx
cmp rax, rbx
jbe 0x140016802
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 0x7a
jmp 0x140017857
test rdx, rdx
je 0x140016810
mov word [rbp + rcx*2 + 0x190], r15w
sub rbx, rdx
sub rbx, rcx
lea rax, [rdx + rcx]
lea rcx, [rbp + 0x190]
lea rcx, [rcx + rax*2]
lea r8, str.Sources
mov rdx, rbx
call fcn.140002fb4
mov rcx, qword gs:[0x30]
test eax, eax
jns 0x14001684c
movzx eax, ax
mov dword [rcx + 0x68], eax
jmp 0x140017857
mov dword [rcx + 0x68], esi
mov edi, r13d
mov ebx, esi
mov dword [rsp + 0x7c], ebx
mov qword [rbp - 0x70], rsi
mov r12d, esi
mov dword [rsp + 0x54], 0x80070057
cmp si, word [rbp + 0x190]
je 0x140016b8f
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x190]
call fcn.140005448
mov r14, rax
test rax, rax
je 0x140016b7b
mov qword [rbp + 0x18], rsi
xor edx, edx
mov r15d, edx
mov dword [rbp - 0x68], edx
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [r14 + rax*2], dx
jne 0x1400168a3
mov ecx, edx
cmp rax, 2
setae cl
jb 0x1400168dd
mov r8d, 2
lea rdx, [0x140029ac8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor edx, edx
mov ecx, edx
test eax, eax
sete cl
test ecx, ecx
je 0x140016a9d
mov edx, 0x5c
lea rcx, [r14 + 4]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
jne 0x140016926
mov ebx, 0x8007000d
xor esi, esi
mov edi, esi
movzx ecx, bx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x70]
lea r15d, [rsi + 0x5c]
jmp 0x140016a50
mov rdi, rcx
inc rbx
cmp word [r14 + rbx*2], cx
jne 0x140016929
mov edx, 0x5c
lea rcx, [rax + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor edx, edx
test rax, rax
jne 0x140016953
mov eax, ebx
jmp 0x140016959
sub rax, r14
sar rax, 1
mov ebx, 0x8007000e
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], dx
jne 0x140016962
cmp rax, rcx
ja 0x1400169c1
lea rsi, [rax + 1]
lea r8, [rsi + rsi]
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
xor edx, edx
test rax, rax
je 0x1400169b7
lea r9, [rsi - 1]
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.140003a3c
mov ebx, eax
xor edx, edx
mov rsi, qword [rbp + 0x18]
mov r15d, dword [rbp - 0x68]
jmp 0x1400169c6
mov ebx, 0x80070057
test ebx, ebx
js 0x1400169d3
mov rsi, rdi
mov rdi, rdx
mov r15d, r13d
test rdi, rdi
je 0x1400169fa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor edx, edx
mov edi, r13d
test ebx, ebx
js 0x140016906
cmp r15d, r13d
jne 0x140016aa4
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], dx
jne 0x140016a12
mov rax, qword [rbp - 0x70]
lea rbx, [rax + rcx*2]
test rsi, rsi
je 0x140016a48
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov r15d, 0x5c
xor esi, esi
cmp edi, r13d
jne 0x140016b23
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140016ae1
mov word [rax], si
mov rcx, r14
call fcn.140004e8c
test eax, eax
jne 0x140016a93
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov word [rbx], r15w
add rbx, 2
jmp 0x140016a59
mov ebx, edx
jmp 0x1400169fd
mov rbx, qword [rbp - 0x70]
movzx ecx, word [rbx]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140016abe
sub cx, 0x41
cmp cx, 0x19
ja 0x140016a48
mov eax, 0x3a
lea r15d, [rax + 0x22]
cmp ax, word [rbx + 2]
jne 0x140016a4e
cmp r15w, word [rbx + 4]
jne 0x140016a4e
add rbx, 8
jmp 0x140016a4e
cmp edi, r13d
jne 0x140016b23
mov rcx, r14
call fcn.140004e8c
cmp eax, r13d
je 0x140016b1e
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, r13d
je 0x140016b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CreatePath:_Unable_to_create___s___GLE__0x_x
jmp 0x140016b36
mov ebx, r13d
jmp 0x140016b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CreatePath:_Unable_to_create_parent_directory_for___s___GLE__0x_x
mov r12d, eax
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x190]
mov edx, 0x3000000
lea rcx, [0x1400356a8]
call fcn.140003040
mov ebx, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140016b8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov ecx, r12d
jmp 0x140016b94
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
je 0x14001784e
mov dword [rbp + 0x4c], esi
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rsi
lea rax, [rbp + 0x90]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x48], r13d
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], rsi
mov r14d, esi
mov dword [rbp - 0x7c], esi
mov dword [rbp - 0x80], esi
cmp si, word [rbp + 0x190]
je 0x140016d99
mov edi, esi
lea rax, [rbp + 0x190]
or r12, 0xffffffffffffffff
mov rbx, r12
inc rbx
cmp word [rax + rbx*2], si
jne 0x140016c13
test ebx, ebx
je 0x140016c30
lea eax, [rbx - 1]
cmp r15w, word [rbp + rax*2 + 0x190]
cmovne edi, r13d
lea eax, [rbx + 1]
add eax, edi
mov r15d, eax
lea r8, [rax + rax]
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140016c77
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x140016d95
mov r9d, ebx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x190]
mov rdx, r15
mov rcx, rsi
call fcn.140008850
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140016d68
test edi, edi
je 0x140016cda
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x140028e20]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
call fcn.140008850
mov ebx, eax
test ebx, ebx
js 0x140016d68
xor r9d, r9d
lea r8, [0x1400291ac]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x58]
call fcn.140003a3c
mov ebx, eax
test eax, eax
js 0x140016d68
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x7c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
nop dword [rax + rax]
test eax, eax
je 0x140016d46
mov r14d, dword [rbp - 0x80]
imul r14d, dword [rbp - 0x7c]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140016d95
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
movzx ecx, bx
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
xor esi, esi
jmp 0x140016db1
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r14d, esi
or r12, 0xffffffffffffffff
mov dword [rbp + 0x60], r14d
lea rax, [0x14001bdf0]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rsi
mov dword [rbp + 0x64], r13d
lea r9, [rbp + 0x90]
mov r15, qword [rsp + 0x70]
mov r8, r15
mov rdx, r15
mov rcx, r15
call fcn.14001be74
mov ebx, eax
test eax, eax
js 0x1400177e6
mov edx, 0x191
mov rcx, qword [rsp + 0x68]
call fcn.14001922c
mov ebx, esi
lea rax, [rbp + 0x40]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0x190]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xf0], rsi
mov qword [rbp + 0xe0], r15
lea rax, [rbp + 0x190]
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0x110], rsi
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0xf8], rsi
lea rax, [0x14001cec0]
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0x108], rax
cmp dword [rbp + 0x64], esi
je 0x140016e81
or dword [rbp + 0xf4], 2
lea rcx, [rbp + 0xe0]
call fcn.140007b34
mov edi, 0x80070000
test eax, eax
jne 0x140016ecd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140016ec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
jmp 0x140016ecd
mov ebx, 0x80004005
test ebx, ebx
js 0x1400177e6
mov r14, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x50]
xor eax, eax
mov ebx, eax
mov edi, eax
mov qword [rbp - 0x78], rax
mov qword [rbp + 0x10], rax
cmp ax, word [r15]
je 0x140017102
cmp ax, word [rbp + 0x190]
je 0x140017102
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, str.RecordUnfinishedSourcesDownloadJob:_Record_unfinished_download_job_to_copy___s__to___s_.
mov edx, 0x4000000
lea rcx, [0x140035900]
call fcn.140003040
mov r8, r14
lea rdx, str._I64u
lea rcx, [rbp + 0x10]
call fcn.1400092a0
mov r14, qword [rbp + 0x10]
test eax, eax
js 0x140017021
mov r8, rsi
lea rdx, str._I64u
lea rcx, [rbp - 0x78]
call fcn.1400092a0
mov esi, eax
mov dword [rsp + 0x54], eax
test eax, eax
js 0x14001701d
lea rdx, str._downloadsources.stm
lea rcx, [rbp + 0x190]
call fcn.14000897c
mov rbx, rax
test rax, rax
je 0x140017017
mov r9, r15
lea r8, str.Source
mov rcx, rax
call fcn.14001d570
test eax, eax
je 0x140017017
lea r9, [rbp + 0x190]
lea r8, str.Destination
mov rcx, rbx
call fcn.14001d570
test eax, eax
je 0x140017017
mov r9, r14
lea r8, str.RemainingSizeInBytes
mov rcx, rbx
call fcn.14001d570
test eax, eax
je 0x140017017
mov rdi, qword [rbp - 0x78]
mov r9, rdi
lea r8, str.CopiedSizeInBytes
mov rcx, rbx
call fcn.14001d570
test eax, eax
je 0x140017064
xor esi, esi
mov dword [rsp + 0x54], esi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, str.RecordUnfinishedSourcesDownloadJob:_Successfully_recorded_unfinished_download_job_to_copy___s__to___s_.
mov edx, 0x4000000
lea rcx, [0x140035900]
call fcn.140003040
jmp 0x140017091
mov rdi, qword [rbp - 0x78]
jmp 0x140017064
mov rdi, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001705b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140017060
mov esi, 0x80004005
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, str.RecordUnfinishedSourcesDownloadJob:_Failed_to_record_unfinished_download_job_to_copy___s__to___s___hr__0x_08x.
mov edx, 0x4000000
lea rcx, [0x140035900]
call fcn.140003040
xor esi, esi
test rbx, rbx
je 0x1400170b6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rdi, rdi
je 0x1400170db
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x140017104
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140017104
xor esi, esi
cmp dword [rsp + 0x54], esi
jl 0x1400171b8
mov rbx, qword [rbp - 8]
add rbx, 0x424
cmp si, word [rbx]
je 0x1400171b8
mov rcx, rbx
call fcn.140004e8c
test eax, eax
je 0x1400171b8
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x130], rbx
lea rax, [rbp + 0x190]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x160], rsi
mov qword [rbp + 0x168], rsi
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x148], rsi
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x158], rsi
or dword [rbp + 0x144], 2
lea rcx, [rbp + 0x130]
call fcn.140007b34
mov r9, rbx
lea rcx, [0x1400356c0]
test eax, eax
je 0x1400171a7
lea r8, str.DownloadExecuteWaitCleanup:_Successfully_copied_contents_of_private_folder___s_
mov edx, 0x4000000
jmp 0x1400171b3
lea r8, str.DownloadExecuteWaitCleanup:_Failed_to_copy_contents_of_private_folder___s_
mov edx, 0x2000000
call fcn.140003040
mov edx, 0x192
mov rcx, qword [rsp + 0x68]
call fcn.14001922c
mov r14d, esi
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x14001734b
lea rax, [rbp + 0x190]
mov rbx, r12
inc rbx
cmp word [rax + rbx*2], si
jne 0x1400171e1
mov rdi, r12
inc rdi
cmp word [r8 + rdi*2], si
jne 0x1400171ed
test ebx, ebx
je 0x140017235
movzx edx, word [r8]
lea eax, [rbx - 1]
mov r9d, 0x5c
cmp r9w, word [rbp + rax*2 + 0x190]
jne 0x14001722d
lea rax, [r8 + 2]
cmp r9w, dx
cmovne rax, r8
mov qword [rbp - 0x50], rax
lea eax, [rdi - 1]
cmovne eax, edi
mov edi, eax
jmp 0x140017235
cmp r9w, dx
cmovne r14d, r13d
lea ecx, [rdi + 1]
add ecx, r14d
add ecx, ebx
mov r15d, ecx
lea r8, [rcx + rcx]
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
xor ecx, ecx
test rax, rax
jne 0x140017289
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
mov rsi, rcx
mov r15, qword [rsp + 0x70]
jmp 0x14001735d
mov r9d, ebx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x190]
mov rdx, r15
mov rcx, rsi
call fcn.140008850
mov ebx, eax
test eax, eax
js 0x140017317
test r14d, r14d
je 0x1400172e6
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x140028e20]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
call fcn.140008850
mov ebx, eax
test ebx, ebx
js 0x140017317
mov r9d, edi
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
call fcn.140003a3c
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140017317
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
jmp 0x14001727f
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
movzx ecx, bx
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
xor ecx, ecx
jmp 0x14001727c
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 0x57
xor ecx, ecx
cmp dword [rsp + 0x54], ecx
jl 0x1400177c8
test rsi, rsi
je 0x1400177b0
cmp cx, word [rsi]
je 0x1400177b0
mov r14, r12
mov rax, qword [rbp - 0x18]
inc r14
cmp word [rax + r14*2], cx
jne 0x140017380
mov rdi, r12
mov rax, qword [rbp - 0x20]
inc rdi
cmp word [rax + rdi*2], cx
jne 0x140017391
mov rbx, r12
inc rbx
cmp word [r15 + rbx*2], cx
jne 0x14001739d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r12, [rdi + 0x46]
add r12, r14
add r12, rbx
mov r12d, r12d
lea r8, [r12 + r12]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r15, rax
xor edi, edi
test rax, rax
je 0x1400177b4
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, str.OSImagePath
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, str.BTFolderPath
mov qword [rsp + 0x20], rax
lea r9, str.runlocal
lea r8, str.__s___s:_s___s:__s___s
mov edx, r12d
mov rcx, r15
call fcn.1400185a4
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140008cb0
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140017479
lea rdx, [rsp + 0x58]
mov rcx, qword [rbp - 0x38]
call fcn.140016578
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rsp + 0x58]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140017488
mov dword [rcx], eax
test ebx, ebx
jne 0x1400174c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 0x20d
mov rbx, qword [rsp + 0x68]
mov r8, rbx
mov edx, r13d
mov rcx, qword [rsp + 0x60]
call fcn.140018c5c
mov eax, dword [rsp + 0x58]
jmp 0x1400174c7
mov rbx, qword [rsp + 0x68]
cmp eax, 0xbc3
jne 0x140017790
mov edx, 0x190
mov rcx, rbx
call fcn.14001922c
mov qword [rbp], rdi
lea rcx, [rbp]
call fcn.14000b0fc
mov rbx, qword [rbp]
test eax, eax
js 0x1400174ff
mov edx, r13d
mov rcx, rbx
call fcn.14000b1c8
test rbx, rbx
je 0x140017514
mov rcx, rbx
call fcn.14000a294
mov rcx, rbx
call fcn.140024370
mov r14d, edi
lea rax, [rbp + 0x190]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], di
jne 0x140017522
mov qword [rbp - 8], rdx
test edx, edx
je 0x140017547
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rbp + rcx*2 + 0x190]
cmovne r14d, r13d
lea eax, [rdx + 3]
add eax, r14d
mov edi, eax
lea r8, [rax + rax]
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140017591
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
xor r14d, r14d
jmp 0x140017653
mov r9d, dword [rbp - 8]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x190]
mov rdx, rdi
mov rcx, rbx
call fcn.140008850
mov edi, eax
test eax, eax
js 0x140017623
test r14d, r14d
je 0x1400175ef
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x140028e20]
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140008850
mov edi, eax
xor r14d, r14d
test edi, edi
js 0x140017626
lea r9d, [r14 + 2]
lea r8, [0x14002af38]
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140003a3c
mov edi, eax
test eax, eax
js 0x140017626
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], r14d
jmp 0x140017656
xor r14d, r14d
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
movzx ecx, di
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
mov rbx, r14
xor edx, edx
mov rcx, rbx
call fcn.140018100
cmp eax, r13d
jne 0x140017762
lea rdx, [rbp + 0x190]
mov rcx, rbx
call fcn.140018100
cmp eax, r13d
jne 0x140017762
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, str.OSImagePath
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, str.BTFolderPath
mov qword [rsp + 0x28], rax
lea rax, str.durestart
mov qword [rsp + 0x20], rax
lea r9, str.runlocal
lea r8, str.__s___s___s:_s___s:__s___s
mov rdx, r12
mov rcx, r15
call fcn.1400185a4
mov qword [rbp - 0x10], r14
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.140008cb0
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140017720
lea rdx, [rsp + 0x58]
mov rcx, qword [rbp - 0x10]
call fcn.140016578
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14001772f
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
test ebx, ebx
jne 0x140017790
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 0x20d
mov r8, qword [rsp + 0x68]
mov edx, r13d
mov rcx, qword [rsp + 0x60]
call fcn.140018c5c
jmp 0x140017790
xor esi, esi
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
mov r9d, 0x20c
mov r8, qword [rsp + 0x68]
mov edx, r13d
mov rcx, qword [rsp + 0x60]
call fcn.140018c5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov edi, dword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
lea rcx, [rbp + 0x90]
call fcn.14001cd84
nop
jmp 0x140017810
xor esi, esi
mov edi, esi
lea r8, str.DownloadExecuteWaitCleanup:_Failed_to_record_the_unfinished_download_job_for_Sources_folder.
mov edx, 0x2000000
lea rcx, [0x1400356c0]
call fcn.140003040
jmp 0x1400177b4
mov dword [rbp + 0x20], ebx
mov r12, qword [rsp + 0x60]
mov rdx, r12
lea rcx, [rbp + 0x20]
call fcn.140018d1c
mov edi, dword [rsp + 0x50]
jmp 0x1400177b9
mov rax, qword [rcx + 8]
mov qword [rbp + 0xb0], rax
call fcn.140024370
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
jne 0x140017800
mov qword [rbp + 0xb8], rcx
jmp 0x140017835
mov rax, qword [rcx + 8]
mov qword [rbp + 0x98], rax
call fcn.140024370
mov rcx, qword [rbp + 0x98]
test rcx, rcx
jne 0x140017825
mov qword [rbp + 0xa0], rcx
test edi, edi
jne 0x14001787c
jmp 0x140017857
mov edi, dword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
mov r9d, 0x210
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, r12
call fcn.140018c5c
mov edx, 0x190
mov rcx, qword [rsp + 0x68]
call fcn.14001922c
mov eax, edi
jmp 0x1400178b8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r9d, 0x20e
mov r8, r15
mov edx, 1
mov rcx, r12
call fcn.140018c5c
xor eax, eax
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140023d70
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret