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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x320
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x18019f8f4
call fcn.1801cc408
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18019f902
call fcn.1801cc408
xor r14d, r14d
mov qword [rbx], r14
mov qword [rbx + 8], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], r14w
lea r8d, [r14 - 1]
mov rdx, qword [0x1802e9610]
lea rcx, [rsp + 0x50]
call fcn.18016b370
nop
mov rdx, qword [0x1802e96a0]
cmp word [rdx], r14w
jne 0x18019fa23
test rsi, rsi
je 0x18019f955
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.18016b290
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18019f996
lea rdx, str.Error_opening_file
jmp 0x18019fafa
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
jne 0x18019f9b3
lea rdx, str.File_is_empty
jmp 0x18019fafa
cmp edi, 0x400000
jbe 0x18019f9c7
lea rdx, str.File_too_large
jmp 0x18019fafa
mov dword [rsp + 0x40], r14d
mov rcx, rdi
call fcn.1801c7d10
mov rbp, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], edi
je 0x18019fa1b
mov rcx, rbp
call fcn.1801c74d4
mov rcx, rbx
call fcn.1801744b0
lea rdx, str.Could_not_read_file
jmp 0x18019fafa
mov r8d, edi
jmp 0x18019fb3a
lea rcx, [rsp + 0x50]
call fcn.18016b290
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x18019fa3f
mov rdi, qword [0x1802f0d60]
jmp 0x18019fa52
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x50]
call fcn.1801958a0
mov rdi, rax
test rdi, rdi
jne 0x18019fa63
lea rdx, str.Error_opening_zip_file
jmp 0x18019fafa
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.180195ae0
test eax, eax
je 0x18019fa8d
lea rdx, str.Could_not_find_ziped_file
jmp 0x18019fafa
mov esi, dword [rsp + 0x30c]
test esi, esi
jne 0x18019faa1
lea rdx, str.File_is_empty
jmp 0x18019fafa
cmp esi, 0x400000
jbe 0x18019fab2
lea rdx, str.File_too_large
jmp 0x18019fafa
mov rcx, rsi
call fcn.1801c7d10
mov rbp, rax
mov r9d, esi
mov r8, rax
mov edx, dword [rsp + 0x40]
mov rcx, rdi
call fcn.180195c70
test eax, eax
je 0x18019fb26
cmp eax, 0x600
je 0x18019fb26
mov rcx, rbp
call fcn.1801c74d4
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x18019faf3
mov rcx, rdi
call fcn.180195dd0
lea rdx, str.Could_not_unzip_file
mov r8d, 0x63
lea rcx, [rbx + 0x18]
call fcn.1801d8eec
lea rdx, [0x18024c34c]
mov r8d, gethostbyname
lea rcx, [rbx + 0xe0]
call fcn.1801d8eec
xor bl, bl
jmp 0x18019fb51
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x18019fb37
mov rcx, rdi
call fcn.180195dd0
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.18019f7b0
movzx ebx, al
mov rcx, rbp
call fcn.1801c74d4
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x18019fb65
call fcn.1801cc408
movzx eax, bl
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1801c74b0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret