Function at 0x140002e60
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc60]
sub rsp, 0xd60
mov rax, qword [0x1400a50e8]
xor rax, rsp
mov qword [rbp + 0xc50], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x40], rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x48], r14d
xor r13b, r13b
mov qword [rbp - 0x18], r14
movdqa xmm0, xmmword [0x1400817f0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
mov qword [rbp - 0x38], r14
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r14w
mov r12d, r14d
mov r15d, r14d
mov edi, r14d
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x18]
call fcn.140003360
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.140052c50
xor edx, edx
mov r8d, 0xa28
lea rcx, [rbp + 0x220]
call fcn.140052c50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x50], 0x68
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x104
lea rax, [rbp + 0x220]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x514
mov dword [rsp + 0x60], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140002f72
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, dword [rsi + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x140003059
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002f96
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140002d30
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140081718]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x140003059
mov r8d, 0x50
xor r9d, r9d
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140003059
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x140081728]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140003059
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne r13b
test eax, eax
je 0x140003059
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne r13b
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
test r13b, r13b
je 0x14000314f
nop
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400030be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.1400036e0
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.140050788
mov rbx, rax
test rax, rax
je 0x1400032b4
mov r8d, dword [rsp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.140052c50
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140003117
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.1400036e0
jmp 0x14000313c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.1400501b4
cmp dword [rsp + 0x40], 0
ja 0x140003090
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13b, r13b
jne 0x140003171
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.1400036e0
xor ebx, ebx
test rdi, rdi
je 0x140003181
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x14000318f
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x14000319e
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400031de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400032e0
call fcn.1400501b4
movdqa xmm0, xmmword [0x1400817f0]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], bx
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14000322f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000322a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400032d4
call fcn.1400501b4
movdqa xmm0, xmmword [0x1400817f0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14000327b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140003276
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400032da
mov rcx, r8
call fcn.1400501b4
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.140050250
mov rbx, qword [rsp + 0xdb0]
add rsp, 0xd60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Out_of_memory_n
call fcn.1400036e0
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003173
call fcn.140057064
nop
call fcn.140057064
nop
call fcn.140057064
int3