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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1af0]
mov eax, 0x1bf0
call fcn.1404e2160
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1c30], rbx
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x1ae0], rax
mov r14, rdx
mov rbx, rcx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140502370
mov dword [rsp + 0x50], WSAGetLastError
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x100
lea rax, [rbp + 0x2e0]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x400
cmp qword [rbx + 0x18], 8
jb 0x1402d05ed
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 0x1402d06e4
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401ad840]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
je 0x1402d06e4
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 0x1402d06db
mov edx, 0x1bb
mov eax, r15d
mov ecx, 0x800000
cmp word [rsp + 0x74], dx
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x1401ad868]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x1402d06d2
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rbx
test eax, eax
je 0x1402d06cc
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1402d06eb
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1402d0815
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call fcn.140502370
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.1402d0a60
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x30], 6
mov rcx, rbx
je 0x1402d073a
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x1402d07f3
lea r9, [rbp + 0xd0]
mov r8d, 0x1000
lea rdx, [rbp + 0xae0]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1402d079e
nop dword [rax + rax]
mov eax, dword [rbp + 0xd0]
test eax, eax
je 0x1402d079e
mov r8d, eax
lea rdx, [rbp + 0xae0]
lea rcx, [rbp - 0x40]
call fcn.1402d1610
lea r9, [rbp + 0xd0]
mov r8d, 0x1000
lea rdx, [rbp + 0xae0]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1402d0760
lea rcx, [rbp - 0x38]
call fcn.1402d28a0
test rax, rax
jne 0x1402d07d6
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x40]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.1402d0210
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov bl, 1
lea rcx, [rbp + 0x68]
call fcn.1402d09e0
nop
lea rax, [0x1401ad958]
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x68]
call fcn.1404de890
nop
movzx eax, bl
mov rcx, qword [rbp + 0x1ae0]
xor rcx, rsp
call fcn.1404e17d0
mov rbx, qword [rsp + 0x1c30]
add rsp, 0x1bf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret