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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x78], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
cmp qword [rdx + 0x18], 8
jb 0x14003efac
mov rcx, qword [rdx]
jmp 0x14003efaf
mov rcx, rdx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14005f270
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14003f0de
cmp qword [rax], 0xffffffffffffffff
jne 0x14003f0de
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.14002d610
mov rbx, rax
movdqa xmm0, xmmword [0x14019d390]
movdqa xmmword [rbp + 0x420], xmm0
movdqa xmm1, xmmword [0x14019cd70]
movdqa xmmword [rbp + 0x430], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x440], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x450], xmm1
movdqa xmmword [rbp + 0x460], xmm0
movdqa xmmword [rbp + 0x470], xmm1
movdqa xmmword [rbp + 0x480], xmm0
movdqa xmmword [rbp + 0x490], xmm1
mov r9b, 0x39
lea r8, [0x140171cc0]
mov edx, 0x16
lea rcx, [rbp + 0x420]
call fcn.1400164b0
mov rdx, rax
lea rcx, [rbp + 0x190]
call fcn.140019c00
nop
mov rdx, rbx
mov rcx, rax
call fcn.14001baf0
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.140019dc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14003f0ae
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400eefd4
nop
lea rax, vtable.message_exception.0
mov qword [rbp - 0x70], rax
lea rdx, [0x1401fdcb0]
lea rcx, [rbp - 0x70]
call fcn.1400ef340
nop
mov qword [rbp + 0x390], rsi
test rax, rax
mov rcx, rsi
je 0x14003f0f0
mov rcx, qword [rax]
lea rdx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14003f1e7
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.14002d610
mov rbx, rax
movdqa xmm0, xmmword [0x14019d530]
movdqa xmmword [rbp + 0x3a0], xmm0
movdqa xmm1, xmmword [0x14019d870]
movdqa xmmword [rbp + 0x3b0], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x3c0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x3d0], xmm1
movdqa xmmword [rbp + 0x3e0], xmm0
movdqa xmmword [rbp + 0x3f0], xmm1
movdqa xmmword [rbp + 0x400], xmm0
movdqa xmmword [rbp + 0x410], xmm1
mov r9b, 0xe2
lea r8, [0x140171cd8]
mov edx, 0x20
lea rcx, [rbp + 0x3a0]
call fcn.1400164b0
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.140019c00
nop
mov rdx, rbx
mov rcx, rax
call fcn.14001baf0
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140019dc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14003f1b7
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call fcn.1400eefd4
nop
lea rax, vtable.message_exception.0
mov qword [rbp - 0x50], rax
lea rdx, [0x1401fdcb0]
lea rcx, [rbp - 0x50]
call fcn.1400ef340
nop
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov dword [rsp + 0x40], 1
mov edx, dword [rbp + 0x390]
mov rcx, rdi
call fcn.140042d50
mov dword [rbp + 0x398], esi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14003f21d
mov rcx, rsi
jmp 0x14003f220
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x398]
mov r8d, dword [rbp + 0x390]
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003f329
mov rdx, rbx
lea rcx, [rbp + 0x28]
call fcn.14002d610
mov rbx, rax
movdqa xmm0, xmmword [0x14019d8b0]
movdqa xmmword [rbp + 0x4a0], xmm0
movdqa xmm1, xmmword [0x14019ce30]
movdqa xmmword [rbp + 0x4b0], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x4c0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x4d0], xmm1
movdqa xmmword [rbp + 0x4e0], xmm0
movdqa xmmword [rbp + 0x4f0], xmm1
movdqa xmmword [rbp + 0x500], xmm0
movdqa xmmword [rbp + 0x510], xmm1
mov r9b, 0x8c
lea r8, [0x140171d00]
mov edx, 0x19
lea rcx, [rbp + 0x4a0]
call fcn.1400164b0
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140019c00
nop
mov rdx, rbx
mov rcx, rax
call fcn.14001baf0
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140019dc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14003f2f6
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1400eefd4
nop
lea rax, vtable.message_exception.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1401fdcb0]
lea rcx, [rsp + 0x70]
call fcn.1400ef340
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14003f350
lock dec dword [rbx + 8]
jne 0x14003f350
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x14003f350
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
mov rax, rdi
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret