Function at 0x140045210
Capabilities:
Connect to http server
Create 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 r12, r9
mov rdi, r8
mov qword [rsp + 0x60], rdx
mov r15, rcx
mov rbx, qword [rbp + 0x2d8]
mov rax, qword [rbp + 0x2e0]
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov byte [rsp + 0x30], r13b
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x452
lea r9, str.NGUsageTracking::CFileUploader::HttpSyncPostRequest
lea r8, [0x1405c7338]
mov rdx, qword [0x1405c7330]
lea rcx, [rbp - 0x80]
call fcn.1400169f8
nop
mov r14d, r13d
mov esi, r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.HttpSendRequestEx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1400452f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_InternetOpen_hSession1__last_error___d
mov edx, 0x80
mov r8d, 0x460
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov edi, 0x80004005
jmp 0x140045734
cmp qword [rdi + 0x18], 8
jb 0x140045305
mov rdx, qword [rdi]
jmp 0x140045308
mov rdx, rdi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
movzx r8d, word [rbp + 0x2d0]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r13, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140045374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_InternetOpen_hConnect2__last_error___d
mov ebx, 0x80
mov r8d, 0x470
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov edi, 0x80004005
mov r14d, edi
jmp 0x1400456d9
lea rdx, [0x140221780]
mov rcx, r12
call fcn.14000f6d4
xor r12d, r12d
test eax, eax
jne 0x1400453eb
cmp qword [rbx + 0x18], 8
jb 0x140045396
mov rcx, qword [rbx]
jmp 0x140045399
mov rcx, rbx
cmp qword [rdi + 0x18], 8
jb 0x1400453a5
mov rax, qword [rdi]
jmp 0x1400453a8
mov rax, rdi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.CFileUploader::HttpSyncPostRequest___Using_HTTPS_to_do_a_GET_to__s_s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x47a
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp qword [rbx + 0x18], 8
jb 0x1400453d9
mov r8, qword [rbx]
jmp 0x1400453dc
mov r8, rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x84803100
jmp 0x14004544a
cmp qword [rbx + 0x18], 8
jb 0x1400453f7
mov rcx, qword [rbx]
jmp 0x1400453fa
mov rcx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140045406
mov rax, qword [rdi]
jmp 0x140045409
mov rax, rdi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.CFileUploader::HttpSyncPostRequest___Using_HTTP_to_do_a_GET_to__s_s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x48d
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp qword [rbx + 0x18], 8
jb 0x14004543a
mov r8, qword [rbx]
jmp 0x14004543d
mov r8, rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x84000100
lea rdx, [0x140221840]
mov rcx, r13
call fcn.140049bec
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140045497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_HttpOpenRequest_hRequest2__error___d
mov ebx, 0x80
mov r8d, 0x49e
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov edi, 0x80004005
mov r14d, edi
jmp 0x1400456aa
or r13, 0xffffffffffffffff
cmp byte [r15 + 0x238], r12b
je 0x14004554f
lea rsi, [r15 + 0x240]
lea r8d, [r13 + 0x18]
lea rdx, str._r_n_r_n_Server_Request:__r_n
mov rcx, rsi
call fcn.14000fae0
lea r8d, [r13 + 7]
lea rdx, str.POST:
mov rcx, rsi
call fcn.14000fae0
mov rcx, rsi
cmp dword [rbp + 0x2d0], 0x1bb
jne 0x1400454f1
lea r8d, [r13 + 9]
lea rdx, str.https:__
jmp 0x1400454fe
mov r8d, 7
lea rdx, str.http:__
call fcn.14000fae0
mov r9, r13
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14000fc3c
mov r9, r13
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.14000fc3c
mov r8d, 2
lea rdx, [0x140494ec8]
mov rcx, rsi
call fcn.14000fae0
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnlock
lea rdx, str._r_n_Server_Headers:__r_n
mov rcx, rsi
call fcn.14000fae0
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call fcn.1400465bc
mov r9, qword [rsp + 0x60]
mov r8d, dword [rbp + 0x2f0]
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call fcn.1400461dc
mov r12b, al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea rdx, [rbp + 0x20]
mov rcx, r15
call fcn.140045dac
mov rbx, rax
lea rdi, [r15 + 0x88]
cmp rdi, rax
je 0x1400455c9
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.14000f964
mov rdx, rbx
mov rcx, rdi
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.14000f964
mov esi, dword [rsp + 0x40]
xor ebx, ebx
cmp byte [r15 + 0x238], bl
je 0x140045645
mov dword [rsp + 0x20], esi
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 0x14004560e
mov r8d, ebx
jmp 0x140045620
lea rax, [rbp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140045616
lea rbx, [r15 + 0x240]
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.14000fae0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14000fc3c
mov ebx, 0x80
mov edi, 0x80004005
test r12b, r12b
jne 0x140045674
mov dword [rsp + 0x20], r13d
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_UseHttpSendReqEx__error___d
mov r8d, 0x4cf
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov r14d, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x1400456a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_InternetCloseHandle_hRequest2__error___d
mov r8d, 0x4d5
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov r13, qword [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x1400456d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_InternetCloseHandle_hConnect2__error___d
mov r8d, 0x4db
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x14004570a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed_InternetCloseHandle_hSession2__error___d
mov r8d, 0x4e1
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
cmp esi, 0x12b
jle 0x140045731
mov dword [rsp + 0x20], esi
lea r9, str.CFileUploader::HttpSyncPostRequest___Failed:_Status_code_was__d
mov r8d, 0x4e5
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140016e24
mov r14d, edi
mov edi, r14d
lea rcx, [rbp - 0x80]
call fcn.140016b40
mov eax, edi
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