Function at 0x180019b20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x8c8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x180019b7b
xor eax, eax
jmp 0x180019dd0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x180019ba5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180019dd0
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180019be0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180019dd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x30
call fcn.180002fbc
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x180019c39
mov rcx, qword [rsp + 0x70]
call fcn.1800191f0
mov qword [rsp + 0x78], rax
jmp 0x180019c42
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov r9d, 0x10
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x10]
mov eax, dword [rsp + 0x40]
sub eax, 0x10
mov rcx, qword [rsp + 0x48]
add rcx, 0x10
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
mov qword [rsp + 0x90], rdx
lea r9, [rsp + 0x60]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180019cf4
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [rax]
mov qword [rsp + 0x98], rax
jmp 0x180019d00
mov qword [rsp + 0x98], 0
mov eax, dword [rsp + 0x40]
sub eax, 0x10
mov rcx, qword [rsp + 0x48]
add rcx, 0x10
mov rdx, qword [rsp + 0x8e0]
mov rdx, qword [rdx]
mov qword [rsp + 0xa0], rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x8e0]
mov rax, qword [rsp + 0xa0]
call qword [rax + 0x38]
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.180001050
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x8e0]
add rax, 0x40
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.180001ee0
lea rcx, [rsp + 0xa8]
call fcn.180001d70
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x3e8
rep movsb byte [rdi], byte [rsi]
mov r8d, 4
lea rdx, str.http
lea rcx, [rsp + 0xc0]
call fcn.180007ba8
test eax, eax
je 0x180019dcb
xor eax, eax
jmp 0x180019dd0
mov eax, 1
add rsp, 0x8c8
pop rdi
pop rsi
ret