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
outsd dx, dword [rsi]
fistp word [rsi]
fild word [rbx]
in al, dx
movabs eax, dword [0x3943cbcfac5f350d]
cmpsd dword [rsi], dword [rdi]
sub dh, ch
push 0xfffffffffffffffd
invalid
outsd dx, dword [rsi]
mov cl, 0x74
mov al, 0x98
sbb bl, byte [rsi - 0x47688572]
push rdi
invalid
jbe 0x1400517c0
push 0x6837c2f8
invalid
bsr edi, dword [rax + 0x7b6c829e]
imul ebx, dword [rbp + 0x3ed2bbfc], 0xffffffb6
invalid
mov es, ebp
add dl, byte cs:[rdi + rsi*4 - 0x61c64ce2]
add dl, byte [rdi + rsi*4 - 0x61c64ce2]
add dl, byte [rdi + rsi*4 - 0x61c64ce2]
movabs byte [0x437b10967f17e72e], al
insd dword [rdi], dx
std
jge 0x14005189f
outsb dx, byte [rsi]
xor ecx, dword [rcx - 0x611784cb]
mov ebp, 0x9ff9fe22
sub eax, 0x8a341f70
jo 0x14005185d
xor al, 0x8a
jo 0x14005185d
xor al, 0x8a
jp 0x1400517f7
sub al, 0x9e
add dword [rax], eax
sahf
int1
call 0x17d92ab03
xchg edi, eax
mov al, 0x4d
ficom word [rax]
invalid
jle 0x14005186f
in eax, dx
invalid
call qword [rdi - 0x1326c960]
lodsb al, byte [rsi]
sub byte [0x1bafc58e9], r9b
idiv dword [rdx + 0x10]
scasd eax, dword [rdi]
adc byte [rax - 0x51], al
mov edi, 0xb38ab18b
invalid
outsd dx, dword [rsi]
hlt
adc eax, 0xa86d1864
sbb byte [rbp - 0x58], ch
je 0x140051817
mov edx, gs
xlatb
cmp dword [rbp + 0x2256a4de], edi
imul ebx, dword [rbx + 0x41], 0x86aeeb79
fstp st(7)
movabs byte [0x17fb7ea014bf44d8], al
jns 0x14005188c
scasb al, byte [rdi]
xchg ch, bl
fisttp word [rdi + 0x41]
movabs byte [0x17fb7ea014bf44d8], al
sbb al, 7
mov ebx, 0x5b9204b8
cmp ebp, dword [rdi - 0x59]
cli
mov fs, word [rsi - 0x3a]
mov al, 0x8f
invalid
in eax, 0x6b
pop rbp
shr dword [rax + 0x1c], 1
ret
jp 0x140051e49
sub eax, 0xddd54167
mov esp, 0xb77a0159
outsd dx, dword [rsi]
pop rbx
cmp dword [rbp + 0x777b3764], edi
pop rbx
fidiv word [rsi + 0x6730dedc]
xchg esp, eax
div esi
pop rax
movsb byte [rdi], byte [rsi]
mov dl, 0xdd
fistp dword [rdi - 0x3c]
or dword [rdi + 0x7dfd8e], edx
cmc
mov bl, byte gs:[rsi]
adc al, 0xf7
sar dword [rdx + 0x5e64521b], cl
mov cl, 0xd1
adc al, 0x43
cmp ebx, edi
invalid
pushfq
invalid
invalid
invalid
test edx, ebp
xchg ecx, eax
je 0x140051ee2
outsd dx, dword [rsi]
int 0xd1
clc
push rcx
pop rdi
invalid
movabs eax, dword [0x19730d3f46553932]
int 0x4d
xchg ebp, eax
push rsi
int1
fcmovnu st(0), st(1)
cmp al, 0x12
mov ah, 0x7e
jns 0x140051e6a
jg 0x140051e73
pop rdi
cld
std
rcr dword [rdx], cl
jg 0x140051e91
pop rbp
jmp 0x11e59cb75
lodsb al, byte [rsi]
push rsp
invalid
scasd eax, dword [rdi]
lock add byte [rsi + 0x6cc44d9d], bh
popfq
or byte [rdi - 0x7a13b423], ch
lodsb al, byte [rsi]
in eax, 0x97
pop rax
xchg esi, eax
js 0x140051ecc
in al, dx
cwde
invalid
mov r9b, 0xee
invalid
int1
invalid
mov bh, 0x4a
or dl, byte [rbp + 0x6aae7ff2]
xor eax, 0x668d0082
mov ch, 0xd6
adc bl, byte [rax - 0x5c]
jge case.0x140019fe4.4
and al, 0x4a
invalid
add dh, byte [rbp + rax*4 + 0x11d4e828]
retf
call 0x192d030ef
adc eax, 0x10ab6f54
add al, 0x89
jns 0x140051f97
out 0xcb, al
cmc
adc eax, 0x86c1005f
pop rdi
add cl, al
xchg byte [rcx + 0x52], bl
pop rdi
add cl, al
xchg byte [rcx + 0x52], bl
loope 0x140051f16
hlt
invalid
invalid
sbb ah, byte [rbp + 0x73a6e013]
invalid
push rsi
fcompi st(6)
stc
ret
push rcx
pop r9
call 0xff01e367
cmc
out dx, eax
invalid
clc
push rsp
mov bl, 0x72
invalid
leave
invalid