Function at 0x140019170
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 + 0x70], r12
test rcx, rcx
je 0x1400191b5
mov rax, qword [rcx + 0x1d0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], r12
mov r13d, r12d
mov dword [rsp + 0x40], r12d
mov r14, r12
mov qword [rsp + 0x58], r12
mov r15, rsi
lea rdx, [rsp + 0x58]
mov rcx, r8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test rsi, rsi
jne 0x1400191fc
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 + 0x58]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x5c]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400192e9
mov rbx, rdi
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x108], r12d
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov ecx, dword [rsp + 0xa8]
mov rax, rdi
cqo
idiv rcx
test rdx, rdx
je 0x140019298
xor edx, edx
mov eax, edi
div dword [rsp + 0xa8]
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 + 0x60]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400192e3
mov r8d, 1
mov ebx, r8d
mov r9d, dword [rsp + 0x108]
add r9, rax
jmp 0x1400192f7
mov ebx, dword [rsp + 0x48]
jmp 0x1400192ee
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, r12
test ebx, ebx
je 0x140019616
movabs r10, 0xffffffffffffff
cmp r14, rsi
jge 0x140019629
mov rdx, r9
add r14, 0x32
mov qword [rsp + 0x68], r14
add r9, 0x32
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x78], r9
mov eax, r9d
sub eax, ecx
cmp eax, r15d
jbe 0x14001934d
mov ebx, r12d
mov dword [rsp + 0x34], ebx
mov r13d, 0xd
mov dword [rsp + 0x30], r13d
jmp 0x140019629
cmp dword [0x14006c880], r12d
jne 0x140019373
test byte [rdx + 7], 0x10
jne 0x140019373
cmp qword [rdx + 8], rdi
jg 0x140019371
mov rax, qword [rdx]
and rax, r10
add rax, qword [rdx + 8]
cmp rax, rdi
jle 0x140019373
jmp 0x140019309
mov r9b, byte [rdx + 7]
test r9b, 0xc0
je 0x140019384
mov r9, qword [rsp + 0x48]
jmp 0x140019309
test r8b, r9b
je 0x1400193b0
mov rcx, qword [rsp + 0xf0]
call fcn.1400197d4
jmp 0x140019606
mov r8d, 1
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
jmp 0x1400192ff
and r9b, 0x10
je 0x1400193be
mov rax, qword [rdx]
and rax, r10
jmp 0x1400193c2
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x108], rax
mov rcx, qword [rdx + 0x1e]
sub rcx, qword [0x14006c8d0]
jne 0x1400193f0
mov rcx, qword [rdx + 0x26]
sub rcx, qword [0x14006c8d8]
jne 0x1400193f0
mov ecx, dword [rdx + 0x2e]
mov eax, dword [0x14006c8e0]
sub rcx, rax
mov eax, r12d
test rcx, rcx
cmove eax, r8d
test eax, eax
je 0x14001940d
test r9b, r9b
jne 0x14001940d
mov rcx, qword [rsp + 0x38]
jmp 0x14001937d
mov rcx, qword [rsp + 0xf0]
call fcn.1400197d4
mov r10, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14001960f
test byte [rax + 0xf], 0x10
je 0x1400194fe
mov r9d, dword [rax + 0x1c]
mov eax, 1
test al, r9b
je 0x1400194fe
mov r8, qword [r10 + 8]
movabs rax, 0xffffffffffffff
and r8, rax
mov rdx, qword [r10 + 0x10]
mov rcx, qword [rsp + 0xf0]
call fcn.14001783c
mov edx, eax
mov dword [rsp + 0x108], eax
test eax, eax
jns 0x140019492
mov r9d, eax
mov r8d, 0x316
lea rcx, str.ResNodesLoad
call fcn.14001b2f8
mov edx, dword [rsp + 0x108]
test edx, edx
jns 0x14001939b
mov ecx, edx
bt edx, 0x1c
jae 0x1400194d7
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x1400194bf
mov r13d, dword [rsp + 0x108]
jmp 0x1400194ed
mov ecx, dword [rsp + 0x108]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r13d, eax
jmp 0x1400194ed
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 0x140019629
test byte [r10 + 0xf], 2
je 0x1400195ef
mov dword [rsp + 0x50], 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 + 0x50], edx
jge 0x14001955a
mov r9d, edx
mov r8d, 0x32a
lea rcx, str.ResNodesLoad
call fcn.14001b2f8
mov edx, dword [rsp + 0x108]
mov r10, qword [rsp + 0x68]
test edx, edx
js 0x14001949a
mov rdx, r10
mov rcx, qword [rsp + 0xf0]
call 0x14000a760
test rax, rax
jne 0x1400195db
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.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 0x1400195b2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
jmp 0x1400195b7
mov edx, 0x80004005
mov dword [rsp + 0x108], edx
mov dword [rsp + 0x50], edx
test edx, edx
jns 0x1400195ea
mov r9d, edx
mov r8d, 0x331
lea rcx, str.ResNodesLoad
call fcn.14001b2f8
mov edx, dword [rsp + 0x108]
test edx, edx
js 0x14001949a
mov r10, qword [rsp + 0x68]
lea rdx, [r10 + 0x28]
mov r9, r10
mov r8d, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rsp + 0x70]
call fcn.14000f630
test rax, rax
jne 0x14001939b
mov ebx, r12d
mov dword [rsp + 0x34], ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
mov r13d, eax
mov edi, 1
jmp 0x140019647
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001965d
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140019676
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0xf0]
test ebx, ebx
je 0x1400196dc
movzx ecx, r12w
test rax, rax
je 0x140019697
cmp dword [rax], 0xfeedf001
jne 0x140019697
movzx ecx, word [rax + 0x58]
cmp cx, di
ja 0x1400196bb
test rax, rax
je 0x1400196ac
cmp dword [rax], 0xfeedf001
jne 0x1400196ac
mov edi, dword [rax + 0x5c]
cmp dword [rsp + 0x40], edi
je 0x1400196bb
mov r13d, 0xd
mov ebx, r12d
test ebx, ebx
je 0x1400196dc
mov rcx, rax
call fcn.140018c04
mov ebx, eax
test eax, eax
jne 0x1400196dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
test r13d, r13d
je 0x1400196f0
mov ecx, r13d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400191e9