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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x480], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400e507c
call fcn.14027b988
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400e508a
call fcn.14027b988
xor r15d, r15d
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], r15d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], r15w
or r8d, 0xffffffff
mov rdx, qword [0x1404435d0]
lea rcx, [rsp + 0x50]
call fcn.1400c2e90
nop
mov rdx, qword [str.h6D_]
cmp word [rdx], r15w
jne 0x1400e51e6
test rsi, rsi
je 0x1400e50e1
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400c2d30
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], Ordinal_133
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 0x1400e511f
lea rdx, str.Error_opening_file
jmp 0x1400e5199
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
jne 0x1400e5139
lea rdx, str.File_is_empty
jmp 0x1400e5199
cmp edi, 0x400000
jbe 0x1400e514a
lea rdx, str.File_too_large
jmp 0x1400e5199
mov dword [rsp + 0x40], r15d
mov rcx, rdi
call fcn.140125a94
mov r14, rax
mov qword [rsp + 0x20], r15
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 0x1400e51c8
mov rcx, r14
call fcn.140125e14
mov rcx, rbx
call fcn.14008cd60
lea rdx, str.Could_not_read_file
mov r8d, 0x63
lea rcx, [rbx + 0x18]
call fcn.140295dac
mov r8d, gethostbyname
lea rdx, [0x14033aa88]
lea rcx, [rbx + 0xe0]
call fcn.140295dac
xor bl, bl
jmp 0x1400e53ef
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call fcn.1400e4f40
movzx ebx, al
mov rcx, r14
call fcn.140125e14
jmp 0x1400e53ef
lea rcx, [rsp + 0x50]
call fcn.1400c2d30
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400e5202
mov rdi, qword [0x140457478]
jmp 0x1400e5266
lea rax, [rbp + 0x78]
mov qword [rbp + 0x70], rax
mov word [rbp + 0x78], r15w
or r8d, 0xffffffff
mov rdx, qword [0x1404436f0]
lea rcx, [rbp + 0x70]
call fcn.1400c2e90
nop
mov rcx, qword [rbp + 0x70]
call fcn.1400c29c0
mov r14, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x50]
call fcn.1400d21a0
mov rdi, rax
test r14, r14
je 0x1400e5254
mov rcx, r14
call fcn.140125e14
nop
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x1400e5266
call fcn.14027b988
test rdi, rdi
jne 0x1400e529d
lea rcx, [rbx + 0x18]
lea r8d, [rdi + 0x63]
lea rdx, str.Error_opening_zip_file
call fcn.140295dac
lea rcx, [rbx + 0xe0]
lea r8d, [rdi + 0x31]
lea rdx, [0x14033aa88]
call fcn.140295dac
xor bl, bl
jmp 0x1400e53ef
mov dword [rsp + 0x40], r15d
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x18], r15w
or r8d, 0xffffffff
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1400c2e90
nop
lea r8, [0x14034b08c]
lea rdx, [0x14034b0a4]
lea rcx, [rbp - 0x20]
call fcn.1400c3270
cmp dword [rdi], 1
je 0x1400e52e8
mov dword [0x140457d08], 0x80000
jmp 0x1400e5310
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rdi + 8]
call fcn.1400d1ec0
mov dword [0x140457d08], eax
test eax, eax
je 0x1400e5319
lea rdx, str.Could_not_find_ziped_file
jmp 0x1400e5385
mov esi, dword [rbp + 0x32c]
test esi, esi
jne 0x1400e532c
lea rdx, str.File_is_empty
jmp 0x1400e5385
cmp esi, 0x400000
jbe 0x1400e533d
lea rdx, str.File_too_large
jmp 0x1400e5385
mov rcx, rsi
call fcn.140125a94
mov r14, rax
mov r9d, esi
mov r8, rax
mov edx, dword [rsp + 0x40]
mov rcx, rdi
call fcn.1400d22e0
test eax, eax
je 0x1400e53b1
cmp eax, 0x600
je 0x1400e53b1
mov rcx, r14
call fcn.140125e14
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400e537e
mov rcx, rdi
call fcn.1400d2330
lea rdx, str.Could_not_unzip_file
mov r8d, 0x63
lea rcx, [rbx + 0x18]
call fcn.140295dac
mov r8d, gethostbyname
lea rdx, [0x14033aa88]
lea rcx, [rbx + 0xe0]
call fcn.140295dac
xor bl, bl
jmp 0x1400e53dc
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400e53c2
mov rcx, rdi
call fcn.1400d2330
mov r8d, esi
mov rdx, r14
mov rcx, rbx
call fcn.1400e4f40
movzx ebx, al
mov rcx, r14
call fcn.140125e14
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x1400e53ef
call fcn.14027b988
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x1400e5403
call fcn.14027b988
movzx eax, bl
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x480]
add rsp, 0x440
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret