Function at 0x140006f70
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1ae0]
mov eax, 0x1be0
call fcn.1400af990
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1c20], rbx
mov rax, qword [0x1415dbbb0]
xor rax, rsp
mov qword [rbp + 0x1ad0], rax
mov r12, rdx
mov rbx, rcx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x58]
call fcn.1400ae980
mov dword [rsp + 0x50], 0x68
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], pe_nt_image_headers64
lea rax, [rbp + 0x2d0]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x400
cmp qword [rbx + 0x18], 8
jb 0x140006ffd
mov rbx, qword [rbx]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1400070f4
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x141536288]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
test rax, rax
je 0x1400070f4
xor r9d, r9d
movzx r8d, word [rsp + 0x74]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
je 0x1400070eb
mov edx, 0x1bb
mov eax, r13d
mov ecx, 0x800000
cmp word [rsp + 0x74], dx
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x141536280]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x1400070e2
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rdi
test eax, eax
je 0x1400070dc
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400070fb
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x140007205
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
mov rdx, r12
lea rcx, [rbp - 0x40]
call fcn.140006cd0
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
mov rcx, rdi
je 0x140007155
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp - 0x40]
call fcn.140006eb0
xor al, al
jmp 0x140007205
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rbp + 0xad0]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400071ab
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400071ab
mov r8d, eax
lea rdx, [rbp + 0xad0]
lea rcx, [rbp - 0x40]
call fcn.140005ee0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rbp + 0xad0]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140007171
lea rcx, [rbp - 0x38]
call fcn.140006b10
test rax, rax
jne 0x1400071de
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x40]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400071d6
or edx, 4
xor r8d, r8d
call fcn.140004ae0
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp - 0x40]
call fcn.140006eb0
mov al, 1
mov rcx, qword [rbp + 0x1ad0]
xor rcx, rsp
call fcn.1400af490
mov rbx, qword [rsp + 0x1c20]
add rsp, 0x1be0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret