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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x14036e3c8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x80], rcx
call fcn.140004ca0
mov rcx, rax
test rax, rax
je 0x14000d790
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x58], rsi
xor r15d, r15d
mov qword [rsp + 0x78], r15
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.14000d080
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x120089
lea r8d, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x14000d345
lea rcx, [rsi - 0x18]
call fcn.14000d080
add rax, 0x18
mov qword [rdi], rax
lea rdx, [rbx - 0x18]
mov r14, r12
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d322
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
lock xadd dword [rsi - 8], r14d
sub r14d, 1
jg 0x14000d33d
mov rcx, qword [rsi - 0x18]
mov r8, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rioctlsocket + 8]
mov rax, rdi
jmp 0x14000d763
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x14000d6eb
lea ecx, [rax + 1]
mov r13d, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r15
mov rdi, r15
test ecx, ecx
je 0x14000d3e2
cmp r13, 0x1000
jb 0x14000d3ae
add rcx, 0x27
cmp rcx, r13
jbe 0x14000d79b
call fcn.140242f80
test rax, rax
je 0x14000d7b7
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000d3b9
mov rcx, r13
call fcn.140242f80
mov rdi, rax
mov qword [rsp + 0x88], rdi
lea rbx, [rdi + r13]
mov qword [rsp + 0x98], rbx
mov r8, r13
xor edx, edx
mov rcx, rdi
call fcn.140245f10
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x40], r15d
nop word [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000d41d
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14000d41d
add rdi, rcx
sub r14d, ecx
jne 0x14000d3f0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
mov r8d, 0x3a8
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call fcn.14000ac10
nop
mov rbx, qword [rsp + 0xb0]
call fcn.140004ca0
mov rcx, rax
test rax, rax
je 0x14000d7a1
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14000cf60
mov r14, 0xffffffffffffffff
test al, al
jne 0x14000d4af
test rbx, rbx
je 0x14000d49e
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000d491
mov r15d, eax
mov r8d, r15d
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14000ae30
nop
lea rax, [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
cmp rcx, rax
je 0x14000d4c9
call fcn.140255ce0
call fcn.140004ca0
mov rcx, rax
test rax, rax
je 0x14000d7ac
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rbx, str._VersionString__
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000cf60
test al, al
jne 0x14000d51f
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000d504
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000ae30
nop
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
test rdi, rdi
jne 0x14000d533
mov ecx, r14d
jmp 0x14000d55c
cmp dword [rbx - 0x10], 0
jge 0x14000d53e
mov ecx, r14d
jmp 0x14000d55c
mov rdx, rdi
mov rcx, rbx
call fcn.140244740
mov rcx, rax
test rax, rax
jne 0x14000d556
mov ecx, r14d
jmp 0x14000d55c
sub rcx, rbx
sar rcx, 1
lea r13, [rdi - 0x18]
mov r8d, dword [r13 + 8]
add r8d, ecx
lea r15, [rbx - 0x18]
mov r9d, dword [r15 + 8]
sub r9d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400057f0
nop
mov rbx, qword [rsp + 0x60]
lea rdi, [rbx - 0x18]
cmp dword [rdi + 8], 0
jge 0x14000d596
mov eax, r14d
jmp 0x14000d5b5
lea rdx, str.__item_
mov rcx, rbx
call fcn.140244740
test rax, rax
jne 0x14000d5af
mov eax, r14d
jmp 0x14000d5b5
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.14000d7c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14000d629
mov eax, dword [rsi + 0x10]
shr eax, 0x1f
test al, al
jne 0x14000d61a
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14000d61a
call fcn.14000d080
mov rbx, rax
mov ecx, r14d
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x14000d60f
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rioctlsocket + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x14000d629
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000ae30
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d64c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x14000d666
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + ioctlsocket]
nop
mov eax, r14d
lock xadd dword [r13 + 0x10], eax
sub eax, 1
jg 0x14000d682
mov rcx, qword [r13]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + ioctlsocket]
nop
mov eax, r14d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x14000d69d
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + ioctlsocket]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000d6df
mov rdx, qword [rsp + 0x98]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d6da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d7b7
call fcn.1402434a4
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
jmp 0x14000d6f2
mov r14, 0xffffffffffffffff
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d70d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
jmp 0x14000d728
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
lea rcx, [rbx - 0x18]
call fcn.14000d080
add rax, 0x18
mov qword [rdi], rax
lock xadd dword [rbx - 8], r14d
sub r14d, 1
jg 0x14000d760
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402435c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.140004b20
nop
call fcn.140007850
nop
mov ecx, 0x80004005
call fcn.140004b20
nop
mov ecx, 0x80004005
call fcn.140004b20
nop
call fcn.14024a84c
int3