Function at 0x140064c80
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov eax, dword [0x14011c660]
mov rbx, r8
mov r11, rdx
mov esi, 0x200
test eax, eax
jne 0x140064cef
lea r8d, [rax + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400e16a0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x44]
mov r11, qword [rsp + 0xc8]
cmp eax, esi
jb 0x140064ce9
dec eax
mov dword [0x14011c660], eax
jmp 0x140064cef
mov eax, dword [0x14011c660]
mov r12, qword [rsp + 0x118]
test eax, eax
mov r9d, 0xffff
cmovne r9d, eax
test r12, r12
sets r15b
test r15b, r15b
je 0x140064d12
neg r12
mov eax, dword [rsp + 0x100]
mov ecx, dword [rsp + 0x108]
mov rdi, qword [rsp + 0xf0]
test eax, eax
mov rbp, rbx
cmovne esi, eax
mov rax, qword [rsp + 0xf8]
test ecx, ecx
je 0x140064d5a
test rax, rax
je 0x140064d45
lea rbp, [rdi + rax]
cmp esi, 1
jle 0x140064d95
mov rax, rdi
movsxd r8, esi
cqo
idiv r8
sub rdi, rdx
jmp 0x140064d7c
test rax, rax
je 0x140064d63
lea rbp, [rdi + rax]
cmp esi, 1
jle 0x140064d95
mov rax, rdi
movsxd r8, esi
cqo
idiv r8
movsxd rax, edx
mov rcx, rdx
sub rdi, rax
movsxd rax, ecx
add rdi, rax
mov rax, rdi
cqo
idiv r8
movsxd rax, edx
mov r14, rdx
sub rdi, rax
jmp 0x140064d98
xor r14d, r14d
cmp rbp, rbx
mov eax, r9d
movsxd r10, r9d
cmovg rbp, rbx
not eax
movsxd rcx, eax
add r10, rbp
movsxd rax, r14d
and r10, rcx
lea r9, [rax + rdi]
mov rdx, rcx
movsxd rcx, dword [rsp + 0xe0]
and rdx, rdi
cmp r10, rbx
cmovg r10, rbx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x110]
mov r13, rbp
xor ebx, ebx
mov qword [rsp + 0x38], rdx
sub r13, rcx
mov qword [rsp + 0xf0], r9
mov r8, rcx
sub r13, r9
mov qword [rsp + 0x118], rcx
test rax, rax
jne 0x140064e41
sub r10, rdx
mov r9, rdx
lea r8d, [rbx + 2]
mov rdx, r10
mov rcx, r11
call fcn.1400cad18
mov r9, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0xe0]
mov r8, qword [rsp + 0x118]
mov rbx, rax
test rax, rax
je 0x140064f16
mov rbp, r9
xor edi, edi
sub rbp, rdx
add rbp, rax
test r15b, r15b
je 0x140064e70
cmp esi, 1
mov rdi, r13
jle 0x140064e6b
movsxd rcx, esi
mov rax, r13
cqo
idiv rcx
mov rdi, rax
imul rdi, rcx
add rbp, rdi
neg esi
or r14, 0xffffffffffffffff
cmp rdi, r13
jg 0x1400651e5
mov r15, qword [rsp + 0xd8]
test rdi, rdi
js 0x1400651e5
mov rdx, r15
mov rcx, rbp
call fcn.140054c74
test eax, eax
jne 0x140064ecc
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140064efd
lea rdx, [rdi + r9]
mov rcx, rax
call fcn.140064968
xor r14d, r14d
test r12, r12
jle 0x140064ec4
sub r12, 1
je 0x140064ee8
mov r9, qword [rsp + 0xf0]
movsxd rax, esi
add rdi, rax
add rbp, rax
cmp rdi, r13
jg 0x1400651e5
mov r8, qword [rsp + 0x118]
jmp 0x140064e85
test rbx, rbx
je 0x140064ef6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
jmp 0x1400651f6
add rdi, r9
test rbx, rbx
je 0x140064f0e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, rdi
jmp 0x1400651f6
lea r13d, [rcx + r14]
mov rcx, rbp
movsxd rax, r13d
mov dword [rsp + 0x108], r13d
sub rcx, rax
mov qword [rsp + 0x38], rcx
test r15b, r15b
je 0x140064f4f
test rbx, rbx
je 0x140064f43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, 0xffffffff80070057
jmp 0x1400651f6
mov rcx, qword [rsp + 0xc8]
xor r8d, r8d
mov rdx, rdi
call fcn.140056048
cmp rdi, rax
je 0x140064f7e
test rbx, rbx
je 0x140064f75
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or rax, 0xffffffffffffffff
jmp 0x1400651f6
mov r14d, r13d
sub rbp, rdi
lea r15d, [r13 + 0x1ff]
shl r14d, 2
movsxd rax, r14d
cmp rax, rbp
mov eax, 0x200000
cmovg r14d, ebp
and r15d, 0xfffffe00
lea r13d, [r14 + 0x1ff]
and r13d, 0xfffffe00
cmp r13d, eax
cmovl r13d, eax
and qword [rsp + 0xf0], 0
lea eax, [r13 + 0x100000]
lea rcx, [rsp + 0xf0]
movsxd rdx, eax
call fcn.14005c770
mov rbp, rax
test rax, rax
je 0x140064ff2
add rbp, 0x100000
and rbp, 0xfffffffffff00000
jne 0x140065016
cmp r13d, r14d
jl 0x1400651d4
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
lea r13d, [rax + 0x1ff]
and r13d, 0xfffffe00
test rbp, rbp
je 0x140064fc3
cmp r13d, r15d
mov qword [rsp + 0x30], rbp
jl 0x1400651d4
xor ecx, ecx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x100], 0x3e8
mov rax, qword [rsp + 0x38]
cmp rdi, rax
jg 0x1400651d4
mov rcx, rax
mov r15d, r13d
sub rcx, rdi
sub r15d, r14d
add rcx, 0x1ff
movsxd rax, r15d
and rcx, 0xfffffffffffffe00
cmp rcx, rax
cmovg rcx, rax
test rcx, rcx
jle 0x1400651d4
and dword [rsp + 0xe0], 0
and qword [rsp + 0x20], 0
mov r8d, ecx
mov rcx, qword [rsp + 0xc8]
movsxd rdx, r14d
lea r9, [rsp + 0xe0]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400650b1
mov eax, dword [rsp + 0xe0]
test eax, eax
jg 0x1400650cb
mov eax, dword [rsp + 0x100]
dec eax
mov dword [rsp + 0x100], eax
test eax, eax
jle 0x1400651d4
xor eax, eax
mov edx, dword [rsp + 0x108]
cmp eax, r15d
cmovg eax, r15d
add eax, r14d
cmp eax, edx
mov dword [rsp + 0xe0], eax
mov r14d, eax
jl 0x14006503a
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0xd0]
xor ebp, ebp
lea rcx, [r9 + rax]
mov eax, r14d
sub eax, edx
mov qword [rsp + 0x110], rcx
add eax, esi
cdq
idiv esi
mov r15d, eax
test eax, eax
jle 0x14006517f
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0xd8]
call fcn.140054c74
test eax, eax
jne 0x14006515f
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x1400651bf
lea rdx, [r9 + rdi]
mov rcx, rax
call fcn.140064968
test r12, r12
jle 0x140065157
sub r12, 1
je 0x1400651ad
mov r9, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x110]
movsxd rax, esi
inc ebp
add rcx, rax
add rdi, rax
cmp ebp, r15d
mov qword [rsp + 0x110], rcx
jl 0x14006511a
mov rax, qword [rsp + 0x30]
imul r15d, esi
sub r14d, r15d
mov rbp, rax
test r14d, r14d
jle 0x14006503a
movsxd rdx, r15d
movsxd r8, r14d
mov rcx, rax
add rdx, rax
call fcn.14001bd38
jmp 0x14006503a
lea rcx, [rsp + 0xf0]
call fcn.140054c44
jmp 0x140064ee8
lea rcx, [rsp + 0xf0]
add rdi, r9
call fcn.140054c44
jmp 0x140064f00
lea rcx, [rsp + 0xf0]
call fcn.140054c44
or r14, 0xffffffffffffffff
test rbx, rbx
je 0x1400651f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, r14
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret