Function at 0x140037230
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov rax, qword [rcx + 8]
mov rbx, rcx
cmp rax, qword [rcx]
jne 0x14003725d
mov eax, 2
add rsp, 0x338
pop rbx
pop rbp
ret
test rdx, rdx
je 0x140037963
cmp byte [rdx], 0
je 0x140037963
cmp qword [rcx + 0x28], 0
jne 0x140037285
mov eax, 0xa
add rsp, 0x338
pop rbx
pop rbp
ret
cmp qword [rcx + 0x30], 0x10
lea r9, [rcx + 0x18]
mov qword [rsp + 0x320], r13
mov qword [rsp + 0x318], r14
mov qword [rsp + 0x310], r15
jb 0x1400372ab
mov r9, qword [r9]
mov qword [rsp + 0x358], rsi
lea rcx, [rbp + 0xe0]
mov r8, rdx
mov qword [rsp + 0x330], rdi
lea rdx, str._s_api_v2_projects__s_reports
mov qword [rsp + 0x328], r12
call fcn.140010010
mov rax, qword [rbp + 0xe0]
lea r14, [rbp + 0xe8]
mov r8, qword [0x140087090]
lea rcx, [rsp + 0x60]
test rax, rax
mov rdx, rbx
cmovne r14, rax
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
call fcn.1400360a0
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, r15
sub rax, rcx
cmp rax, 0x7fffffff
jbe 0x140037335
lea r14d, [r13 + 9]
jmp 0x1400378c1
movdqa xmm0, xmmword [0x140067da0]
sub r15d, ecx
xor edx, edx
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmm0
mov byte [rbp - 0x60], r13b
lea rcx, [rbp + 0x70]
movdqa xmmword [rbp - 0x30], xmm0
mov r12d, r15d
mov byte [rbp - 0x40], r13b
lea r8d, [rdx + 0x68]
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], r13b
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 0xf
mov byte [rbp], r13b
movdqa xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], r13b
movdqa xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], r13b
mov word [rbp + 0x60], r13w
call fcn.140043610
lea r9, [rbp + 0x70]
mov dword [rbp + 0x70], 0x68
xor r8d, r8d
mov dword [rbp + 0x80], 1
xor edx, edx
mov dword [rbp + 0x90], 1
mov rcx, r14
mov dword [rbp + 0xa0], 1
mov dword [rbp + 0xb0], 1
mov dword [rbp + 0xc0], 1
mov dword [rbp + 0xd0], 1
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x14003748e
mov r8d, dword [rbp + 0x80]
lea rcx, [rbp - 0x60]
mov rdx, qword [rbp + 0x78]
call fcn.140014380
mov r8d, dword [rbp + 0x90]
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp + 0x88]
call fcn.140014380
mov r8d, dword [rbp + 0xa0]
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0x98]
call fcn.140014380
mov r8d, dword [rbp + 0xb0]
lea rcx, [rbp]
mov rdx, qword [rbp + 0xa8]
call fcn.140014380
mov r8d, dword [rbp + 0xc0]
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0xb8]
call fcn.140014380
mov r8d, dword [rbp + 0xd0]
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0xc8]
call fcn.140014380
movzx eax, word [rbp + 0x94]
mov word [rbp + 0x60], ax
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, str.UnityCrashHandler
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
jne 0x1400374cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_the_Internet_with_code__d_n
call fcn.140001f50
lea r14d, [rdi + 8]
jmp 0x1400378aa
cmp qword [rbp + 0x10], r13
jne 0x1400374d8
mov rax, r13
jmp 0x1400374e6
cmp qword [rbp + 0x18], 0x10
lea rax, [rbp]
cmovae rax, qword [rbp]
cmp qword [rbp - 0x10], r13
jne 0x1400374f1
mov r9, r13
jmp 0x1400374ff
cmp qword [rbp - 8], 0x10
lea r9, [rbp - 0x20]
cmovae r9, qword [rbp - 0x20]
cmp qword [rbp - 0x28], 0x10
lea rdx, [rbp - 0x40]
movzx r8d, word [rbp + 0x60]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x40]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
test rax, rax
jne 0x140037557
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
lea rcx, str.Failed_to_open_internet_session_to_server__s__code__d__n
mov r8d, eax
call fcn.140001f50
jmp 0x14003789b
mov r9, qword [rbp - 0x48]
lea rcx, [rbp - 0x60]
mov r8, qword [rbp - 0x60]
cmp r9, 0x10
cmovae rcx, r8
cmp qword [rbp - 0x50], 5
jne 0x140037883
mov eax, dword [rcx]
cmp eax, dword [str.https]
jne 0x140037883
movzx eax, byte [rcx + 4]
cmp al, byte [0x1400686b8]
jne 0x140037883
cmp qword [rbp + 0x38], 0x10
lea r8, [rbp + 0x20]
mov qword [rsp + 0x38], r13
lea r9, str.HTTP_1.1
cmovae r8, qword [rbp + 0x20]
lea rdx, str.POST
mov dword [rsp + 0x30], 0x4880200
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
jne 0x140037602
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
lea rcx, str.Failed_to_open_HTTP_request_to_server__s__code__d__n
mov r8d, eax
call fcn.140001f50
mov rcx, rbx
lea r14d, [rbx + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400378a1
mov edx, 3
lea rcx, [rbp + 0x110]
lea r8d, [rdx - 2]
call fcn.1400302c0
lea rdx, str.Content_Type:_multipart_form_data__boundary
lea rcx, [rbp + 0x120]
call fcn.14002ceb0
mov rdx, qword [0x140087090]
mov rcx, rax
call fcn.14002ceb0
mov rcx, rax
lea rdx, [0x1400637b8]
call fcn.14002ceb0
lea rdx, str.Content_Length:
lea rcx, [rbp + 0x120]
call fcn.14002ceb0
mov rcx, rax
mov edx, r15d
call fcn.140030ed0
mov rcx, rax
lea rdx, [0x1400637b8]
call fcn.14002ceb0
mov rdx, qword [rbp + 0x198]
test dl, 2
jne 0x1400376d2
mov rax, qword [rbp + 0x168]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400376d2
mov r8, qword [rbp + 0x190]
mov rax, qword [rbp + 0x148]
cmp r8, rcx
cmovb r8, rcx
mov rdx, qword [rax]
sub r8, rdx
movdqa xmm0, xmmword [0x140067da0]
lea rcx, [rsp + 0x78]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], r13b
call fcn.140014380
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x50], xmm1
jmp 0x140037714
test dl, 4
jne 0x140037702
mov rax, qword [rbp + 0x160]
mov rcx, qword [rax]
test rcx, rcx
je 0x140037702
mov rax, qword [rbp + 0x140]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x178]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400376ab
movdqa xmm1, xmmword [0x140067da0]
movups xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x78], r13b
movups xmm0, xmmword [rsp + 0x78]
cmp qword [rsp + 0x58], 0x10
lea rdx, [rsp + 0x40]
mov r9, qword [rsp + 0x60]
mov rcx, rbx
mov r8d, dword [rsp + 0x50]
movups xmmword [rsp + 0x40], xmm0
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x140037766
lea r15, str.Failed_to_upload__u_bytes_to_server__s__code__d__n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, r12d
mov rcx, r15
mov r9d, eax
jmp 0x14003780e
lea rax, [rbp + 0x260]
mov dword [rbp + 0x250], r13d
lea r9, [rbp + 0x268]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x250]
mov dword [rbp + 0x268], 4
mov edx, 0x20000013
mov dword [rbp + 0x260], r13d
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1400377c2
lea r15, str.Upload_of__u_bytes_to_server__s_completed__but_received_no_response__Win32_code__d__n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, r12d
mov rcx, r15
mov r9d, eax
jmp 0x14003780e
mov eax, dword [rbp + 0x260]
test eax, eax
je 0x1400377ec
cmp eax, 0x2f76
je 0x1400377ec
mov r9d, dword [rbp + 0x250]
lea rcx, str.Warning:_Upload_of__u_bytes_to_server__s_completed__but_received_multiple_status_codes___first_code:__u__n
mov r8, r14
mov edx, r15d
call fcn.140001f50
mov r9d, dword [rbp + 0x250]
lea eax, [r9 - 0xc8]
cmp eax, 0x63
ja 0x140037804
mov r14d, r13d
jmp 0x14003781c
mov edx, r15d
lea rcx, str.Upload_of__u_bytes_to_server__s_completed__the_server_responded_with_code__u_n
mov r8, r14
call fcn.140001f50
mov r14d, 8
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140037859
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037854
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037972
call fcn.14003f61c
lea rcx, [rbp + 0x110]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], r13b
call fcn.140031160
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400378a1
cmp r9, 0x10
lea rdx, [rbp - 0x60]
lea rcx, str.Invalid_URL_scheme__s__expected_https_._n
cmovae rdx, r8
call fcn.140001f50
mov r14d, 8
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rbp - 0x60]
call fcn.140030cb0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140037906
mov rdx, qword [rsp + 0x70]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400378f3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037978
call fcn.14003f61c
xorps xmm0, xmm0
mov qword [rsp + 0x70], r13
movdqu xmmword [rsp + 0x60], xmm0
mov rcx, qword [rbp + 0xe0]
test rcx, rcx
je 0x140037926
cmp qword [rbp + 0xe8], r13
jbe 0x140037926
mov edx, dword [rbp + 0x100]
call fcn.140002000
mov rdi, qword [rsp + 0x330]
mov eax, r14d
mov r14, qword [rsp + 0x318]
mov r12, qword [rsp + 0x328]
mov rsi, qword [rsp + 0x358]
mov r13, qword [rsp + 0x320]
mov r15, qword [rsp + 0x310]
add rsp, 0x338
pop rbx
pop rbp
ret
mov eax, 7
add rsp, 0x338
pop rbx
pop rbp
ret
call fcn.14004a3a0
int3
call fcn.14004a3a0
int3