Function at 0x14002b4f4
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 0x14002b539
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 0x14002b581
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 0x14002b670
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 0x14002b61f
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 0x14002b66a
mov r8d, 1
mov ebx, r8d
mov r9d, dword [rsp + 0x108]
add r9, rax
jmp 0x14002b67e
mov ebx, dword [rsp + 0x48]
jmp 0x14002b675
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, r12
test ebx, ebx
je 0x14002b97d
movabs r10, 0xffffffffffffff
cmp r14, rsi
jge 0x14002b990
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 0x14002b6d7
mov ebx, r12d
mov dword [rsp + 0x34], ebx
mov r13d, 0xd
mov dword [rsp + 0x30], r13d
jmp 0x14002b990
cmp dword [0x14007ba38], r12d
jne 0x14002b6fd
test byte [rdx + 7], 0x10
jne 0x14002b6fd
cmp qword [rdx + 8], rdi
jg 0x14002b6fb
mov rax, qword [rdx]
and rax, r10
add rax, qword [rdx + 8]
cmp rax, rdi
jle 0x14002b6fd
jmp 0x14002b690
test byte [rdx + 7], 0xc0
jne 0x14002b6fb
test byte [rdx + 7], r8b
je 0x14002b730
mov rcx, qword [rsp + 0xf0]
call fcn.14002bb34
jmp 0x14002b96d
mov r8d, 1
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
jmp 0x14002b686
mov rcx, qword [rdx + 0x1e]
sub rcx, qword [0x14007b9d0]
jne 0x14002b756
mov rcx, qword [rdx + 0x26]
sub rcx, qword [0x14007b9d8]
jne 0x14002b756
mov ecx, dword [rdx + 0x2e]
mov eax, dword [0x14007b9e0]
sub rcx, rax
mov eax, r12d
test rcx, rcx
cmove eax, r8d
test eax, eax
je 0x14002b774
test byte [rdx + 7], 0x10
jne 0x14002b774
mov rcx, qword [rsp + 0x38]
jmp 0x14002b690
mov rcx, qword [rsp + 0xf0]
call fcn.14002bb34
mov r10, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002b976
test byte [rax + 0xf], 0x10
je 0x14002b865
mov r9d, dword [rax + 0x1c]
mov eax, 1
test al, r9b
je 0x14002b865
mov r8, qword [r10 + 8]
movabs rax, 0xffffffffffffff
and r8, rax
mov rdx, qword [r10 + 0x10]
mov rcx, qword [rsp + 0xf0]
call fcn.14002884c
mov edx, eax
mov dword [rsp + 0x108], eax
test eax, eax
jns 0x14002b7f9
mov r9d, eax
mov r8d, 0x315
lea rcx, str.ResNodesLoad
call fcn.1400064e0
mov edx, dword [rsp + 0x108]
test edx, edx
jns 0x14002b71b
mov ecx, edx
bt edx, 0x1c
jae 0x14002b83e
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x14002b826
mov r13d, dword [rsp + 0x108]
jmp 0x14002b854
mov ecx, dword [rsp + 0x108]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x14002b854
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 0x14002b990
test byte [r10 + 0xf], 2
je 0x14002b956
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 0x14002b8c1
mov r9d, edx
mov r8d, 0x329
lea rcx, str.ResNodesLoad
call fcn.1400064e0
mov edx, dword [rsp + 0x108]
mov r10, qword [rsp + 0x60]
test edx, edx
js 0x14002b801
mov rdx, r10
mov rcx, qword [rsp + 0xf0]
call 0x140008328
test rax, rax
jne 0x14002b942
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 0x14002b919
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
jmp 0x14002b91e
mov edx, 0x80004005
mov dword [rsp + 0x108], edx
mov dword [rsp + 0x44], edx
test edx, edx
jns 0x14002b951
mov r9d, edx
mov r8d, 0x330
lea rcx, str.ResNodesLoad
call fcn.1400064e0
mov edx, dword [rsp + 0x108]
test edx, edx
js 0x14002b801
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.14001e9a8
test rax, rax
jne 0x14002b71b
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 0x14002b9ae
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002b9c4
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14002b9dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0xf0]
test ebx, ebx
je 0x14002ba43
movzx ecx, r12w
test rax, rax
je 0x14002b9fe
cmp dword [rax], 0xfeedf001
jne 0x14002b9fe
movzx ecx, word [rax + 0x58]
cmp cx, di
ja 0x14002ba22
test rax, rax
je 0x14002ba13
cmp dword [rax], 0xfeedf001
jne 0x14002ba13
mov edi, dword [rax + 0x5c]
cmp dword [rsp + 0x40], edi
je 0x14002ba22
mov r13d, 0xd
mov ebx, r12d
test ebx, ebx
je 0x14002ba43
mov rcx, rax
call fcn.14002afbc
mov ebx, eax
test eax, eax
jne 0x14002ba43
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
test r13d, r13d
je 0x14002ba57
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14002b56d