Function at 0x14001551c
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 rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, r9
mov edi, r8d
mov r15, 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]
cmp r14, rbp
je 0x14001575d
cmp eax, ebp
jne 0x14001575d
add rbx, 0x9c
lea esi, [rbp + 4]
mov r9d, esi
mov r8, rbx
lea edx, [rbp + 2]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, esi
mov r8, rbx
lea edx, [rbp + 6]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, esi
mov r8, rbx
lea edx, [rbp + 5]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor edx, edx
mov rcx, r15
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, di
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, rbp
je 0x140015746
cmp eax, ebp
jne 0x140015746
mov rcx, qword [rsp + 0xb0]
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, rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rbp
je 0x14001572f
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebp
je 0x140015703
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12d, [rbp + 1]
mov rbp, qword [rsp + 0xd8]
mov r9, rbp
mov esi, dword [rsp + 0xd0]
mov r8d, esi
mov rdi, qword [rsp + 0xc8]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400156ed
cmp dword [rbp], 0
je 0x140015717
movsxd rax, dword [rbp]
add rdi, rax
sub esi, dword [rbp]
mov byte [rdi], 0
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400156c4
xor r12d, r12d
mov ecx, dword [rsp + 0xe0]
call fcn.14001476c
mov rdi, qword [rsp + 0x40]
jmp 0x14001571c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0xe0]
call fcn.14001476c
jmp 0x14001571c
mov rdi, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpEndRequestW]
jmp 0x14001573b
mov ecx, dword [rsp + 0xe0]
call fcn.14001476c
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140015752
mov ecx, dword [rsp + 0xe0]
call fcn.14001476c
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14001576a
mov ecx, dword [rsp + 0xe0]
call fcn.14001476c
nop
mov rcx, r15
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 + 0xb0]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov eax, r12d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret