Function at 0x14000314c
Capabilities:
Encode data using xor
Get file size
Hash data with crc32

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [0x14002b418]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x2e0]
xor r12d, r12d
mov rbx, r9
mov qword [rbp - 0x28], rax
mov rdi, rcx
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x74], r12d
mov r14b, r12b
mov qword [rsp + 0x58], r12
mov esi, r12d
mov qword [rbp - 0x48], rdx
mov qword [rsp + 0x78], r8
call fcn.140004e70
test al, al
lea rcx, [rsp + 0x78]
sete al
mov byte [rdi + 8], al
call fcn.140004e70
mov ecx, 0x10000
call fcn.140005f30
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x68], rax
lea r15d, [r12 + 1]
mov qword [rbp - 0x80], r12
call fcn.14000611c
mov eax, r15d
mov byte [rsp + 0x51], r12b
mov r9d, r15d
mov dword [rbp - 0x70], eax
mov r8d, r15d
mov dword [rbp - 0x6c], eax
lea rdx, str.HTTP__u._u
mov byte [rsp + 0x60], r12b
lea rcx, [rbp + 0x10]
lea r13d, [r12 + 0x50]
call fcn.14000225c
mov eax, dword [0x14001eba0]
lea r12, [rbp - 0x10]
movups xmm0, xmmword [str.ConEmu_Update]
xor ecx, ecx
mov dword [rbp + 8], eax
movsd xmm1, qword [0x14001eb98]
mov rax, qword [rdi + 0x90]
test rax, rax
mov qword [rbp - 0x18], rcx
mov dword [rsp + 0x70], ecx
lea rcx, [rbp - 0x68]
cmovne r12, rax
movsd qword [rbp], xmm1
lea rax, [0x14001eba8]
mov qword [rbp - 0x20], rax
movups xmmword [rbp - 0x10], xmm0
call fcn.1400078a0
mov rcx, rdi
cmp qword [rdi], rsi
jne 0x14000327b
call fcn.140004c8c
test al, al
je 0x140004023
jmp 0x140003282
xor edx, edx
call fcn.140002490
and qword [rsp + 0x28], rsi
lea r8, str.File_download_requested__s
mov rsi, qword [rbp - 0x48]
mov r9d, 2
mov edx, r9d
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call fcn.14000550c
mov rcx, qword [rdi + 0xd8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0xe8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor ecx, ecx
mov qword [rdi + 0x60], rcx
mov byte [rdi + 0xa], cl
or dword [rbx], 0xffffffff
lea edx, [rcx + 0x2f]
cmp byte [rdi + 8], cl
je 0x1400033d2
movabs rax, 0x70007400740068
cmp qword [rsi], rax
jne 0x140003328
cmp dword [rsi + 8], 0x2f003a
jne 0x140003302
cmp word [rsi + 0xc], dx
jne 0x140003302
mov byte [rsp + 0x51], cl
lea rbx, [rsi + 0xe]
jmp 0x140003357
cmp qword [rsi], rax
jne 0x140003328
movabs rax, 0x2f002f003a0073
cmp qword [rsi + 8], rax
jne 0x140003328
mov byte [rsp + 0x51], r15b
lea rbx, [rsi + 0x10]
mov r13d, 0x1bb
jmp 0x140003357
movabs rax, 0x3a007000740066
cmp qword [rsi], rax
jne 0x140003462
cmp dword [rsi + 8], 0x2f002f
jne 0x140003462
mov byte [rsp + 0x60], r15b
lea rbx, [rsi + 0xc]
mov r13d, 0x15
mov rcx, rbx
call fcn.140008d20
xor ecx, ecx
mov r14, rax
test rax, rax
je 0x140003430
cmp rax, rbx
je 0x140003430
sub rax, rbx
sar rax, 1
cmp rax, 0x104
jge 0x140003430
cmp word [r14 + 2], cx
jne 0x14000339b
lea r8, str.Invalid_server_path_specified__n_s
jmp 0x140003437
lea r8d, [rax + 1]
mov rdx, rbx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor r8d, r8d
lea rcx, [rbp - 0x48]
mov rdx, r14
call fcn.140007a24
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140006134
lea rcx, [rbp - 0x48]
call fcn.14000612c
xor ecx, ecx
test rsi, rsi
je 0x140004007
cmp word [rsi], cx
je 0x140004007
mov r14, qword [rsp + 0x78]
test r14, r14
je 0x140004007
cmp word [r14], cx
je 0x140004007
mov rbx, qword [rsp + 0x68]
test rbx, rbx
jne 0x140003491
xor r13d, r13d
lea r8, str.Failed_to_allocate_memory___u_bytes_
mov qword [rsp + 0x28], r13
mov r9d, r15d
xor edx, edx
mov dword [rsp + 0x20], 0x10000
mov rcx, rdi
call fcn.14000550c
jmp 0x140003457
lea r8, str.Invalid_server__domain__specified__n_t_s
xor r13d, r13d
xor edx, edx
mov qword [rsp + 0x28], r13
mov rcx, rdi
mov qword [rsp + 0x20], rsi
lea r9d, [r13 + 2]
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
mov rsi, r13
mov r14b, r13b
jmp 0x140003f22
xor r13d, r13d
lea r8, str.Only_http_addresses_are_supported__n_t_s
mov qword [rsp + 0x28], r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
lea r9d, [r13 + 2]
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
mov esi, r13d
jmp 0x140003f22
lea rdx, [0x14001ed6c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x1400034b9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x1400034de
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov dword [rsp + 0x28], ecx
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003fc7
mov al, bl
xor al, r15b
mov byte [rsp + 0x50], al
xor eax, eax
cmp byte [rdi + 8], al
je 0x140003dd8
mov rax, qword [rdi + 0x68]
xor r14d, r14d
test rax, rax
je 0x140003526
cmp word [rax], r14w
je 0x140003523
lea r15d, [r14 + 3]
mov qword [rbp - 0x80], rax
mov rbx, rax
jmp 0x140003529
mov r15d, r14d
mov rbx, r14
cmp byte [rdi + 0x108], r14b
jne 0x140004030
cmp qword [rdi + 0x10], r14
jne 0x140003731
mov r9d, 2
mov qword [rsp + 0x28], r14
mov edx, r9d
mov qword [rsp + 0x20], r12
lea r8, str.Open_internet_with_agent_name__s
mov rcx, rdi
call fcn.14000550c
mov al, byte [rdi + 9]
mov r8, rbx
neg al
mov edx, r15d
mov rax, qword [rdi]
sbb ecx, ecx
xor r9d, r9d
and ecx, 0x10000000
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x20], ecx
mov rcx, r12
call qword [rax + 0x28]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400035ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
lea r8, str.Network_initialization_failed__code_u
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov r9d, 1
xor edx, edx
mov rcx, rdi
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
jmp 0x140003f1d
mov r9d, 1
mov qword [rsp + 0x28], r14
lea r8, str.Internet_opened_x_08X
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.14000550c
cmp byte [rdi + 9], r14b
je 0x140003638
mov rax, qword [rdi]
lea rdx, [0x1400043f4]
mov rcx, qword [rdi + 0x10]
call qword [rax + 0x48]
mov qword [rdi + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x140003638
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov qword [rsp + 0x28], r14
lea r8, str.Failed_to_set_internet_status_callback__code_u
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rdi
call fcn.14000550c
mov byte [rdi + 9], r14b
cmp byte [rdi + 0x108], r14b
jne 0x140004030
test rbx, rbx
je 0x14000365e
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.14000590c
test al, al
je 0x140004030
mov eax, dword [rbp - 0x6c]
lea r8, str.Set_protocol_version___u._u_
mov qword [rsp + 0x38], r14
mov r9d, 1
mov dword [rsp + 0x30], eax
mov rcx, rdi
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x28], 1
lea edx, [r9 + 1]
mov dword [rsp + 0x20], eax
call fcn.14000550c
mov rax, qword [rdi]
lea r8, [rbp - 0x70]
mov rcx, qword [rdi + 0x10]
mov r9d, 8
lea edx, [r9 + 0x33]
call qword [rax + 0x38]
test eax, eax
jne 0x1400036d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
lea r9d, [r13 + 1]
mov qword [rsp + 0x28], r13
lea r8, str.HttpVersion_failed__code_u
mov dword [rsp + 0x20], eax
jmp 0x1400035b1
xor r9d, r9d
lea r8, str.Set_IGNORE_OFFLINE_option
mov rcx, rdi
lea edx, [r9 + 2]
call fcn.14000550c
mov rax, qword [rdi]
lea r8, [rsp + 0x70]
mov rcx, qword [rdi + 0x10]
mov r9d, 4
mov dword [rsp + 0x70], 1
lea edx, [r9 + 0x49]
call qword [rax + 0x38]
test eax, eax
jne 0x140003731
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov qword [rsp + 0x28], r14
lea r8, str.Set_IGNORE_OFFLINE_option__code_u
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rdi
call fcn.14000550c
mov rcx, rdi
call fcn.140005a50
test al, al
je 0x140004030
mov edx, 0x3a
lea rcx, [rbp + 0x50]
call fcn.140008d9c
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14000377b
mov word [rax], r14w
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x38]
mov r8d, 0xa
add rcx, 2
call fcn.14000d5a4
test ax, ax
cmovne r13w, ax
movzx eax, byte [rsp + 0x60]
lea r8, str.Connecting_to_server__s:_u___u_
mov qword [rsp + 0x48], r14
xor eax, 1
mov r9d, 2
mov dword [rsp + 0x70], r14d
mov edx, r9d
mov rcx, rdi
lea ebx, [rax*2 + 1]
movzx eax, r13w
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.14000550c
lea r12, [rdi + 0x30]
or r8d, 0xffffffff
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140007938
mov eax, dword [rsp + 0x70]
lea rdx, [rbp + 0x50]
mov r10, qword [rdi]
movzx r8d, r13w
mov r9, qword [rdi + 0x80]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x88]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x20]
xor r13d, r13d
mov r15, rax
test rax, rax
jne 0x140003830
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rcx, [rbp - 0x68]
mov dword [rsp + 0x74], r14d
call fcn.1400079fc
mov eax, r14d
cmp byte [rdi + 9], r13b
je 0x1400038a3
cmp r14d, 0x3e5
jne 0x1400038a3
mov rcx, qword [rdi + 0xe8]
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 1
mov qword [rsp + 0x28], r13
lea r8, str.Async_operation__HANDLE__wait_u
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov ebx, eax
lea edx, [r9 + 1]
call fcn.14000550c
mov eax, r14d
test ebx, ebx
jne 0x1400038a3
mov r14d, dword [rdi + 0x100]
mov eax, r14d
mov r15, qword [rdi + 0xf8]
mov dword [rsp + 0x74], r14d
mov qword [rdi + 0x18], r15
test r15, r15
jne 0x1400038df
cmp dword [rbp + 0x2e8], r13d
je 0x1400035bb
cmp eax, 0x2eef
mov qword [rsp + 0x28], r13
lea rcx, str.Authorization_failed__code_u
mov dword [rsp + 0x20], r14d
lea r8, str.Connection_failed__code_u
cmove r8, rcx
jmp 0x1400035ab
mov r14d, 1
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
lea r8, str.Connect_opened_x_08X
mov r9d, r14d
mov rcx, rdi
lea r15d, [r14 + 1]
mov edx, r15d
call fcn.14000550c
cmp qword [rbp - 0x80], r13
je 0x140003922
mov rdx, qword [rdi + 0x18]
mov rcx, rdi
call fcn.14000590c
test al, al
je 0x1400035bb
mov rax, qword [rdi]
lea r8, [rbp - 0x70]
mov rcx, qword [rdi + 0x18]
mov r9d, 8
lea edx, [r9 + 0x33]
call qword [rax + 0x38]
test eax, eax
jne 0x14000394c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, r14d
jmp 0x1400036bb
cmp byte [rdi + 0x108], r13b
jne 0x1400035bb
cmp byte [rsp + 0x60], r13b
je 0x140003bb7
lea rcx, [rbp - 0x58]
mov byte [rdi + 0xa], r14b
call fcn.140006180
mov r15d, 0x2f
mov rcx, rax
mov edx, r15d
call fcn.140008d9c
lea rcx, [rbp - 0x58]
mov r14, rax
call fcn.140006180
cmp r14, rax
jne 0x1400039bd
mov r14, r13
lea rcx, [rbp - 0x58]
lea rbx, [0x14001f0e4]
call fcn.140006180
xor edx, edx
lea rcx, [rbp - 0x58]
cmp word [rax], r15w
jne 0x1400039da
call fcn.1400065c4
lea r15, [rax + 2]
jmp 0x1400039e2
test r14, r14
je 0x140003996
xor edx, edx
mov word [r14], r13w
lea rcx, [rbp - 0x58]
lea r15, [r14 + 2]
call fcn.1400065c4
mov rbx, rax
jmp 0x1400039e2
call fcn.1400065c4
mov r15, rax
or r8d, 0xffffffff
lea rcx, [rbp - 0x68]
mov rdx, r12
call fcn.140007938
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, qword [rdi + 0x18]
call qword [rax + 0x50]
lea r9, [rbp - 0x68]
mov rcx, rdi
mov edx, eax
lea r8, [rsp + 0x74]
call fcn.140004180
test al, al
jne 0x140003a6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], r13
lea r8, str.Ftp_set_directory_failed__s__code_u
mov dword [rsp + 0x30], eax
mov r9d, 2
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x140003f1d
mov eax, 0x2f
mov word [r14], ax
jmp 0x140003f1d
test r14, r14
je 0x140003a78
mov eax, 0x2f
mov word [r14], ax
or r8d, 0xffffffff
mov dword [rsp + 0x70], 2
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140007938
mov rax, qword [rdi]
mov r8d, 0x80000000
mov r9d, dword [rsp + 0x70]
mov rdx, r15
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rdi
call qword [rax + 0x58]
mov r15, rax
test rax, rax
je 0x140003aba
mov ebx, r13d
jmp 0x140003ac2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.1400079fc
cmp byte [rdi + 9], r13b
je 0x140003b1a
cmp ebx, 0x3e5
jne 0x140003b1a
mov rcx, qword [rdi + 0xe8]
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 1
mov qword [rsp + 0x28], r13
lea r8, str.Async_operation__HANDLE__wait_u
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov ebx, eax
lea edx, [r9 + 1]
call fcn.14000550c
test ebx, ebx
jne 0x140003b1a
mov r15, qword [rdi + 0xf8]
mov r9d, 1
mov qword [rdi + 0x20], r15
mov qword [rsp + 0x28], r13
lea r8, str.Ftp_file_opened_x_08X
mov qword [rsp + 0x20], r15
mov rcx, rdi
lea r15d, [r9 + 1]
mov edx, r15d
call fcn.14000550c
test r14, r14
je 0x140003b51
lea eax, [r15 + 0x2d]
mov word [r14], ax
mov rax, qword [rdi + 0x20]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003b67
mov dword [rdi + 0x60], r13d
jmp 0x140003d9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2e8], r13d
je 0x1400035bb
mov qword [rsp + 0x38], r13
lea rcx, str.Ftp_open_file_failed_nURL_s_ncode_u__Internet_is_offline_
mov dword [rsp + 0x30], eax
lea r8, str.Ftp_open_file_failed_nURL_s_ncode_u
mov dword [rsp + 0x28], 1
cmp eax, r15d
mov r9d, r15d
cmove r8, rcx
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rdi
call fcn.14000550c
jmp 0x1400035bb
neg byte [rsp + 0x51]
lea r8, str.Opening_request_with_flags_x_08X
mov qword [rsp + 0x28], r13
mov r9d, r14d
sbb eax, eax
mov edx, r15d
and eax, 0x803000
mov rcx, rdi
add eax, 0x84000100
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x20], eax
call fcn.14000550c
mov rbx, qword [rdi]
lea rcx, [rbp - 0x58]
call fcn.140006180
mov rcx, qword [rdi + 0x18]
lea r9, [rbp + 0x10]
mov r8, rax
mov qword [rsp + 0x38], rdi
mov eax, dword [rsp + 0x70]
lea rdx, [0x14001f288]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [rbx]
mov rcx, rax
mov qword [rdi + 0x20], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003da4
mov qword [rsp + 0x28], r13
lea r8, str.Http_file_opened_x_08X
mov qword [rsp + 0x20], rcx
mov r9d, r14d
mov rcx, rdi
mov edx, r15d
call fcn.14000550c
xor r9d, r9d
lea r8, str.Sending_request
mov edx, r15d
mov rcx, rdi
call fcn.14000550c
mov rcx, qword [rdi + 0xe8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
or r8d, 0xffffffff
lea rcx, [rbp - 0x68]
mov rdx, r12
call fcn.140007938
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r13d
call qword [rax + 0x10]
lea r9, [rbp - 0x68]
mov rcx, rdi
mov edx, eax
lea r8, [rsp + 0x74]
call fcn.140004180
test al, al
jne 0x140003cec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2e8], r13d
je 0x1400035bb
mov qword [rsp + 0x38], r13
lea r8, str.HttpSendRequest_failed__code_u_n_tURL_s
mov qword [rsp + 0x30], rsi
mov r9d, r14d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
jmp 0x140003ba8
mov eax, 0x20000005
mov qword [rsp + 0x28], r13
mov r9d, r14d
mov dword [rsp + 0x70], eax
lea r8, str.Querying_file_info_with_flags_x_08X
mov dword [rsp + 0x20], eax
mov edx, r15d
mov dword [rdi + 0x60], r13d
mov rcx, rdi
mov dword [rbp - 0x80], 4
mov dword [rbp - 0x48], r13d
call fcn.14000550c
or r8d, 0xffffffff
lea rcx, [rbp - 0x68]
mov rdx, r12
call fcn.140007938
mov rax, qword [rdi]
lea rcx, [rbp - 0x48]
mov edx, dword [rsp + 0x70]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
lea r8, [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [rax + 8]
lea r9, [rbp - 0x68]
mov rcx, rdi
mov edx, eax
lea r8, [rsp + 0x74]
call fcn.140004180
mov qword [rsp + 0x28], r13
mov r9d, r14d
mov edx, r15d
mov rcx, rdi
test al, al
jne 0x140003d87
mov eax, dword [rsp + 0x74]
lea r8, str.Warning:_Querying_file_info_failed__code_u
mov dword [rdi + 0x60], r13d
jmp 0x140003d91
mov eax, dword [rdi + 0x60]
lea r8, str.File_length_retrieved:__u_bytes
mov dword [rsp + 0x20], eax
call fcn.14000550c
mov r14, qword [rsp + 0x78]
jmp 0x140003e64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2e8], r13d
je 0x1400035bb
mov qword [rsp + 0x38], r13
lea rcx, str.HttpOpenRequest_failed_nURL_s_ncode_u__Internet_is_offline_
mov dword [rsp + 0x30], eax
lea r8, str.HttpOpenRequest_failed_nURL_s_ncode_u
mov dword [rsp + 0x28], r14d
jmp 0x140003b99
xor r9d, r9d
lea r8, str.Opening_source_from_file_system
mov rcx, rdi
lea edx, [r9 + 2]
call fcn.14000550c
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x80000000
mov dword [rsp + 0x28], r13d
mov rcx, rsi
lea r15d, [r13 + 3]
lea r8d, [r13 + 1]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rdi + 0x20], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003f9e
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140003e64
mov rax, qword [rsp + 0x78]
lea r9d, [r13 + 1]
mov qword [rsp + 0x28], r13
lea r8, str.File_length:__u_bytes
lea edx, [r13 + 2]
mov dword [rdi + 0x60], eax
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
cmp byte [rdi + 0x108], r13b
jne 0x1400035c0
mov r15, qword [rsp + 0x58]
movzx r8d, byte [rdi + 8]
lea rax, [rbp - 0x78]
mov r9, qword [rdi + 0x20]
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov qword [rsp + 0x20], rbx
call fcn.140005324
test eax, eax
je 0x140003f1a
mov edx, dword [rbp - 0x78]
test edx, edx
je 0x140003f5e
mov r10, qword [rbp - 0x30]
mov r8d, edx
mov r9, rbx
movzx ecx, byte [r9]
lea r11, [0x14002b010]
movzx eax, byte [r10]
inc r9
xor rcx, rax
mov eax, dword [r10]
shr eax, 8
xor eax, dword [r11 + rcx*4]
mov dword [r10], eax
sub r8, 1
jne 0x140003ebe
mov dword [rsp + 0x20], edx
mov r9, rbx
mov rdx, r14
mov r8, r15
mov rcx, rdi
call fcn.140005d0c
test eax, eax
je 0x140003f1a
mov eax, dword [rbp - 0x78]
mov rcx, rdi
add dword [rdi + 0x64], eax
call fcn.140005ce0
cmp byte [rdi + 0x108], r13b
je 0x140003e7b
mov rsi, r15
mov r14b, byte [rsp + 0x50]
mov rcx, qword [rbp - 0x28]
mov edx, 2
mov eax, dword [rdi + 0x64]
mov r15d, dword [rbp - 0x74]
mov dword [rcx], eax
mov rcx, rdi
test r15d, r15d
je 0x140004042
mov qword [rsp + 0x28], r13
lea r9d, [rdx - 1]
lea r8, str.Download_finished___u_bytes_retrieved
mov dword [rsp + 0x20], eax
call fcn.14000550c
jmp 0x140004051
cmp dword [rdi + 0x64], r13d
jne 0x140003f87
mov qword [rsp + 0x28], r13
lea r8, str.Invalid_source_url__s__file_is_empty_or_not_found
mov r9d, 2
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rdi
call fcn.14000550c
jmp 0x140003f1a
mov rbx, qword [rbp - 0x30]
mov dword [rbp - 0x74], 1
not dword [rbx]
mov rbx, qword [rsp + 0x68]
jmp 0x140003f1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], r13
lea r8, str.Failed_to_open_source_file__s___code_u
mov dword [rsp + 0x30], eax
mov r9d, 2
mov dword [rsp + 0x28], 1
jmp 0x140003ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
lea r8, [0x14001ed70]
mov qword [rsp + 0x38], r13
xor edx, edx
mov dword [rsp + 0x30], eax
mov rcx, rdi
mov dword [rsp + 0x28], r15d
lea r9d, [r13 + 2]
mov qword [rsp + 0x20], r14
call fcn.14000550c
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
jmp 0x14000345a
xor r9d, r9d
lea r8, str.DownloadFile._Invalid_arguments
xor edx, edx
mov rcx, rdi
call fcn.14000550c
mov rsi, qword [rsp + 0x58]
mov r14b, sil
mov rbx, qword [rsp + 0x68]
xor r13d, r13d
jmp 0x140003f22
mov rbx, qword [rsp + 0x68]
xor r13d, r13d
mov rsi, qword [rsp + 0x58]
jmp 0x140003f1d
xor r9d, r9d
lea r8, str.Download_failed
call fcn.14000550c
cmp byte [rdi + 8], r13b
je 0x140004067
test r15d, r15d
mov rcx, rdi
sete dl
call fcn.140002490
jmp 0x14000407f
mov rcx, qword [rdi + 0x20]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000407b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], r13
test r14b, r14b
je 0x140004097
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004097
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400040a4
mov rcx, rbx
call fcn.140005eb8
lea rcx, [rbp - 0x68]
call fcn.1400078e4
lea rcx, [rbp - 0x58]
call fcn.14000612c
mov eax, r15d
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140008010
add rsp, 0x378
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret