Function at 0x140064d84
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rsi, r9
mov rdi, r8
mov r8, rdx
xor r12d, r12d
mov ebx, r12d
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x68], r12
test rcx, rcx
je 0x140064dc9
mov rax, qword [rcx + 0x1d0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], r12
mov r13d, r12d
mov dword [rsp + 0x40], r12d
mov r14, r12
mov qword [rsp + 0x50], r12
mov r15, rsi
lea rdx, [rsp + 0x50]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test rsi, rsi
jne 0x140064e11
lea eax, [rsi + 1]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x28], r12
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140064f00
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
mov dword [rsp + 0x108], r12d
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov ecx, dword [rsp + 0xa0]
mov rax, rdi
cqo
idiv rcx
test rdx, rdx
je 0x140064eaf
xor edx, edx
mov eax, edi
div dword [rsp + 0xa0]
mov eax, edx
mov dword [rsp + 0x108], eax
sub rbx, rax
lea r15, [rdx + rsi]
mov eax, r15d
mov r8, rbx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140064efa
mov r8d, 1
mov ebx, r8d
mov r9d, dword [rsp + 0x108]
add r9, rax
jmp 0x140064f0e
mov ebx, dword [rsp + 0x48]
jmp 0x140064f05
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, r12
test ebx, ebx
je 0x14006520d
movabs r10, 0xffffffffffffff
cmp r14, rsi
jge 0x140065220
mov rdx, r9
add r14, 0x32
mov qword [rsp + 0x70], r14
add r9, 0x32
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x108], r9
mov eax, r9d
sub eax, ecx
cmp eax, r15d
jbe 0x140064f67
mov ebx, r12d
mov dword [rsp + 0x34], ebx
mov r13d, 0xd
mov dword [rsp + 0x30], r13d
jmp 0x140065220
cmp dword [0x1400c99e8], r12d
jne 0x140064f8d
test byte [rdx + 7], 0x10
jne 0x140064f8d
cmp qword [rdx + 8], rdi
jg 0x140064f8b
mov rax, qword [rdx]
and rax, r10
add rax, qword [rdx + 8]
cmp rax, rdi
jle 0x140064f8d
jmp 0x140064f20
test byte [rdx + 7], 0xc0
jne 0x140064f8b
test byte [rdx + 7], r8b
je 0x140064fc0
mov rcx, qword [rsp + 0xf0]
call fcn.1400653c4
jmp 0x1400651fd
mov r8d, 1
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
jmp 0x140064f16
mov rcx, qword [rdx + 0x1e]
sub rcx, qword [0x1400c9a18]
jne 0x140064fe6
mov rcx, qword [rdx + 0x26]
sub rcx, qword [0x1400c9a20]
jne 0x140064fe6
mov ecx, dword [rdx + 0x2e]
mov eax, dword [0x1400c9a28]
sub rcx, rax
mov eax, r12d
test rcx, rcx
cmove eax, r8d
test eax, eax
je 0x140065004
test byte [rdx + 7], 0x10
jne 0x140065004
mov rcx, qword [rsp + 0x38]
jmp 0x140064f20
mov rcx, qword [rsp + 0xf0]
call fcn.1400653c4
mov r10, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140065206
test byte [rax + 0xf], 0x10
je 0x1400650f5
mov r9d, dword [rax + 0x1c]
mov eax, 1
test al, r9b
je 0x1400650f5
mov r8, qword [r10 + 8]
movabs rax, 0xffffffffffffff
and r8, rax
mov rdx, qword [r10 + 0x10]
mov rcx, qword [rsp + 0xf0]
call fcn.1400634ec
mov edx, eax
mov dword [rsp + 0x108], eax
test eax, eax
jns 0x140065089
mov r9d, eax
mov r8d, 0x315
lea rcx, str.ResNodesLoad
call fcn.140066474
mov edx, dword [rsp + 0x108]
test edx, edx
jns 0x140064fab
mov ecx, edx
bt edx, 0x1c
jae 0x1400650ce
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x1400650b6
mov r13d, dword [rsp + 0x108]
jmp 0x1400650e4
mov ecx, dword [rsp + 0x108]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400650e4
and ecx, 0x1fff0000
movzx eax, dx
mov r13d, edx
cmp ecx, 0x70000
cmove r13d, eax
mov dword [rsp + 0x30], r13d
mov ebx, r12d
mov dword [rsp + 0x34], ebx
jmp 0x140065220
test byte [r10 + 0xf], 2
je 0x1400651e6
mov dword [rsp + 0x44], r12d
mov ecx, dword [r10 + 0x24]
add ecx, dword [rsp + 0x40]
or eax, 0xffffffff
cmp ecx, dword [rsp + 0x40]
cmovae eax, ecx
mov dword [rsp + 0x40], eax
sbb edx, edx
and edx, 0x80070216
mov dword [rsp + 0x108], edx
mov dword [rsp + 0x44], edx
jge 0x140065151
mov r9d, edx
mov r8d, 0x329
lea rcx, str.ResNodesLoad
call fcn.140066474
mov edx, dword [rsp + 0x108]
mov r10, qword [rsp + 0x60]
test edx, edx
js 0x140065091
mov rdx, r10
mov rcx, qword [rsp + 0xf0]
call fcn.140059e70
test rax, rax
jne 0x1400651d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x1400651a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
jmp 0x1400651ae
mov edx, 0x80004005
mov dword [rsp + 0x108], edx
mov dword [rsp + 0x44], edx
test edx, edx
jns 0x1400651e1
mov r9d, edx
mov r8d, 0x330
lea rcx, str.ResNodesLoad
call fcn.140066474
mov edx, dword [rsp + 0x108]
test edx, edx
js 0x140065091
mov r10, qword [rsp + 0x60]
lea rdx, [r10 + 0x28]
mov r9, r10
mov r8d, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rsp + 0x68]
call fcn.14005c734
test rax, rax
jne 0x140064fab
mov ebx, r12d
mov dword [rsp + 0x34], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
mov r13d, eax
mov edi, 1
jmp 0x14006523e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140065254
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14006526d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0xf0]
test ebx, ebx
je 0x1400652d3
movzx ecx, r12w
test rax, rax
je 0x14006528e
cmp dword [rax], 0xfeedf001
jne 0x14006528e
movzx ecx, word [rax + 0x58]
cmp cx, di
ja 0x1400652b2
test rax, rax
je 0x1400652a3
cmp dword [rax], 0xfeedf001
jne 0x1400652a3
mov edi, dword [rax + 0x5c]
cmp dword [rsp + 0x40], edi
je 0x1400652b2
mov r13d, 0xd
mov ebx, r12d
test ebx, ebx
je 0x1400652d3
mov rcx, rax
call fcn.140064840
mov ebx, eax
test eax, eax
jne 0x1400652d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
test r13d, r13d
je 0x1400652e7
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140064dfd