Function at 0x140006470
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x558
mov rbx, qword [rsp + 0x5c8]
mov r14, rcx
mov rsi, rdx
mov r12, r8
mov rbp, r9
test rbx, rbx
je 0x1400064a2
mov dword [rbx], 0
mov rcx, rsi
call fcn.140005180
test al, al
mov r13d, eax
jne 0x1400064d0
xor ebx, ebx
mov eax, ebx
add rsp, 0x558
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r9, [rsp + 0xe0]
xor eax, eax
mov ecx, 0xd
lea r15, [rsp + 0x150]
xor r8d, r8d
mov edx, dword [r14 + 8]
mov rdi, r9
rep stosq qword [rdi], rax
lea rax, [rsp + 0x350]
lea rdi, [rsp + 0x60]
mov dword [rsp + 0xe0], 0x68
mov dword [rsp + 0xf0], 0x10
mov qword [rsp + 0xf8], r15
mov qword [rsp + 0xe8], rdi
mov dword [rsp + 0x100], 0x100
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], 0x100
mov rcx, qword [r14]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1400064b1
lea rdx, str.https
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140006588
lea rdx, str.http
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400064b1
xor r13d, r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0
lea rcx, str.Breakpad_1.0__Windows_
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
mov rdi, rax
je 0x1400064b1
movzx r8d, word [rsp + 0x104]
mov qword [rsp + 0x38], 0
xor r9d, r9d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rdx, r15
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
test rax, rax
mov r15, rax
je 0x140006830
cmp r13b, 1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
sbb eax, eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
and eax, 0xff800000
mov r8, qword [rsp + 0x40]
lea rdx, str.POST
add eax, 0x880000
mov rcx, r15
mov dword [rsp + 0x30], eax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
test rax, rax
mov r14, rax
je 0x140006820
lea r13, [rsp + 0x80]
mov rcx, r13
call fcn.140004960
lea rax, [rsp + 0xa0]
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x40], rax
call fcn.140004a40
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea rax, [rsp + 0xc0]
mov r8, r13
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0xc8], 0
mov byte [rsp + 0xd0], 0
mov r9, rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xc0], rax
call fcn.140005560
test al, al
je 0x1400067b5
test rbp, rbp
je 0x14000672d
mov r9d, 4
mov r8, rbp
mov edx, 5
mov rcx, r14
mov rsi, qword [sym.imp.WININET.dll_InternetSetOptionW]
call rsi
test eax, eax
jne 0x140006712
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
lea rdx, str.Could_not_unset_send_timeout__continuing..._n
call fcn.140004930
mov r9d, 4
mov r8, rbp
mov edx, 6
mov rcx, r14
call rsi
test eax, eax
je 0x14000683b
mov rax, qword [rsp + 0xc8]
mov r9, qword [rsp + 0xc0]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1400067b5
lea rsi, [rsp + 0x58]
mov dword [rsp + 0x54], 8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov edx, 0x13
mov rcx, r14
mov r8, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1400067b5
xor edx, edx
mov r8d, 0xa
mov rcx, rsi
call sub.msvcrt.dll_wcstol
test rbx, rbx
je 0x14000679a
mov dword [rbx], eax
cmp eax, 0xc8
jne 0x1400067b5
mov rdx, qword [rsp + 0x5c0]
mov rcx, r14
call fcn.140004cd0
mov ebx, eax
jmp 0x1400067b7
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
add rax, 0x10
cmp rcx, rax
je 0x1400067d2
call fcn.1400aa960
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
add rax, 0x10
cmp rcx, rax
je 0x1400067ed
call fcn.1400aa960
mov rcx, qword [rsp + 0x80]
add r13, 0x10
cmp rcx, r13
je 0x140006803
call fcn.1400aa960
mov rcx, r14
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rsi
mov rcx, r15
call rsi
mov rcx, rdi
call rsi
jmp 0x1400064b3
xor ebx, ebx
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000680f
xor ebx, ebx
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140006814
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
lea rdx, str.Could_not_unset_receive_timeout__continuing..._n
call fcn.140004930
jmp 0x14000672d