Function at 0x140018150
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r13, r9
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov r12d, ebp
mov rcx, r9
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rcx, rax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r14, r14
je 0x1400183a5
test eax, eax
jne 0x1400183a5
add rbx, 0x9c
lea r9d, [rbp + 4]
mov r8, rbx
lea edx, [rbp + 2]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r9d, [rbp + 4]
mov r8, rbx
lea edx, [rbp + 6]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r9d, [rbp + 4]
mov r8, rbx
lea edx, [rbp + 5]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.mfc90u.dll_CStdioFile::Flush]
mov rdx, rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbp
xor r9d, r9d
movzx r8d, si
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rbx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x14001838e
test eax, eax
jne 0x14001838e
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov r8, rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, str.POST
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x140018377
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140018343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, 1
mov rsi, qword [rsp + 0xc8]
mov r9, rsi
mov edi, dword [rsp + 0xc0]
mov r8d, edi
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140018325
nop
movsxd rcx, dword [rsi]
test ecx, ecx
je 0x140018357
add rbx, rcx
sub edi, ecx
mov byte [rbx], 0
mov r9, rsi
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140018300
xor r12d, r12d
mov ecx, dword [rsp + 0xd0]
call fcn.140017140
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
jmp 0x140018364
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0xd0]
call fcn.140017140
jmp 0x140018364
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WININET.dll_HttpEndRequestW]
jmp 0x140018383
mov ecx, dword [rsp + 0xd0]
call fcn.140017140
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14001839a
mov ecx, dword [rsp + 0xd0]
call fcn.140017140
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400183e3
cmp dword [rsp + 0xd0], ebp
je 0x1400183e3
lea rcx, [rsp + 0x40]
call qword [0x1403f4428]
nop
mov edx, 0x8003
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CPreviewDC::GrayStringW]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14003e230
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, rdi
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, r13
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, r12d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret