Function at 0x140002970
Capabilities:
Check http status code
Initialize winhttp library
Parse url
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa60]
sub rsp, 0xb60
mov rax, qword [0x140042018]
xor rax, rsp
mov qword [rbp + 0xa50], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, str.send_data.
lea rcx, [0x140043380]
call fcn.1400058d0
mov rcx, rax
call fcn.140005b80
cmp qword [rbx + 0x18], 0x10
jb 0x1400029d8
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x1400029df
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rbp]
call fcn.140005c10
nop
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
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x50]
call fcn.14000c490
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x250]
call fcn.14000c490
lea rax, [rbp + 0x28]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0x10
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], pe_nt_image_headers64
lea rax, [rbp + 0x250]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x400
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x14000302e
movzx eax, word [rsp + 0x74]
test ax, ax
jne 0x140002abd
mov ebx, 0x50
mov eax, 0x1bb
cmp dword [rsp + 0x64], 4
cmove ebx, eax
jmp 0x140002abf
mov ebx, eax
lea rcx, [rbp - 0x40]
call fcn.1400021a0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
jne 0x140002bd5
lea rdx, str.WinHttpOpen_failed
lea rcx, [0x140043520]
call fcn.1400058d0
mov rcx, rax
call fcn.140005b80
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140002b55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002b50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003022
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140002ba7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ba2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003028
call fcn.140009eec
xor al, al
mov rcx, qword [rbp + 0xa50]
xor rcx, rsp
call fcn.140009e90
lea r11, [rsp + 0xb60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
xor r9d, r9d
movzx r8d, bx
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x140002c1a
lea rdx, str.WinHttpConnect_failed
lea rcx, [0x140043520]
call fcn.1400058d0
mov rcx, rax
call fcn.140005b80
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140002b15
mov eax, r15d
mov ecx, 0x800000
cmp dword [rsp + 0x64], 4
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp + 0x250]
lea rdx, str.POST
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
jne 0x140002c8c
lea rdx, str.WinHttpOpenRequest_failed
lea rcx, [0x140043520]
call fcn.1400058d0
mov rcx, rax
call fcn.140005b80
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140002b15
mov dword [rsp + 0x20], 0x1388
mov edx, 0x1388
mov r9d, edx
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp qword [rdi + 0x18], 0x10
jb 0x140002cbb
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x140002cc2
mov r8, qword [rdi + 0x10]
add r8, rdi
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140005c10
nop
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r9, qword [rbp - 0x20]
mov eax, dword [rbp - 0x10]
add eax, eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140002d9b
lea rdx, str.WinHttpSendRequest_failed
lea rcx, [0x140043520]
call fcn.1400058d0
mov rcx, rax
call fcn.140005b80
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140002d84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140002d7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003054
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
jmp 0x140002b15
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140002db6
lea rdx, str.WinHttpReceiveResponse_failed
jmp 0x140002d14
mov dword [rsp + 0x40], r15d
mov dword [rbp + 0x20], 4
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [rsp + 0x40], 0xc8
jne 0x140002efb
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140002e50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003054
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140002ea2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003022
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140002ef4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002eef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003028
call fcn.140009eec
mov al, 1
jmp 0x140002ba9
lea rdx, str.send_faied__status:
lea rcx, [0x140043380]
call fcn.1400058d0
mov rcx, rax
mov edx, dword [rsp + 0x40]
call fcn.140003060
mov rcx, rax
call fcn.140005b80
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140002f7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003054
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140002fcc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003022
call fcn.140009eec
movdqa xmm0, xmmword [0x14003ce40]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140002ba7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ba2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003028
jmp 0x140002ba2
call fcn.140010714
nop
call fcn.140010714
nop
lea rdx, str.illegal_URL
lea rcx, [0x140043520]
call fcn.1400058d0
mov rcx, rax
call fcn.140003460
mov ecx, 0xffffffff
call fcn.140010a94
nop
call fcn.140010714
int3