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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FTP_Client
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400107e5
lea rdx, str.InternetOpen_failed:
lea rcx, [0x1400d9540]
call fcn.1400017c0
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.140007300
mov qword [rsp + 0x78], rax
lea rdx, [0x140004a00]
mov rcx, qword [rsp + 0x78]
call fcn.140007520
xor al, al
jmp 0x140010b3c
mov rcx, qword [rsp + 0x170]
call fcn.14000e1d0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x168]
call fcn.14000e1d0
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x160]
call fcn.14000e1d0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8w, 0x15
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400108db
lea rdx, str.InternetConnect_failed:
lea rcx, [0x1400d9540]
call fcn.1400017c0
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x98]
call fcn.140007300
mov qword [rsp + 0xa0], rax
lea rdx, [0x140004a00]
mov rcx, qword [rsp + 0xa0]
call fcn.140007520
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140010b3c
mov rcx, qword [rsp + 0x178]
call fcn.14000e1d0
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140010987
lea rdx, str.FtpOpenFile_failed:
lea rcx, [0x1400d9540]
call fcn.1400017c0
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140007300
mov qword [rsp + 0xb0], rax
lea rdx, [0x140004a00]
mov rcx, qword [rsp + 0xb0]
call fcn.140007520
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140010b3c
lea rcx, [rsp + 0x41]
call fcn.140005550
mov r8, rax
mov edx, 0x1000
lea rcx, [rsp + 0x108]
call fcn.140005a40
lea rcx, [rsp + 0x108]
call fcn.140012160
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x108]
call fcn.14000e4b0
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140010b04
cmp dword [rsp + 0x44], 0
jbe 0x140010b04
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x108]
call fcn.14000e110
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0xc8]
call fcn.1400079e0
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x108]
call fcn.14000e110
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x180]
call fcn.140010bf0
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x100]
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x180]
call fcn.140004ad0
jmp 0x1400109a6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x108]
call fcn.140006a00
movzx eax, byte [rsp + 0x40]
add rsp, 0x158
ret