Function at 0x1400140a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140062018]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x140014378
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x140014378
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140014378
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140014378
mov ebx, dword [rdi + 0x28]
shl ebx, 7
mov ebp, ebx
or ebp, 0x7f
mov edx, dword [rdi + 0x24]
cmp ebp, edx
jb 0x1400141e1
cmp edx, dword [rdi + 0x20]
jae 0x140014378
mov eax, dword [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400142b5
mov edx, dword [0x140062d60]
mov ecx, dword [rdi + 0x24]
add rcx, qword [rdi + 0x10]
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140014378
mov eax, dword [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400142f6
mov r8d, dword [0x140062d60]
mov edx, dword [rdi + 0x24]
add rdx, qword [rdi + 0x18]
mov rcx, qword [rdi]
mov dword [rsp + 0x20], 0x20
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x140014378
mov eax, dword [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014337
mov eax, dword [0x140062d60]
add dword [rdi + 0x24], eax
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
mov edx, ebx
add rax, rdx
add rcx, rdx
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rax
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001438f
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001439c
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov al, byte [rsp + 0x5c]
test rdx, rdx
je 0x140014264
test rbp, rbp
je 0x140014264
test ebx, ebx
je 0x140014264
test al, al
je 0x140014264
inc dword [rdi + 0x28]
mov qword [rsi], rcx
mov dword [rsi + 8], ebx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbp
mov ecx, dword [rsp + 0x48]
mov dword [rsi + 0x20], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rsi + 0x24], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsi + 0x28], ecx
mov ecx, dword [rsp + 0x54]
mov dword [rsi + 0x2c], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsi + 0x30], ecx
mov byte [rsi + 0x34], al
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002fae0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140062d64]
call fcn.14002e8cc
cmp dword [0x140062d64], 0xffffffff
jne 0x140014130
lea rbp, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
jmp 0x140014130
lea rcx, [0x140062d64]
call fcn.14002e8cc
cmp dword [0x140062d64], 0xffffffff
jne 0x14001417d
lea rbp, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
jmp 0x14001417d
lea rcx, [0x140062d64]
call fcn.14002e8cc
cmp dword [0x140062d64], 0xffffffff
jne 0x1400141d0
lea rbp, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
jmp 0x1400141d0
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x14001429c
mov dword [rsp + 0x30], 0
jmp 0x14001422f
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov al, byte [rsp + 0x5c]
jmp 0x140014261