Function at 0x140045764
Capabilities:
Connect to http server
Create http request
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 - 0x268]
sub rsp, 0x368
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r15d, r9d
mov dword [rsp + 0x44], r9d
mov rsi, r8
mov rdi, rdx
mov r13, rcx
mov rbx, qword [rbp + 0x2d0]
mov rax, qword [rbp + 0x2d8]
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov byte [rsp + 0x30], r14b
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x4f1
lea r9, str.NGUsageTracking::CFileUploader::HttpSyncPostOptOutRequest
lea r8, [0x1405c7338]
mov rdx, qword [0x1405c7330]
lea rcx, [rbp - 0x80]
call fcn.1400169f8
nop
mov dword [rsp + 0x4c], r14d
mov r12d, r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.HttpSendRequest
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test r14, r14
jne 0x140045857
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetOpen_hSession3__last_error___d
mov edx, 0x80
mov r8d, 0x4fe
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov esi, 0x80004005
jmp 0x140045d7b
cmp qword [rdi + 0x18], 8
jb 0x140045863
mov rdx, qword [rdi]
jmp 0x140045866
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
xor r9d, r9d
movzx r8d, r15w
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r15, rax
test rax, rax
jne 0x1400458c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetOpen_hConnect3__last_error___d
mov edi, 0x80
mov r8d, 0x50e
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov esi, 0x80004005
mov ebx, esi
jmp 0x140045d22
lea rdx, [0x140221780]
mov rcx, rsi
call fcn.14000f6d4
xor esi, esi
test eax, eax
jne 0x14004593d
cmp qword [rbx + 0x18], 8
jb 0x1400458e8
mov rcx, qword [rbx]
jmp 0x1400458eb
mov rcx, rbx
cmp qword [rdi + 0x18], 8
jb 0x1400458f7
mov rax, qword [rdi]
jmp 0x1400458fa
mov rax, rdi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Using_HTTPS_to_do_a_POST_to__s_s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x518
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp qword [rbx + 0x18], 8
jb 0x14004592b
mov r8, qword [rbx]
jmp 0x14004592e
mov r8, rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x84803100
jmp 0x14004599c
cmp qword [rbx + 0x18], 8
jb 0x140045949
mov rcx, qword [rbx]
jmp 0x14004594c
mov rcx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140045958
mov rax, qword [rdi]
jmp 0x14004595b
mov rax, rdi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Using_HTTP_to_do_a_GET_to__s_s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x52b
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp qword [rbx + 0x18], 8
jb 0x14004598c
mov r8, qword [rbx]
jmp 0x14004598f
mov r8, rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x84000100
lea rdx, [0x140221840]
mov rcx, r15
call fcn.140049bec
mov qword [rsp + 0x50], rax
mov esi, 0x80004005
xor ecx, ecx
test rax, rax
jne 0x1400459ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_HttpOpenRequest_hRequest3__error___d
mov edi, 0x80
mov r8d, 0x53c
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov ebx, esi
jmp 0x140045cf3
cmp byte [r13 + 0x238], cl
je 0x140045aaf
lea r14, [r13 + 0x240]
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea rdx, str._r_n_r_n_Server_Request:__r_n
mov rcx, r14
call fcn.14000fae0
mov r8d, 6
lea rdx, str.POST:
mov rcx, r14
call fcn.14000fae0
mov r12d, dword [rsp + 0x44]
mov rcx, r14
cmp r12d, 0x1bb
jne 0x140045a48
mov r8d, 8
lea rdx, str.https:__
jmp 0x140045a55
mov r8d, 7
lea rdx, str.http:__
call fcn.14000fae0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.14000fc3c
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.14000fc3c
mov r8d, 2
lea rdx, [0x140494ec8]
mov rcx, r14
call fcn.14000fae0
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
lea rdx, str._r_n_Server_Headers:__r_n
mov rcx, r14
call fcn.14000fae0
mov r14, qword [rsp + 0x60]
jmp 0x140045ab4
mov r12d, dword [rsp + 0x44]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.1400465bc
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x40]
lea edx, [rdi + 0x1f]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x140045b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetQueryOption__last_error___d
mov r8d, 0x560
jmp 0x140045b3f
or dword [rsp + 0x40], 0x2180
mov r9d, 4
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x1b]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x140045b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetSetOption__last_error___d
mov r8d, 0x56c
mov edx, 0x80
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov esi, eax
jmp 0x140045d7b
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, 0x80
test eax, eax
jne 0x140045bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, [rbp - 0x80]
cmp eax, 0x2efd
jne 0x140045be2
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_HttpSendRequest__last_error___d__ERROR_INTERNET_CANNOT_CONNECT_
mov r8d, 0x57f
call fcn.140016e24
lea rcx, str.HTTPS
lea rax, str.HTTP
cmp r12d, 0x1bb
cmove rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest______was_using__s
mov r8d, 0x580
mov edx, edi
lea rcx, [rbp - 0x80]
jmp 0x140045bf3
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_HttpSendRequest__last_error___d
mov r8d, 0x584
call fcn.140016e24
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x20]
mov rcx, r13
call fcn.140045dac
mov rbx, rax
lea r14, [r13 + 0x88]
cmp r14, rax
je 0x140045c3b
xor r8d, r8d
mov dl, 1
mov rcx, r14
call fcn.14000f964
mov rdx, rbx
mov rcx, r14
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.14000f964
mov r12d, dword [rsp + 0x48]
xor ebx, ebx
cmp byte [r13 + 0x238], bl
je 0x140045cb9
mov dword [rsp + 0x20], r12d
lea r9, str._r_n_Server_Response:__d_r_n
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x40]
call fcn.140046a0c
cmp word [rbp + 0x40], bx
jne 0x140045c82
mov r8d, ebx
jmp 0x140045c94
lea rax, [rbp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140045c8a
lea rbx, [r13 + 0x240]
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.14000fae0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.14000fc3c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x140045cea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetCloseHandle_hRequest3__error___d
mov r8d, 0x599
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov r14, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x4c]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x140045d22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetCloseHandle_hConnect3__error___d
mov r8d, 0x59f
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x140045d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed_InternetCloseHandle_hSession3__error___d
mov r8d, 0x5a5
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp r12d, 0x12b
jle 0x140045d79
mov dword [rsp + 0x20], r12d
lea r9, str.CFileUploader::HttpSyncPostOptOutRequest___Failed:_Status_code_was__d
mov r8d, 0x5a9
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov ebx, esi
mov esi, ebx
lea rcx, [rbp - 0x80]
call fcn.140016b40
mov eax, esi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0x368
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret