Function at 0x1400461dc
Capabilities:
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov qword [rsp + 0x50], r9
mov ebx, r8d
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
mov byte [rsp + 0x30], r12b
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x63b
lea r9, str.NGUsageTracking::CFileUploader::UseHttpSendReqEx
lea r8, [0x1405c7338]
mov rdx, qword [0x1405c7330]
lea rcx, [rbp - 0x60]
call fcn.1400169f8
nop
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x58], 0x38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x7c], ebx
mov qword [rbp - 0x78], r12
mov dword [rsp + 0x40], r12d
lea ebx, [r12 + 4]
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea esi, [rbx + 0x1b]
mov edx, esi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x1400462b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_InternetQueryOption__last_error___d
mov r8d, 0x652
jmp 0x14004631b
or dword [rsp + 0x40], 0x2180
mov r9d, ebx
lea r8, [rsp + 0x40]
mov edx, esi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x1400462eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_InternetSetOption__last_error___d
mov r8d, 0x65c
jmp 0x14004631b
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x140046332
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::UseHttpSendReqEx__Failed_HttpSendRequestEx__last_error___d
mov r8d, 0x663
mov edx, 0x80
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x60]
call fcn.140016e24
jmp 0x14004647d
movsxd r13, dword [rdi + 0x20]
mov rcx, r13
call fcn.1400fdb44
mov rdi, rax
mov esi, 1
mov r15d, esi
and dword [rsp + 0x44], 0
mov r8, r13
lea edx, [rsi + 0x43]
mov rcx, rax
call fcn.1400fecb0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, r13d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [rsi + 0x7f]
test eax, eax
je 0x140046450
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1400463ea
lea r9, [rsp + 0x4c]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetWriteFile]
mov r15d, eax
test eax, eax
jne 0x1400463c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_InternetWriteFile__last_error___d
mov r8d, 0x678
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140016e24
mov r12b, sil
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, r13d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140046383
test r12b, r12b
je 0x140046450
xor r12d, r12d
test r15d, r15d
jne 0x140046419
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_InternetWriteFile__return
mov r8d, 0x688
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140016e24
mov rcx, rdi
call fcn.1400fd29c
jmp 0x14004647d
mov rcx, rdi
call fcn.1400fd29c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x140046480
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_HttpEndRequest__last_error___d
mov r8d, 0x694
mov edx, ebx
jmp 0x140046320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::UseHttpSendReqEx___Failed_ReadFile__last_error___d
mov r8d, 0x680
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140016e24
mov rcx, rdi
call fcn.1400fd29c
xor r12d, r12d
mov sil, r12b
lea rcx, [rbp - 0x60]
call fcn.140016b40
mov al, sil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret