Function at 0x140010bc0
Capabilities:
Receive http response
Set http header
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, qword [rdx + 0x230]
lea rax, [rdx + 0x28]
mov qword [rsp + 0x50], rax
mov r14, rdx
xor edx, edx
xor ecx, ecx
mov rax, qword [r15 + 0x8c0]
mov qword [rsp + 0x58], rax
call fcn.140003ed0
mov r8d, dword [r15 + 0x880]
lea rdx, str.onDownloadRange_pDownLoadFilesInfo__port___d
mov rcx, rax
call fcn.140005c50
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x48], eax
mov esi, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.enter1
call fcn.140005c50
mov rbx, qword [r14 + 0x10]
lea rcx, [rsp + 0x60]
mov rdi, qword [r14 + 8]
xor r8d, r8d
mov rdx, r15
call fcn.14000ef70
lea rdx, [r15 + 0x238]
mov r8, rax
lea rcx, [r15 + 0x30]
call fcn.14000e600
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140010ca1
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.pRequest_is_NULL
call fcn.140005c50
lea eax, [rsi + 9]
jmp 0x14001114a
mov qword [rsp + 0x310], r12
mov r12, qword [rax + 0x10]
mov eax, dword [r15 + 0x864]
mov qword [rsp + 0x320], r13
test eax, eax
jne 0x140010cd7
xor eax, eax
mov qword [r14 + 0x18], rax
mov ebx, eax
mov qword [r14 + 0x10], rax
mov eax, dword [r15 + 0x864]
test eax, eax
je 0x140010d51
cmp qword [r15 + 0x898], rsi
jbe 0x140010d51
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.140022630
mov r9, rdi
lea rdx, str.Range:bytes_I64u__I64u
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.140001d30
mov r9d, 0x20000000
lea rdx, [rbp - 0x40]
mov r8d, 0xffffffff
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140010d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.WinHttpAddRequestHeaders_Fails___err:_0x_x
mov r8d, ebx
call fcn.140005c50
mov ebx, 5
jmp 0x14001112e
mov edx, dword [r15 + 0x868]
mov rcx, qword [rsp + 0x40]
call fcn.14000e970
xor edx, edx
movzx edi, al
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.getWinHttpResponse___d
mov r8d, edi
call fcn.140005c50
test dil, dil
jne 0x140010da7
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.NO_CONNECT_SERVER
call fcn.140005c50
mov ebx, 6
jmp 0x14001112e
cmp qword [r14], rsi
jne 0x140010dd2
cmp qword [r15 + 0x8c8], rsi
je 0x140010dd2
cmp dword [r15 + 0x8d8], esi
je 0x140010dd2
mov rcx, qword [r15 + 0x8c0]
mov dword [r15 + 0x8d8], esi
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [r15 + 0x898], rsi
jne 0x140010e32
lea r8, [r15 + 0x648]
mov rcx, r12
lea r9, [r15 + 0x864]
lea rdx, [r15 + 0x898]
call fcn.14000ecd0
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.parseDownLoadInfo_file_length_0__result_d
mov r8d, ebx
call fcn.140005c50
test ebx, ebx
jne 0x14001112e
mov rax, qword [r15 + 0x898]
test rax, rax
je 0x140010ea5
dec rax
mov qword [r14 + 8], rax
jmp 0x140010ea5
xor edx, edx
mov qword [rsp + 0x48], rsi
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140022630
lea r9, [rbp - 0x4c]
mov dword [rbp - 0x4c], esi
lea r8, [rbp - 0x40]
mov rcx, r12
lea rdx, [rsp + 0x48]
call fcn.14000ecd0
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov r8, qword [r15 + 0x898]
lea rdx, str.parseDownLoadInfo_fail_length__lu__result_d
mov rcx, rax
mov r9d, ebx
call fcn.140005c50
test ebx, ebx
jne 0x14001112e
lea rdx, [r15 + 0x648]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140011129
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, str.onDwonloadRange
mov eax, dword [r15 + 0x864]
lea r8, str.NetDownLoad
mov dword [rsp + 0x28], eax
lea rdx, str.__hs___hs__result__0x_X__pDownLoadFilesInfo__isSupportRange___d.
mov dword [rsp + 0x20], esi
call fcn.140005c50
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rcx, [r14 + 0x28]
mov dword [rsp + 0x28], 0x80
cmp dword [r15 + 0x864], esi
je 0x140010f09
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
jmp 0x140010f19
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
mov r13, rax
call fcn.140003ed0
mov rcx, rax
cmp r13, 0xffffffffffffffff
jne 0x140010f4e
mov r8, qword [rsp + 0x50]
lea rdx, str.createfile_fail__S
call fcn.140005c50
lea ebx, [r13 + 0xb]
jmp 0x14001112e
mov r8, qword [r15 + 0x898]
lea rdx, str.Start_creating_file__length___lu
call fcn.140005c50
xor edi, edi
nop dword [rax]
nop word [rax + rax]
cmp dword [r15 + 0x850], 0
jne 0x1400110f1
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400110c7
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x140010fa5
cmp edi, eax
je 0x140010fc5
test rsi, rsi
je 0x140010fb5
mov rcx, rsi
call fcn.14001fad4
mov eax, dword [rbp - 0x50]
lea ecx, [rax + 1]
call fcn.14001fdb4
mov rsi, rax
mov eax, dword [rbp - 0x50]
mov edi, eax
xor edx, edx
test rsi, rsi
je 0x14001109a
lea r8d, [rax + 1]
mov rcx, rsi
call fcn.140022630
mov r8d, dword [rbp - 0x50]
lea r9, [rbp - 0x48]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140011070
mov r8d, dword [rbp - 0x50]
lea r9, [rbp - 0x4c]
xor eax, eax
mov rdx, rsi
mov rcx, r13
mov dword [rbp - 0x4c], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140011043
mov eax, dword [rbp - 0x4c]
add qword [r14 + 0x18], rax
add qword [r14 + 0x10], rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140011034
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rbp - 0x50], 0
ja 0x140010f70
jmp 0x140011111
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.WriteFile_fail_0x_lx
mov r8d, ebx
call fcn.140005c50
mov ebx, 0xb
jmp 0x140011111
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Error__lu_in_WinHttpReadData._n
mov r8d, ebx
call fcn.140005c50
mov ebx, 7
jmp 0x140011111
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Out_of_memory_n
call fcn.140005c50
mov rcx, r13
mov dword [rbp - 0x50], 0
mov ebx, 0xd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001112e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.WinHttpQueryDataAvailable_Fails___err:_0x_x
mov r8d, ebx
call fcn.140005c50
mov ebx, 7
jmp 0x140011111
xor edx, edx
xor ecx, ecx
mov ebx, 0xc
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Networks_error__result___d
mov r8d, ebx
call fcn.140005c50
test rsi, rsi
je 0x14001111e
mov rcx, rsi
call fcn.14001fad4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001112e
mov ebx, 0xf
mov rcx, qword [rsp + 0x40]
call fcn.14000ea70
mov r13, qword [rsp + 0x320]
mov eax, ebx
mov r12, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret