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
invalid
mov ecx, 0xbb72e4ed
cld
retf 0xf81f
scasq rax, qword [rdi]
xchg ebp, eax
invalid
invalid
cmp dword [rdx + 0xa8afd8], 0xd6be31ea
movabs dword [0xadbcdd1d20312a96], eax
call 0xff9d7394
xor byte [rax + 0x74], bl
imul ax, word fs:[rdx + 0x5c], 0x17ea
pop rsp
invalid
invalid
jno 0x1400518b8
pop rsp
invalid
invalid
mov ecx, 0x3d5e6660
push rbp
jl 0x14005181d
call rdi
push si
push rsi
movabs al, byte [0x5ffe4f8e72d30e0b]
xchg edi, eax
jg 0x14005187b
fisubr dword [rdi]
invalid
cmp esi, ecx
invalid
test eax, 0xb6224617
in al, 0x80
sti
push rsp
lahf
cmpsb byte [rsi], byte [rdi]
invalid
adc dh, bl
or eax, dword [rsi - 0x6d5e9e3a]
cmp eax, 0xcdb37eff
cmp eax, dword es:[rdx]
invalid
insd dword [rdi], dx
sub esi, dword [rbp + 0x7b]
mov eax, 0x7fa32024
loop 0x140051846
out dx, al
xchg ecx, eax
jno 0x140051852
out 0xc8, al
add dword [r9 - 0x45840f0a], eax
mov ebp, 0xf5c0d5dc
jle 0x14005191a
lock adc ecx, dword [rcx]
adc dword [rsi], esp
jge 0x14005193a
sti
ret
in eax, 0xb9
sbb eax, 0x84c3bff9
int1
cmp esi, ecx
sbb al, dl
invalid
xlatb
push 0xffffffffebbc430f
invalid
pushfq
in eax, 0xb3
invalid
add eax, 0x6ebe7f81
push rsp
imul eax, dword [rdx + 0x5e], 0x5d3a6eea
js 0x140051ddd
pop rsi
invalid
js 0x140051ddc
cmc
insb byte [rdi], dx
mov edi, 0x76a48788
xchg dword [rsi + rsi*2 - 0x66840fe0], esp
xchg dword [rsi + rsi*2 - 0x66840fe0], esp
jg 0x140051e71
push rdi
mov edi, dword [rsi]
invalid
invalid
vpunpckhwd ymm10, ymm2, ymmword [rdi + rcx*4 + 0x2a3aca7c]
invalid
mov bh, 0x26
test byte [rax - 0x1a], dl
invalid
sub ch, bl
movsd dword [rdi], dword [rsi]
or ebx, esi
imul edi, edx, 0x75
bnd jno 0x140051e69
or dword [rcx - 0x72fb5], ecx
ja 0x140051de6
xchg dword [rbx + 0x21e23ce7], eax
sbb qword [rbx + 0x7e], r14
invalid
jle 0x140051ed1
cmp byte [eax + eax], ah
cmp byte [rax + rax], ah
pushfq
cmc
lodsb al, byte [rsi]
invalid
invalid
invalid
retf 0x548
cmp ebp, ebx
sbb byte [rax - 0x30f1770c], ch
push rsp
xor dword [rax - 0x4a], ecx
jmp 0x140051ee6
hlt
cdq
sbb ah, byte [rax + 0xc85abdb]
popfq
adc bl, byte [rbp - 0x7c]
cli
jge 0x140051f24
jne 0x140051edd
jmp 0xea67315d
stosb byte [rdi], al
jae 0x140051f01
mov al, 0xa2
push rdx
movsb byte [rdi], byte [rsi]
insd dword [rdi], dx
invalid
invalid
test ecx, 0x60d64936
cmpsd dword [rsi], dword [rdi]
test dword [rbx + 0x46288605], edx
fistp dword [r9 + 0x1f307fee]
jg 0x140051f44
invalid
invalid
fistp dword [rcx + 0x1f307fee]
jg 0x140051f44
invalid
push rbp
pop rbx
sbb byte [rax - 0x2e919096], 0xa7
jl 0x140051f67
sahf
not dword [rdx + 0xb042df2]
sub eax, 0x5b2b0b04
stc
sub ebx, dword [rbx - 7]
sbb eax, 0x653b1f62
mov byte [rax - 0x6a009434], dh
call [rdi + 0x65]
and dword [rbx - 0x41ad41ad], edi
mov ebx, 0xbe52be53
mov ebx, 0xbe52be53
jns 0x140051faf
sbb al, 0xde
pop rbp
mov byte [rbx], dl
push rdi
je 0x140051f22
mov ecx, 0x466785c9
adc al, byte fs:[rdi - 0x41]
adc al, byte fs:[edi - 0x41]
sbb edx, dword [rsi]
outsb dx, byte [rsi]
and ecx, dword [0xdfb0bb15]
loopne 0x140051f0f
invalid
mov dl, 0x6e
outsb dx, byte [rsi]
lodsb al, byte [rsi]
invalid
in al, 0xe
invalid
xchg dword [rsi + 0x7b2bd579], edi
jmp 0x140051fd3
movsd dword [rdi], dword [rsi]
pop rax
test dword [rsi - 0x72], ecx
add bh, byte [rcx - 0x3c1b20c9]
add edi, dword [rdx + riz*8]
jno 0xfc70e38e
cmp byte [rsi], dl
xchg ebp, eax
neg dword [rdi]
pop rcx
xor byte [rsp + rbp*2 + 0x63], dh
push rsp
sbb esi, dword [rdi]
invalid
invalid
adc ch, byte [rbp - 0x192db3c6]
xchg ebp, edi
pop rsi
retf 0xcec5
lahf
mov spl, 0x4a
cmpsb byte [rsi], byte [rdi]
test byte [rsi + 0x3d40429d], ah
outsd dx, dword [rsi]
sbb eax, 0x108b601a
xchg r14d, eax
jp 0x14005214f
adc byte [r14], al
push rax
invalid
jo 0x14005211e
adc ebx, esp
sahf
jmp 0xe52671e8