Function at 0x140037070
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rbx, rcx
xor r12d, r12d
mov dword [rbp + 0x1f0], r12d
mov rax, qword [rcx + 8]
cmp rax, qword [rcx]
jne 0x1400370af
lea eax, [r12 + 2]
jmp 0x1400376ed
test rdx, rdx
je 0x1400376e8
cmp byte [rdx], r12b
je 0x1400376e8
cmp qword [rcx + 0x28], r12
jne 0x1400370d1
mov eax, 0xa
jmp 0x1400376ed
lea r9, [rcx + 0x18]
cmp qword [r9 + 0x18], 0x10
jb 0x1400370df
mov r9, qword [r9]
mov r8, rdx
lea rdx, str._s_api_v2_projects__s_reports
lea rcx, [rbp - 0x80]
call fcn.140010880
nop
lea r14, [rbp - 0x80]
cmp byte [rbp - 0x60], 1
cmovne r14, qword [rbp - 0x80]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov r8, qword [0x1400af558]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140035fc0
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub r15, rcx
cmp r15, 0x7fffffff
jbe 0x140037143
mov r14d, 9
jmp 0x140037682
mov rdx, r14
lea rcx, [rbp + 0xd0]
call fcn.140030cd0
nop
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.UnityCrashHandler
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
mov qword [rbp + 0xb0], rax
test rax, rax
jne 0x140037199
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_the_Internet_with_code__d_n
call fcn.140002720
lea r14d, [rsi + 8]
jmp 0x140037667
cmp qword [rbp + 0x140], 0
jne 0x1400371a8
mov rax, r12
jmp 0x1400371bf
lea rax, [rbp + 0x130]
cmp qword [rbp + 0x148], 0x10
cmovae rax, qword [rbp + 0x130]
cmp qword [rbp + 0x120], 0
jne 0x1400371ce
mov r9, r12
jmp 0x1400371e5
lea r9, [rbp + 0x110]
cmp qword [rbp + 0x128], 0x10
cmovae r9, qword [rbp + 0x110]
lea rdx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 0x10
cmovae rdx, qword [rbp + 0xf0]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
movzx r8d, word [rbp + 0x190]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, rax
mov qword [rbp + 0xb8], rax
test rax, rax
jne 0x140037250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r14
lea rcx, str.Failed_to_open_internet_session_to_server__s__code__d__n
call fcn.140002720
jmp 0x140037657
lea rdx, [rbp + 0xd0]
mov r8, qword [rbp + 0xd0]
mov r9, qword [rbp + 0xe8]
cmp r9, 0x10
cmovae rdx, r8
cmp qword [rbp + 0xe0], 5
jne 0x14003763c
mov rcx, r12
lea r10, str.https
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x1400372a9
cmp rcx, 5
jne 0x140037290
mov eax, r12d
jmp 0x1400372ae
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14003763c
lea r8, [rbp + 0x150]
cmp qword [rbp + 0x168], 0x10
cmovae r8, qword [rbp + 0x150]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x4880200
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, str.HTTP_1.1
lea rdx, str.POST
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
mov qword [rbp + 0xc0], rax
test rax, rax
jne 0x14003732b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r14
lea rcx, str.Failed_to_open_HTTP_request_to_server__s__code__d__n
call fcn.140002720
lea r14d, [rbx + 8]
jmp 0x140037631
lea rax, [0x14008a540]
mov qword [rbp - 0x50], rax
lea rax, [0x14008a548]
mov qword [rbp - 0x40], rax
lea rax, [0x140089620]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x1f0], 1
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call fcn.1400308b0
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x14008a538]
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rax, [0x14008a448]
mov qword [rbp - 0x38], rax
mov ecx, 0x10
call fcn.140002780
mov r13, rax
test rax, rax
je 0x1400373b7
mov cl, 1
call fcn.140040dec
mov qword [r13 + 8], rax
jmp 0x1400373ba
mov r13, r12
mov qword [rbp + 0x28], r13
lea rax, [rbp - 0x30]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x10]
mov qword [rbp], rax
lea rax, [rbp - 8]
mov qword [rbp + 8], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0x14]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x28], r12
mov qword [rbp - 8], r12
mov qword [rbp + 0x10], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x10], r12
lea rax, [0x14008a4c0]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x38], r12d
lea rdx, str.Content_Type:_multipart_form_data__boundary
lea rcx, [rbp - 0x40]
call fcn.14002e9c0
mov rdx, qword [0x1400af558]
mov rcx, rax
call fcn.14002e9c0
mov rcx, rax
lea rdx, [0x140086880]
call fcn.14002e9c0
lea rdx, str.Content_Length:
lea rcx, [rbp - 0x40]
call fcn.14002e9c0
mov edx, r15d
mov rcx, rax
call fcn.140031c20
mov rcx, rax
lea rdx, [0x140086880]
call fcn.14002e9c0
nop
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rbp + 0x1f0], 5
mov ecx, dword [rbp + 0x38]
test cl, 2
jne 0x1400374b4
mov rax, qword [rbp + 8]
mov r8, qword [rax]
test r8, r8
je 0x1400374b4
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x30]
cmovb r8, qword [rbp + 0x30]
sub r8, rdx
jmp 0x1400374d9
test cl, 4
jne 0x1400374e4
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400374e4
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rsp + 0x48]
call fcn.14002c590
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov dword [rsp + 0x20], r15d
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x14003751a
lea r12, str.Failed_to_upload__u_bytes_to_server__s__code__d__n
jmp 0x140037561
mov dword [rbp + 0x1e0], r12d
mov dword [rsp + 0x40], 4
mov dword [rbp + 0x1f8], r12d
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1e0]
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x14003757d
lea r12, 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 r9d, eax
mov r8, r14
mov edx, r15d
mov rcx, r12
call fcn.140002720
xor r12d, r12d
jmp 0x1400375d1
mov eax, dword [rbp + 0x1f8]
test eax, eax
je 0x1400375a7
cmp eax, 0x2f76
je 0x1400375a7
mov r9d, dword [rbp + 0x1e0]
mov r8, r14
mov edx, r15d
lea rcx, str.Warning:_Upload_of__u_bytes_to_server__s_completed__but_received_multiple_status_codes___first_code:__u__n
call fcn.140002720
mov r9d, dword [rbp + 0x1e0]
lea eax, [r9 - 0xc8]
cmp eax, 0x63
ja 0x1400375bf
mov r14d, r12d
jmp 0x1400375d7
mov r8, r14
mov edx, r15d
lea rcx, str.Upload_of__u_bytes_to_server__s_completed__the_server_responded_with_code__u_n
call fcn.140002720
mov r14d, 8
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140037614
inc rdx
mov rcx, qword [rsp + 0x48]
cmp rdx, 0x1000
jb 0x14003760f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003770e
mov rcx, r8
call fcn.14003f840
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
lea rcx, [rbp - 0x50]
call fcn.140031ee0
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14003765d
lea rdx, [rbp + 0xd0]
cmp r9, 0x10
cmovae rdx, r8
lea rcx, str.Invalid_URL_scheme__s__expected_https_._n
call fcn.140002720
mov r14d, 8
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp + 0xd0]
call fcn.140031a20
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400376c3
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400376b0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037708
mov rcx, r8
call fcn.14003f840
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
cmp byte [rbp - 0x60], 0
jne 0x1400376e3
mov r9d, 0x20d
lea r8, str.C:_buildslaveunity_buildRuntimeCoreContainersStringStorageDefault.h
mov edx, dword [rbp - 0x5c]
mov rcx, qword [rbp - 0x80]
call fcn.1400027a0
nop
mov eax, r14d
jmp 0x1400376ed
mov eax, 7
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14004dd7c
nop
call fcn.14004dd7c
int3