Function at 0x140042240
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14017b4c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor r14d, r14d
test rcx, rcx
je 0x14004227d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140042290
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r14
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400422a6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
mov qword [rdi + 0x10], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rcx, r14
mov qword [rsp + 0x48], rcx
mov edx, 7
mov qword [rsp + 0x50], rdx
mov word [rsp + 0x38], r14w
mov rbp, r14
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], bpl
jne 0x1400422d4
test rax, rax
je 0x14004235a
movzx ebx, byte [rsp + 0x30]
nop word [rax + rax]
movsx r9d, byte [rsi + rbp]
cmp rcx, rdx
jae 0x14004231f
lea rax, [rcx + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 7
cmova rax, qword [rsp + 0x38]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x140042332
movzx r8d, bl
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14003b730
inc rbp
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140042340
mov rdx, qword [rsp + 0x50]
cmp rbp, rax
jae 0x14004235a
mov rcx, qword [rsp + 0x48]
jmp 0x1400422f0
lea rcx, [rsp + 0x38]
cmp rdx, 7
cmova rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], r14
mov edx, 0x80000000
mov r9d, 3
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFile2]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140042415
mov qword [rsp + 0x58], r14
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140042415
mov r9, qword [rsp + 0x58]
mov qword [rdi + 0x10], r9
mov qword [rsp + 0x20], r14
xor edx, edx
mov r8d, 2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingFromApp]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14004247a
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400423e8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400423fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r14
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140042411
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
mov qword [rdi + 0x10], r14
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140042455
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042450
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400424a2
call fcn.1400ce56c
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ce1f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileFromApp]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400423e8
mov bl, 1
jmp 0x140042417
call fcn.1400e1a34
int3