Function at 0x140019f98
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rbx, rcx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne case.default.0x140019fe4
add rsp, 0x40
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140019fdf
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x140019fdf
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbx + 0x18], eax
cmp eax, 0xffffffff
je 0x140019fdf
xor eax, eax
add rsp, 0x40
pop rbx
ret
sbb dl, bh
jns 0x140051829
invalid
invalid
jg 0x1400517a9
invalid
loope 0x1400517bb
invalid
sar dword [rdx - 0x1e], 1
push rdx
loop 0x140051856
pop rax
repne outsd dx, dword [rsi]
jnp 0x140051875
popfq
cld
add eax, 0xff2dcb22
mov edi, 0x77517ff
invalid
jne 0x14005181d
movabs al, byte [0xb31eb701c6f14507]
cmp edi, ecx
int 0x29
invalid
mov byte [rcx], 0xb7
invalid
xchg esi, eax
jg 0x140051814
jmp 0x13f6cd250
dec dword [rsi + rbp*4 + 0x6b]
sub eax, esp
fist dword [rbx - 0x2d]
fistp dword [rcx]
rcl byte [rsi + 0x29]
push rsi
invalid
invalid
push rsi
sub dword [rax - 0x39], eax
lodsd eax, dword [rsi]
invalid
imul eax, dword [rbx + rsi*8 + 0x3d], 0x1beee58d
push rsi
out dx, eax
stosd dword [rdi], eax
add ebx, dword [rbx]
sub bh, byte [rcx]
jnp 0x1400518da
jnp 0x140051859
stc
pop rbp
adc byte [rdi + 0x54], bh
jg 0x1400518b8
jg 0x1400518b8
in eax, dx
adc ebp, esi
jnp case.0x140019fe4.25
cwde
invalid
mov dh, 0x68
invalid
jns 0x1400518cc
jb 0x140051800
xor edx, ebx
xor dword [0x16ad3afa2], esi
xor eax, 0x2ace971f
xor eax, 0x2ace971f
add al, 0x55
imul edi, dword [rdi + 0x77], 0x765f5f17
popfq
cmc
jg 0x140051813
jo 0x14005185e
rcl byte [rdi - 0x4067e1c2], cl
mov dh, byte [rdi - 0x1a]
add bh, byte [rbx]
jmp 0x1400518c2
outsd dx, dword [rsi]
cmpsd dword [rsi], dword [rdi]
cli
mov gs, eax
cmp al, 0xee
fimul word [rbx + 3]
add byte [rax - 0x73], r13b
lodsd eax, dword [rsi]
xor bl, ch
jmp 0xe29437cb
invalid
jne 0x1400518e7
in al, dx
mov eax, 0x1141628d
cdq
adc dword [rbx - 0x24167190], ecx
xchg edi, eax
push rsi
sahf
retf
jmp 0xde5bb0c7
invalid
out dx, eax
push rdx
ret 0xc5a7
invalid
invalid
sub eax, 0x6ce84e3f
stc
xlatb
wait
adc edi, dword [rax]
xchg edi, eax
or edi, esi
sbb al, 0xfd
xor ebp, edx
invalid
clc
xchg ebx, eax
invalid
invalid
hlt
int3
and dword [0xc373df5f], ecx
call 0x130ba600c
cmp edi, dword [rsi + 0x7c]
insd dword [rdi], dx
loop 0x140051de5
mov esi, 0x497e3f5
iretd
jno 0x140051df5
invalid
fst dword [rsi]
push rsi
cld
invalid
ret 0x9fe3
std
out dx, eax
clc
movabs word [0xd77fd079abaf667f], ax
jns 0x140051e6a
jg 0x140051e73
jns 0x140051e6a
jg 0x140051e73
add eax, eax
call 0x1300d0cb0
jg 0x140051eab
inc byte [rcx + 0x731a1330]
loop 0x140051f06
jae 0x140051e8f
pop rdi
cdq
sbb byte [rbx], bl
invalid
add dword [rdi - 0xb], ecx
sub bh, al
loop 0x140051ea6
mov esi, 0xebd3b3c3
invalid
adc dword [rax - 0x31], edi
mov edx, dword [rdi - 0x604c8571]
shr spl, cl
xchg edi, eax
fsqrt
cli
iretd
cli
or eax, 0x3fcef2df
push rbp
mov ebp, 0xb830079e
invalid
sahf
invalid
pop rcx
invalid
invalid
pop rsi
invalid
xchg dword [rax], eax
retf 0xc6ff
add spl, r13b
or eax, 0xd1b338d9
mov esi, 0xe2a7f6ff
xchg esi, eax
sti
cmpsd dword [rsi], dword [rdi]
push rbp
xchg byte [rsi + 0x52ecede4], al
invalid
hlt