Function at 0x140012f78
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 - 0x488]
sub rsp, 0x588
mov rax, qword [0x14001b238]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r12, qword [rbp + 0x500]
mov rax, qword [rbp + 0x4f8]
mov r13, qword [rbp + 0x4f0]
xor esi, esi
mov qword [rsp + 0x48], r9
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rax
test r12, r12
je 0x140012fd8
mov dword [r12], esi
mov rcx, rdx
call fcn.140011cb4
test al, al
jne 0x140012feb
xor al, al
jmp 0x1400133e7
mov edi, 0x68
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, edi
call sub.MSVCR100.dll_memset
cmp qword [rbx + 0x18], 8
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x70]
mov ecx, 0x100
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x270]
mov dword [rsp + 0x60], edi
mov qword [rbp - 0x58], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x70], 0x10
mov dword [rbp - 0x80], ecx
mov dword [rbp - 0x50], ecx
jb 0x140013041
mov rbx, qword [rbx]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140012fe4
lea rdx, str.https
lea rcx, [rbp + 0x50]
mov bl, sil
call qword [sym.imp.MSVCR100.dll_wcscmp]
test eax, eax
jne 0x140013074
mov bl, 1
jmp 0x14001308d
lea rdx, str.http
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCR100.dll_wcscmp]
test eax, eax
jne 0x140012fe4
lea rcx, str.Breakpad_1.0__Windows_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x140012fe4
movzx r8d, word [rbp - 0x7c]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea rdx, [rbp + 0x70]
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_InternetConnectW]
xor ecx, ecx
mov rsi, rax
test rax, rax
jne 0x1400130f5
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140012fe4
mov qword [rsp + 0x38], rcx
neg bl
lea r8, [rbp + 0x270]
sbb eax, eax
lea rdx, str.POST
xor r9d, r9d
and eax, 0x800000
bts eax, 0x13
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
test rax, rax
jne 0x140013142
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400130e7
lea rcx, [rbp + 0x20]
call fcn.1400120b8
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 8]
call fcn.140012220
cmp qword [rbp + 0x10], 8
lea rdx, [rbp - 8]
cmovae rdx, qword [rbp - 8]
mov r9d, 0x20000000
mov rcx, rbx
or r8d, 0xffffffff
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov r8, qword [rsp + 0x48]
and qword [rbp - 0x20], 0
lea rax, [rbp - 0x30]
lea r9, [rbp + 0x20]
mov rdx, r15
mov rcx, r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov qword [rsp + 0x20], rax
call fcn.140012838
xor r14d, r14d
test al, al
jne 0x14001321c
cmp qword [rbp - 0x18], 0x10
jb 0x1400131be
mov rcx, qword [rbp - 0x30]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x10], 8
mov byte [rbp - 0x30], r14b
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
jb 0x1400131de
mov rcx, qword [rbp - 8]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x38], 8
mov r12d, 7
mov word [rbp - 8], r14w
mov qword [rbp + 0x10], r12
mov qword [rbp + 8], r14
jb 0x140013201
mov rcx, qword [rbp + 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140013137
test r13, r13
je 0x140013284
mov r15d, 4
mov r8, r13
mov rcx, rbx
lea edx, [r15 + 1]
mov r9d, r15d
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x140013255
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rdx, str.Could_not_unset_send_timeout__continuing..._n
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR100.dll_fwprintf]
mov r9d, r15d
mov r8, r13
mov edx, 6
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x140013284
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rdx, str.Could_not_unset_receive_timeout__continuing..._n
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR100.dll_fwprintf]
cmp qword [rbp - 0x18], 0x10
mov eax, dword [rbp - 0x20]
lea r9, [rbp - 0x30]
cmovae r9, qword [rbp - 0x30]
mov rcx, rbx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1400131ae
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x48]
mov edx, 0x13
mov rcx, rbx
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140013332
cmp qword [rbp - 0x18], 0x10
jb 0x1400132e7
mov rcx, qword [rbp - 0x30]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x10], 8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
jb 0x140013307
mov rcx, qword [rbp - 8]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x38], 8
mov r12d, 7
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r12
mov word [rbp - 8], r14w
jb 0x14001332a
mov rcx, qword [rbp + 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov r13b, r14b
jmp 0x1400133bc
xor edx, edx
lea rcx, [rbp + 0x48]
lea r8d, [rdx + 0xa]
call qword [sym.imp.MSVCR100.dll_wcstol]
test r12, r12
je 0x14001334b
mov dword [r12], eax
cmp eax, 0xc8
sete r13b
test r13b, r13b
je 0x140013369
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140012524
mov r13b, al
cmp qword [rbp - 0x18], 0x10
jb 0x140013379
mov rcx, qword [rbp - 0x30]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x10], 8
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
jb 0x140013399
mov rcx, qword [rbp - 8]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [rbp + 0x38], 8
mov r12d, 7
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r12
mov word [rbp - 8], r14w
jb 0x1400133bc
mov rcx, qword [rbp + 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, r13b
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140013960
add rsp, 0x588
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret