Function at 0x140002f2c
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x288]
sub rsp, 0x388
mov rax, qword [0x14002a428]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x2f0]
xor r12d, r12d
mov qword [rbp - 0x40], rdx
mov esi, r12d
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x78], r12d
mov rdi, rcx
mov byte [rsp + 0x78], r12b
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x68], r8
call fcn.140004c48
test al, al
lea rdx, [rbp - 0x68]
mov rcx, rdi
sete al
mov byte [rdi + 0x10], al
call fcn.140004c48
mov ecx, 0x10000
call fcn.140005c2c
lea ecx, [r12 + 1]
mov qword [rsp + 0x70], rax
mov r15d, ecx
mov dword [rbp - 0x70], ecx
mov dword [rbp - 0x6c], ecx
lea rdx, str.HTTP__u._u
mov r9d, ecx
mov qword [rbp - 0x50], r12
mov r8d, ecx
mov qword [rsp + 0x68], r12
lea rcx, [rbp + 0x20]
mov byte [rsp + 0x50], r12b
mov rbx, rax
mov byte [rsp + 0x60], r12b
mov r14d, r12d
lea r13d, [r12 + 0x50]
call fcn.140002040
mov eax, dword [0x14001db80]
lea r12, [rbp - 8]
movups xmm0, xmmword [str.ConEmu_Update]
xor ecx, ecx
mov dword [rbp + 0x10], eax
movsd xmm1, qword [0x14001db78]
mov rax, qword [rdi + 0x98]
test rax, rax
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x60]
movsd qword [rbp + 8], xmm1
cmovne r12, rax
lea rax, [0x14001db88]
mov qword [rbp - 0x18], rax
movups xmmword [rbp - 8], xmm0
call fcn.140006f14
xor eax, eax
mov rcx, rdi
cmp qword [rdi + 8], rax
jne 0x14000305c
call fcn.1400049bc
test al, al
je 0x140003213
jmp 0x140003063
xor edx, edx
call fcn.1400022f8
mov rsi, qword [rbp - 0x40]
lea r8, str.File_download_requested__s
xor eax, eax
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov eax, 2
mov r9d, eax
mov qword [rsp + 0x20], rsi
mov edx, eax
call fcn.140005294
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbp - 0x30]
xor ecx, ecx
mov qword [rdi + 0x68], rcx
mov byte [rdi + 0x12], cl
or dword [rax], 0xffffffff
lea edx, [rcx + 0x2f]
cmp byte [rdi + 0x10], cl
je 0x1400031b1
movabs rax, 0x70007400740068
cmp qword [rsi], rax
jne 0x140003110
cmp dword [rsi + 8], 0x2f003a
jne 0x1400030ea
cmp word [rsi + 0xc], dx
jne 0x1400030ea
mov byte [rsp + 0x50], cl
lea rbx, [rsi + 0xe]
jmp 0x14000313f
cmp qword [rsi], rax
jne 0x140003110
movabs rax, 0x2f002f003a0073
cmp qword [rsi + 8], rax
jne 0x140003110
mov byte [rsp + 0x50], r15b
lea rbx, [rsi + 0x10]
mov r13d, 0x1bb
jmp 0x14000313f
movabs rax, 0x3a007000740066
cmp qword [rsi], rax
jne 0x14000327c
cmp dword [rsi + 8], 0x2f002f
jne 0x14000327c
mov byte [rsp + 0x60], r15b
lea rbx, [rsi + 0xc]
mov r13d, 0x15
mov rcx, rbx
call fcn.1400081f0
xor ecx, ecx
mov r14, rax
test rax, rax
je 0x14000324f
cmp rax, rbx
je 0x14000324f
sub rax, rbx
sar rax, 1
cmp rax, 0x104
jge 0x14000324f
cmp word [r14 + 2], cx
jne 0x140003183
lea r8, str.Invalid_server_path_specified__n_s
jmp 0x140003256
lfence
lea r8d, [rax + 1]
mov rdx, rbx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
mov rcx, r14
call fcn.140007108
mov rsi, qword [rbp - 0x40]
xor ecx, ecx
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
test rsi, rsi
je 0x140003d87
cmp word [rsi], cx
je 0x140003d87
mov r14, qword [rbp - 0x68]
test r14, r14
je 0x140003d87
cmp word [r14], cx
je 0x140003d87
test rbx, rbx
jne 0x1400032a5
mov qword [rsp + 0x28], rcx
lea r8, str.Failed_to_allocate_memory___u_bytes_
mov dword [rsp + 0x20], 0x10000
mov r9d, r15d
xor edx, edx
mov rcx, rdi
call fcn.140005294
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x20]
mov eax, dword [rdi + 0x6c]
mov r15d, dword [rbp - 0x78]
mov dword [rcx], eax
xor ecx, ecx
lea edx, [rcx + 2]
test r15d, r15d
je 0x140003daa
mov qword [rsp + 0x28], rcx
lea r9d, [rcx + 1]
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea r8, str.Download_finished___u_bytes_retrieved
call fcn.140005294
jmp 0x140003dbc
lea r8, str.Invalid_server__domain__specified__n_t_s
mov qword [rsp + 0x28], rcx
mov r9d, 2
mov rcx, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call fcn.140005294
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
jmp 0x14000329d
mov qword [rsp + 0x28], rcx
lea r8, str.Only_http_addresses_are_supported__n_t_s
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov r9d, 2
xor edx, edx
call fcn.140005294
mov rsi, r14
jmp 0x140003213
lea rdx, [0x14001dd4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x1400032cd
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x1400032f2
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 0x140003d50
mov al, bl
xor ebx, ebx
xor al, r15b
mov byte [rsp + 0x78], al
cmp byte [rdi + 0x10], bl
je 0x140003bc9
mov rax, qword [rdi + 0x70]
xor r14d, r14d
test rax, rax
je 0x14000333a
cmp word [rax], r14w
je 0x140003337
lea r15d, [rbx + 3]
mov qword [rbp - 0x50], rax
mov rbx, rax
jmp 0x14000333a
mov r15d, r14d
cmp byte [rdi + 0x110], r14b
jne 0x140003204
cmp qword [rdi + 0x18], r14
jne 0x140003530
mov eax, 2
mov qword [rsp + 0x28], r14
mov r9d, eax
mov qword [rsp + 0x20], r12
mov edx, eax
lea r8, str.Open_internet_with_agent_name__s
mov rcx, rdi
call fcn.140005294
mov al, byte [rdi + 0x11]
mov r8, rbx
neg al
mov edx, r15d
mov rax, qword [rdi + 8]
sbb ecx, ecx
xor r9d, r9d
and ecx, 0x10000000
mov dword [rsp + 0x7c], ecx
mov dword [rsp + 0x20], ecx
mov rcx, r12
call qword [rax + 0x28]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400033c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x28], r14
lea r8, str.Network_initialization_failed__code_u
mov dword [rsp + 0x20], eax
mov r9d, 1
jmp 0x1400031fa
mov r9d, 1
mov qword [rsp + 0x28], r14
lea r8, str.Internet_opened_x_08X
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r15d, [r9 + 1]
mov edx, r15d
call fcn.140005294
cmp byte [rdi + 0x11], r14b
je 0x140003436
mov rax, qword [rdi + 8]
lea rdx, [0x140004100]
mov rcx, qword [rdi + 0x18]
call qword [rax + 0x48]
mov qword [rdi + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140003436
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9d, [r15 - 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.140005294
mov byte [rdi + 0x11], r14b
cmp byte [rdi + 0x110], r14b
jne 0x140003204
test rbx, rbx
je 0x14000345c
mov rdx, qword [rdi + 0x18]
mov rcx, rdi
call fcn.1400055d8
test al, al
je 0x140003204
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 edx, r15d
mov eax, dword [rbp - 0x70]
mov rcx, rdi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
call fcn.140005294
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x70]
mov rcx, qword [rdi + 0x18]
mov r9d, 8
lea edx, [r9 + 0x33]
call qword [rax + 0x38]
test eax, eax
jne 0x1400034cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
lea r8, str.HttpVersion_failed__code_u
jmp 0x1400031fa
xor r9d, r9d
lea r8, str.Set_IGNORE_OFFLINE_option
mov edx, r15d
mov rcx, rdi
call fcn.140005294
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x7c]
mov rcx, qword [rdi + 0x18]
mov r9d, 4
mov dword [rsp + 0x7c], 1
lea edx, [r9 + 0x49]
call qword [rax + 0x38]
test eax, eax
jne 0x140003536
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.140005294
jmp 0x140003536
mov r15d, 2
mov rcx, rdi
call fcn.140005720
test al, al
je 0x140003204
mov edx, 0x3a
lea rcx, [rbp + 0x60]
call fcn.14000826c
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140003580
mov word [rax], r14w
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x38]
mov r8d, 0xa
add rcx, 2
call fcn.14000c870
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, r15d
mov dword [rsp + 0x7c], r14d
mov edx, r15d
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 + 0x60]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.140005294
lea r12, [rdi + 0x38]
or r8d, 0xffffffff
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.140006fb0
mov eax, dword [rsp + 0x7c]
lea rdx, [rbp + 0x60]
mov r10, qword [rdi + 8]
movzx r8d, r13w
mov r9, qword [rdi + 0x88]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x90]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x20]
mov r15, rax
test rax, rax
jne 0x140003630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x80], r14d
call fcn.140007074
xor ebx, ebx
mov eax, r14d
cmp byte [rdi + 0x11], bl
je 0x1400036a5
cmp r14d, 0x3e5
jne 0x1400036a5
mov rcx, qword [rdi + 0xf0]
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r13d, r13d
lea r8, str.Async_operation__HANDLE__wait_u
mov qword [rsp + 0x28], r13
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], eax
lea r9d, [r13 + 1]
lea edx, [r13 + 2]
call fcn.140005294
mov eax, r14d
test ebx, ebx
jne 0x1400036a3
mov r14d, dword [rdi + 0x108]
mov eax, r14d
mov r15, qword [rdi + 0x100]
mov dword [rbp - 0x80], r14d
xor ebx, ebx
mov qword [rdi + 0x20], r15
test r15, r15
jne 0x1400036e4
cmp dword [rbp + 0x2f8], ebx
je 0x140003204
cmp eax, 0x2eef
mov qword [rsp + 0x28], rbx
lea rcx, str.Authorization_failed__code_u
mov dword [rsp + 0x20], r14d
lea r8, str.Connection_failed__code_u
cmove r8, rcx
lea r9d, [r15 + 1]
jmp 0x1400031fa
mov r13d, 1
mov qword [rsp + 0x28], rbx
mov r9d, r13d
mov qword [rsp + 0x20], r15
lea r8, str.Connect_opened_x_08X
mov rcx, rdi
lea ebx, [r13 + 1]
mov edx, ebx
call fcn.140005294
xor r15d, r15d
cmp qword [rbp - 0x50], r15
je 0x140003729
mov rdx, qword [rdi + 0x20]
mov rcx, rdi
call fcn.1400055d8
test al, al
je 0x140003204
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x70]
mov rcx, qword [rdi + 0x20]
mov r9d, 8
lea edx, [r9 + 0x33]
call qword [rax + 0x38]
test eax, eax
jne 0x140003759
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, r13d
mov qword [rsp + 0x28], r15
jmp 0x1400034bd
cmp byte [rdi + 0x110], r15b
jne 0x140003204
cmp byte [rsp + 0x60], r15b
je 0x14000399a
mov byte [rdi + 0x12], r13b
mov edx, 0x2f
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.14000826c
mov r14, rax
cmp rax, r13
jne 0x14000379b
mov r14, r15
lea rbx, [0x14001e0c4]
jmp 0x1400037bb
test rax, rax
je 0x1400037ad
mov word [rax], r15w
mov rbx, r13
lea r15, [rax + 2]
jmp 0x1400037d0
test rax, rax
lea rbx, [0x14001e0c4]
cmovne rbx, r13
mov ecx, 0x2f
lea rax, [r13 + 2]
cmp word [r13], cx
mov r15, r13
cmove r15, rax
or r8d, 0xffffffff
lea rcx, [rbp - 0x60]
mov rdx, r12
call fcn.140006fb0
mov rax, qword [rdi + 8]
mov rdx, rbx
mov rcx, qword [rdi + 0x20]
call qword [rax + 0x50]
lea r9, [rbp - 0x60]
mov rcx, rdi
mov edx, eax
lea r8, [rbp - 0x80]
call fcn.140003ef8
xor r13d, r13d
test al, al
jne 0x140003859
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], r13
lea r9d, [r13 + 2]
mov dword [rsp + 0x30], eax
lea r8, str.Ftp_set_directory_failed__s__code_u
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140005294
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x14000384f
lea eax, [r13 + 0x2f]
mov word [r14], ax
mov r14, qword [rsp + 0x68]
jmp 0x140003213
mov r13d, 0x2f
test r14, r14
je 0x140003868
mov word [r14], r13w
or r8d, 0xffffffff
mov dword [rsp + 0x7c], 2
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.140006fb0
mov rax, qword [rdi + 8]
mov r8d, 0x80000000
mov r9d, dword [rsp + 0x7c]
mov rdx, r15
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rdi
call qword [rax + 0x58]
xor r12d, r12d
mov r15, rax
test rax, rax
je 0x1400038ae
mov ebx, r12d
jmp 0x1400038b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140007074
cmp byte [rdi + 0x11], r12b
je 0x14000390e
cmp ebx, 0x3e5
jne 0x14000390e
mov rcx, qword [rdi + 0xf0]
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 1
mov qword [rsp + 0x28], r12
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.140005294
test ebx, ebx
jne 0x14000390e
mov r15, qword [rdi + 0x100]
mov r9d, 1
mov qword [rsp + 0x28], r12
lea r8, str.Ftp_file_opened_x_08X
mov qword [rdi + 0x28], r15
mov rcx, rdi
mov qword [rsp + 0x20], r15
lea edx, [r9 + 1]
call fcn.140005294
xor r15d, r15d
test r14, r14
je 0x140003941
mov word [r14], r13w
mov rax, qword [rdi + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003957
mov dword [rdi + 0x68], r15d
jmp 0x140003b74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2f8], r15d
je 0x140003204
mov qword [rsp + 0x38], r15
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
cmp eax, 2
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
cmove r8, rcx
jmp 0x140003d72
neg byte [rsp + 0x50]
lea r8, str.Opening_request_with_flags_x_08X
mov qword [rsp + 0x28], r15
mov r9d, r13d
sbb eax, eax
mov edx, ebx
and eax, 0x803000
mov rcx, rdi
add eax, 0x84000100
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x20], eax
call fcn.140005294
mov eax, dword [rsp + 0x7c]
lea r9, [rbp + 0x20]
mov r10, qword [rdi + 8]
lea rdx, [0x14001e268]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rdi + 0x20]
mov r8, r14
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [r10]
mov rcx, rax
mov qword [rdi + 0x28], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003b7d
mov qword [rsp + 0x28], r15
lea r8, str.Http_file_opened_x_08X
mov qword [rsp + 0x20], rcx
mov r9d, r13d
mov rcx, rdi
mov edx, ebx
call fcn.140005294
xor r9d, r9d
lea r8, str.Sending_request
mov edx, ebx
mov rcx, rdi
call fcn.140005294
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
or r8d, 0xffffffff
lea rcx, [rbp - 0x60]
mov rdx, r12
call fcn.140006fb0
mov rax, qword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [rax + 0x10]
lea r9, [rbp - 0x60]
mov rcx, rdi
mov edx, eax
lea r8, [rbp - 0x80]
call fcn.140003ef8
test al, al
jne 0x140003ac9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2f8], r15d
je 0x140003209
mov qword [rsp + 0x38], r15
lea r8, str.HttpSendRequest_failed__code_u_n_tURL_s
mov qword [rsp + 0x30], rsi
mov r9d, r13d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
jmp 0x140003bba
mov eax, 0x20000005
mov qword [rsp + 0x28], r15
mov r9d, r13d
mov dword [rsp + 0x7c], eax
lea r8, str.Quering_file_info_with_flags_x_08X
mov dword [rsp + 0x20], eax
mov edx, ebx
mov dword [rdi + 0x68], r15d
mov rcx, rdi
mov dword [rbp - 0x44], 4
mov dword [rbp - 0x48], r15d
call fcn.140005294
or r8d, 0xffffffff
lea rcx, [rbp - 0x60]
mov rdx, r12
call fcn.140006fb0
mov rax, qword [rdi + 8]
lea rcx, [rbp - 0x48]
mov edx, dword [rsp + 0x7c]
lea r9, [rbp - 0x44]
mov qword [rsp + 0x20], rcx
lea r8, [rdi + 0x68]
mov rcx, qword [rdi + 0x28]
call qword [rax + 8]
lea r9, [rbp - 0x60]
mov rcx, rdi
mov edx, eax
lea r8, [rbp - 0x80]
call fcn.140003ef8
mov qword [rsp + 0x28], r15
mov r9d, r13d
mov edx, ebx
mov rcx, rdi
test al, al
jne 0x140003b61
mov eax, dword [rbp - 0x80]
lea r8, str.Warning:_Quering_file_info_failed__code_u
mov dword [rdi + 0x68], r15d
jmp 0x140003b6b
mov eax, dword [rdi + 0x68]
lea r8, str.File_length_retrieved:__u_bytes
mov dword [rsp + 0x20], eax
call fcn.140005294
mov r14, qword [rbp - 0x68]
jmp 0x140003c54
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp + 0x2f8], r15d
je 0x140003209
mov qword [rsp + 0x38], r15
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
cmp eax, ebx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
mov r9d, ebx
cmove r8, rcx
xor edx, edx
mov rcx, rdi
call fcn.140005294
jmp 0x140003209
xor r9d, r9d
lea r8, str.Opening_source_from_file_system
mov rcx, rdi
lea edx, [r9 + 2]
call fcn.140005294
mov r15d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r15d
mov rcx, rsi
lea r8d, [r15 - 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rdi + 0x28], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140003d2b
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor r15d, r15d
test eax, eax
je 0x140003c54
mov rax, qword [rbp - 0x28]
lea r9d, [r15 + 1]
mov qword [rsp + 0x28], r15
lea r8, str.File_length:__u_bytes
lea edx, [r15 + 2]
mov dword [rdi + 0x68], eax
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140005294
mov rbx, qword [rsp + 0x70]
cmp byte [rdi + 0x110], r15b
jne 0x140003da0
mov r15, qword [rsp + 0x58]
mov r12, qword [rbp - 0x30]
movzx r8d, byte [rdi + 0x10]
lea rax, [rbp - 0x7c]
mov r9, qword [rdi + 0x28]
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov qword [rsp + 0x20], rbx
call fcn.1400050ac
xor ecx, ecx
test eax, eax
je 0x140003ce9
mov eax, dword [rbp - 0x7c]
test eax, eax
je 0x140003cf6
mov edx, eax
mov r8, r12
mov rcx, rbx
call fcn.1400022b4
mov eax, dword [rbp - 0x7c]
mov r9, rbx
mov r8, r15
mov dword [rsp + 0x20], eax
mov rdx, r14
mov rcx, rdi
call fcn.1400059e0
xor r13d, r13d
test eax, eax
je 0x140003ce9
mov eax, dword [rbp - 0x7c]
mov rcx, rdi
add dword [rdi + 0x6c], eax
call fcn.1400059b4
cmp byte [rdi + 0x110], r13b
je 0x140003c6f
mov r14, qword [rsp + 0x68]
mov rsi, r15
jmp 0x140003213
cmp dword [rdi + 0x6c], ecx
jne 0x140003d1e
mov qword [rsp + 0x28], rcx
lea r8, str.Invalid_source_url__s__file_is_empty_or_not_found
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov r9d, 2
xor edx, edx
call fcn.140005294
jmp 0x140003ce9
not dword [r12]
mov dword [rbp - 0x78], 1
jmp 0x140003ce9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rbx
lea r8, str.Failed_to_open_source_file__s___code_u
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
jmp 0x140003d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
lea r8, [0x14001dd50]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, 2
xor edx, edx
mov rcx, rdi
call fcn.140005294
jmp 0x140003204
xor r9d, r9d
lea r8, str.DownloadFile._Invalid_arguments
xor edx, edx
mov rcx, rdi
call fcn.140005294
jmp 0x140003204
mov r14, qword [rsp + 0x68]
jmp 0x14000320e
xor r9d, r9d
lea r8, str.Download_failed
mov rcx, rdi
call fcn.140005294
xor eax, eax
cmp byte [rdi + 0x10], al
je 0x140003dd3
test r15d, r15d
mov rcx, rdi
sete dl
call fcn.1400022f8
jmp 0x140003ded
mov rcx, qword [rdi + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003de7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rdi + 0x28], rax
xor edi, edi
cmp byte [rsp + 0x78], dil
je 0x140003e09
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003e09
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140003e16
mov rcx, rbx
call fcn.140005bb8
test r14, r14
je 0x140003e23
mov rcx, r14
call fcn.140005bb8
lea rcx, [rbp - 0x60]
call fcn.140006f5c
mov eax, r15d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400074d0
add rsp, 0x388
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret