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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a8]
sub rsp, 0x5a8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [rbp + 0x510]
mov qword [rsp + 0x58], rax
mov r13, qword [rbp + 0x518]
xor r12d, r12d
test r13, r13
je 0x1402d81d9
mov dword [r13], r12d
mov rcx, rdx
call fcn.1402d72f4
test al, al
jne 0x1402d81ec
xor al, al
jmp 0x1402d8631
mov esi, 0x68
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400c7360
mov dword [rbp - 0x80], esi
lea rax, [rbp + 0x70]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x10
lea rax, [rbp + 0x90]
mov qword [rbp - 0x68], rax
mov ecx, 0x100
mov dword [rbp - 0x60], ecx
lea rax, [rbp + 0x290]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], ecx
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1402d8240
mov rdi, qword [rdi]
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, eax
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1402d81e5
mov r14b, r12b
lea rsi, [rbp + 0x70]
lea rdi, [0x140376428]
mov ecx, 6
repe cmpsw word [rsi], word [rdi]
jne 0x1402d8273
mov r14b, 1
jmp 0x1402d828c
lea rsi, [rbp + 0x70]
lea rdi, [0x140376438]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
jne 0x1402d81e5
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Breakpad_1.0__Windows_
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1402d82b8
jmp 0x1402d81e5
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
movzx r8d, word [rbp - 0x5c]
lea rdx, [rbp + 0x90]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1402d8302
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1402d81e5
neg r14b
sbb eax, eax
and eax, 0x800000
bts eax, 0x13
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x290]
lea rdx, str.POST
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1402d8356
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x1402d82f4
lea rcx, [rbp + 0x40]
call fcn.1402d7714
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x18]
call fcn.1402d7694
nop
lea rdx, [rbp + 0x18]
mov r14d, 8
cmp qword [rbp + 0x30], r14
cmovae rdx, qword [rbp + 0x18]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, r15
call fcn.1402d7b44
test al, al
jne 0x1402d843e
cmp qword [rbp + 8], 0x10
jb 0x1402d83d7
mov rcx, qword [rbp - 0x10]
call fcn.1400be0f4
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
cmp qword [rbp + 0x30], r14
jb 0x1402d83f6
mov rcx, qword [rbp + 0x18]
call fcn.1400be0f4
mov r13d, 7
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x58], r14
jb 0x1402d8418
mov rcx, qword [rbp + 0x40]
call fcn.1400be0f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x50], r12
mov word [rbp + 0x40], r12w
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x1402d82f4
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r9, qword [rbp - 0x10]
mov eax, dword [rbp]
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1402d84dc
cmp qword [rbp + 8], 0x10
jb 0x1402d8475
mov rcx, qword [rbp - 0x10]
call fcn.1400be0f4
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
cmp qword [rbp + 0x30], r14
jb 0x1402d8494
mov rcx, qword [rbp + 0x18]
call fcn.1400be0f4
mov r13d, 7
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x58], r14
jb 0x1402d84b6
mov rcx, qword [rbp + 0x40]
call fcn.1400be0f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x50], r12
mov word [rbp + 0x40], r12w
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x1402d82f4
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x68]
mov edx, 0x13
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1402d8578
cmp qword [rbp + 8], 0x10
jb 0x1402d8511
mov rcx, qword [rbp - 0x10]
call fcn.1400be0f4
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
cmp qword [rbp + 0x30], r14
jb 0x1402d8530
mov rcx, qword [rbp + 0x18]
call fcn.1400be0f4
mov r13d, 7
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x58], r14
jb 0x1402d8552
mov rcx, qword [rbp + 0x40]
call fcn.1400be0f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x50], r12
mov word [rbp + 0x40], r12w
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x1402d8625
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x68]
call fcn.1400c3a9c
test r13, r13
je 0x1402d8590
mov dword [r13], eax
cmp eax, 0xc8
sete r14b
test r14b, r14b
je 0x1402d85ae
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1402d77e4
mov r14b, al
cmp qword [rbp + 8], 0x10
jb 0x1402d85be
mov rcx, qword [rbp - 0x10]
call fcn.1400be0f4
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
cmp qword [rbp + 0x30], 8
jb 0x1402d85de
mov rcx, qword [rbp + 0x18]
call fcn.1400be0f4
mov r13d, 7
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x28], r12
mov word [rbp + 0x18], r12w
cmp qword [rbp + 0x58], 8
jb 0x1402d8601
mov rcx, qword [rbp + 0x40]
call fcn.1400be0f4
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x50], r12
mov word [rbp + 0x40], r12w
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov r12b, r14b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, r12b
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400be110
add rsp, 0x5a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret