Function at 0x140003cf0
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, 0x1c8
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.FTP_Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140003d9c
lea rcx, [rsp + 0x120]
call fcn.140003b90
mov qword [rsp + 0x70], rax
lea rdx, str.InternetOpen_failed_with_error
lea rcx, [0x140049480]
call fcn.14000a710
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
mov rcx, rax
call fcn.14000aa80
lea rdx, [0x14000adf0]
mov rcx, rax
call fcn.1400053d0
lea rcx, [rsp + 0x120]
call fcn.140004cc0
xor al, al
jmp 0x1400041a6
mov dword [rsp + 0x50], 0x15
xor r8d, r8d
lea rdx, [0x140042d98]
mov rcx, qword [rsp + 0x1d0]
call fcn.140004bd0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0xd0]
call fcn.140004f20
mov rax, qword [0x140043160]
cmp qword [rsp + 0x60], rax
je 0x140003e6a
mov rax, qword [rsp + 0x60]
inc rax
mov r9, qword [0x140043160]
mov r8, rax
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x1d0]
call fcn.140004b80
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140003ad0
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.140004cc0
mov r9, qword [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x1d0]
call fcn.140004b80
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140004cf0
lea rcx, [rsp + 0x160]
call fcn.140004cc0
nop
jmp 0x140003e83
mov rcx, qword [rsp + 0x1e0]
call fcn.140004c10
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x1d8]
call fcn.140004c10
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xd0]
call fcn.140004c10
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x80]
mov r9, rcx
movzx r8d, word [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140003f84
lea rcx, [rsp + 0x180]
call fcn.140003b90
mov qword [rsp + 0x88], rax
lea rdx, str.InternetConnect_failed_with_error
lea rcx, [0x140049480]
call fcn.14000a710
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, rax
call fcn.14000aa80
lea rdx, [0x14000adf0]
mov rcx, rax
call fcn.1400053d0
lea rcx, [rsp + 0x180]
call fcn.140004cc0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0xd0]
call fcn.140004cc0
movzx eax, byte [rsp + 0x41]
jmp 0x1400041a6
mov rcx, qword [rsp + 0x1e8]
call fcn.140004c10
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14000404e
lea rcx, [rsp + 0x1a0]
call fcn.140003b90
mov qword [rsp + 0x90], rax
lea rdx, str.FtpOpenFile_failed_with_error
lea rcx, [0x140049480]
call fcn.14000a710
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
mov rcx, rax
call fcn.14000aa80
lea rdx, [0x14000adf0]
mov rcx, rax
call fcn.1400053d0
lea rcx, [rsp + 0x1a0]
call fcn.140004cc0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0xd0]
call fcn.140004cc0
movzx eax, byte [rsp + 0x42]
jmp 0x1400041a6
mov edx, 0x1000
lea rcx, [rsp + 0xb8]
call fcn.140004a10
lea rcx, [rsp + 0xb8]
call fcn.140004910
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xb8]
call fcn.1400048c0
lea r9, [rsp + 0x54]
mov rcx, qword [rsp + 0x98]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004161
cmp dword [rsp + 0x54], 0
jbe 0x140004161
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0x1f0]
call fcn.140004950
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xb8]
call fcn.1400049a0
mov rcx, qword [rsp + 0xa0]
mov r8, rcx
lea rdx, [rsp + 0x108]
mov rcx, rax
call fcn.140004870
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb8]
call fcn.1400049a0
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rcx
mov r9, qword [rax]
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x1f0]
call fcn.14000ae40
jmp 0x140004060
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x43], 1
lea rcx, [rsp + 0xb8]
call fcn.1400049f0
lea rcx, [rsp + 0xd0]
call fcn.140004cc0
movzx eax, byte [rsp + 0x43]
add rsp, 0x1c8
ret