Function at 0x1402258f0
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r13d, r13d
mov r12, rdx
mov r15, rcx
mov ebx, r13d
mov rcx, r12
mov r14d, r13d
lea edx, [r13 + 0x40]
call fcn.140226390
test eax, eax
je 0x140225933
mov eax, 0x5a4d
cmp word [r15], ax
je 0x140225943
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
movsxd rdx, dword [r15 + 0x3c]
mov rcx, r12
add rdx, 0x108
call fcn.140226390
test eax, eax
je 0x140225933
mov qword [rsp + 0x90], rbp
movsxd rbp, dword [r15 + 0x3c]
add rbp, r15
cmp dword [rbp], 0x4550
jne 0x140225985
mov eax, 0x8664
cmp word [rbp + 4], ax
jne 0x140225985
mov ecx, dword [rbp + 0x38]
test cl, 1
je 0x140225997
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140225c95
movzx eax, word [rbp + 0x14]
lea rdx, [rbp + 0x24]
add rdx, rax
mov qword [rsp + 0xa0], rdi
movzx eax, word [rbp + 6]
mov r9, rcx
test eax, eax
je 0x1402259db
mov r8d, eax
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x1402259c6
mov eax, dword [rdx]
add rax, r9
jmp 0x1402259ca
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
sub r8, 1
jne 0x1402259b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x34]
mov eax, dword [rbp + 0x50]
lea rdi, [rdx - 1]
add rdi, rax
lea rcx, [rdx - 1]
add rcx, rbx
lea rax, [rdx - 1]
not rax
and rdi, rax
lea rax, [rdx - 1]
not rax
and rcx, rax
cmp rdi, rcx
je 0x140225a26
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140225c8d
mov rcx, qword [rbp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x98], rsi
mov rdx, rdi
mov qword [rsp + 0x20], r13
call fcn.140225d10
mov rsi, rax
test rax, rax
jne 0x140225a78
lea r9d, [rax + 4]
mov qword [rsp + 0x20], r13
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call fcn.140225d10
mov rsi, rax
test rax, rax
je 0x140225bf9
movabs r13, 0xffffffff00000000
lea rcx, [rsi + rdi]
mov rax, rsi
and rcx, r13
and rax, r13
cmp rax, rcx
jae 0x140225aee
mov ecx, 0x10
call fcn.140205328
mov rbx, rax
test rax, rax
je 0x140225c09
mov qword [rax], r14
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], rsi
mov rdx, rdi
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov r14, rax
call fcn.140225d10
mov rsi, rax
test rax, rax
je 0x140225be7
lea rcx, [rax + rdi]
and rax, r13
and rcx, r13
cmp rax, rcx
jb 0x140225a94
call fcn.14000c5a0
mov rcx, rax
mov r8d, 0x78
call fcn.14000c510
mov rdi, rax
test rax, rax
je 0x140225c09
mov qword [rax + 8], rsi
xor r13d, r13d
movzx eax, word [rbp + 0x16]
mov rcx, r12
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], r13
mov dword [rdi + 0x20], eax
lea rax, [fcn.140225d10]
mov qword [rdi + 0x28], rax
lea rax, [sub.KERNEL32.dll_VirtualFree]
mov qword [rdi + 0x30], rax
lea rax, [0x140225cf0]
mov qword [rdi + 0x38], rax
lea rax, [0x140225ce0]
mov qword [rdi + 0x40], rax
lea rax, [0x140225cd0]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], r14
mov edx, dword [rbp + 0x54]
call fcn.140226390
test eax, eax
je 0x140225c7b
mov edx, dword [rbp + 0x54]
lea r9d, [r13 + 4]
mov r8d, 0x1000
mov qword [rsp + 0x20], r13
mov rcx, rsi
call fcn.140225d10
mov r8d, dword [rbp + 0x54]
mov rdx, r15
mov rcx, rax
mov rbx, rax
call fcn.1401ff6c0
movsxd rax, dword [r15 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov qword [rdi], rax
mov rdx, r12
mov rcx, r15
mov qword [rax + 0x30], rsi
call fcn.140226260
test eax, eax
je 0x140225c7b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x140225c21
mov rcx, rdi
call fcn.140225ea0
mov dword [rdi + 0x24], eax
jmp 0x140225c28
mov rcx, rbx
lea rdx, [sub.KERNEL32.dll_VirtualFree]
xor r8d, r8d
call fcn.1402263c0
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140225c83
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call sub.KERNEL32.dll_VirtualFree
mov rcx, r14
jmp 0x140225bea
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.140225d20
test eax, eax
je 0x140225c7b
mov rcx, rdi
call fcn.140225fc0
test eax, eax
je 0x140225c7b
mov rcx, rdi
call fcn.140225f60
test eax, eax
je 0x140225c7b
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140225cc0
lea rax, [rsi + rcx]
cmp dword [rdi + 0x20], r13d
je 0x140225cb7
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140225cab
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.140226650
xor eax, eax
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x140225c85
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x140225c85
mov qword [rdi + 0x60], r13
mov rax, rdi
jmp 0x140225c85