Function at 0x140015940
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x14005f018]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx], 0
je 0x140015c0a
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x140015c0a
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140015c0a
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140015c0a
mov ebx, dword [rdi + 0x28]
shl ebx, 7
mov ebp, ebx
or ebp, 0x7f
mov edx, dword [rdi + 0x24]
cmp ebp, edx
jb 0x140015a81
cmp edx, dword [rdi + 0x20]
jae 0x140015c0a
mov eax, dword [0x14005fd2c]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015b47
mov edx, dword [0x14005fd28]
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 0x140015c0a
mov eax, dword [0x14005fd2c]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015b88
mov r8d, dword [0x14005fd28]
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 0x140015c0a
mov eax, dword [0x14005fd2c]
mov ecx, dword [0x14005f488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015bc9
mov eax, dword [0x14005fd28]
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 + 0x38]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rax
mov qword [r9 + 0x18], 0
mov dword [r9 + 0x20], 0x80
mov byte [r9 + 0x24], 1
mov edx, 0x80
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140015c25
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140015c32
mov rdx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x38]
mov cl, byte [rsp + 0x5c]
test rdx, rdx
je 0x140015b04
test rbp, rbp
je 0x140015b04
test ebx, ebx
je 0x140015b04
test cl, cl
je 0x140015b04
inc dword [rdi + 0x28]
mov qword [rsi], rax
mov dword [rsi + 8], ebx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x28], eax
mov byte [rsi + 0x2c], cl
mov byte [rsi + 0x30], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027a90
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14005fd2c]
call fcn.14002687c
cmp dword [0x14005fd2c], 0xffffffff
jne 0x1400159d0
lea rbp, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x14005fd28], eax
lea rcx, [0x14005fd2c]
call fcn.14002681c
jmp 0x1400159d0
lea rcx, [0x14005fd2c]
call fcn.14002687c
cmp dword [0x14005fd2c], 0xffffffff
jne 0x140015a1d
lea rbp, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x14005fd28], eax
lea rcx, [0x14005fd2c]
call fcn.14002681c
jmp 0x140015a1d
lea rcx, [0x14005fd2c]
call fcn.14002687c
cmp dword [0x14005fd2c], 0xffffffff
jne 0x140015a70
lea rbp, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 4]
mov dword [0x14005fd28], eax
lea rcx, [0x14005fd2c]
call fcn.14002681c
jmp 0x140015a70
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x30], 0
jmp 0x140015b2e
mov dword [rsp + 0x38], 0
jmp 0x140015acf
mov ebx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov cl, byte [rsp + 0x5c]
jmp 0x140015b01