Function at 0x140317ec0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, r9
mov qword [rsp + 0x48], r9
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x88], rcx
mov rcx, qword [rsp + 0x1b0]
mov qword [rsp + 0x70], rcx
lea rax, [rdx + 0x10000]
cmp rax, 0x1ffff
ja 0x140317f4d
test rcx, rcx
je 0x140317f34
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rcx
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov rax, qword [r12]
mov r8, r13
lea rdx, str._016llx__Address_appears_to_be_invalid._r_n
mov rcx, r12
call qword [rax + 0x78]
jmp 0x140318322
mov rax, 0xffffffffffffffff
sub rax, rbx
cmp r13, rax
jbe 0x140317f66
mov r13, 0xffffffffffffffff
sub r13, rbx
xor eax, eax
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140317f77
call fcn.1400b4900
mov qword [rsp + 0x50], rax
mov r14, r13
and r14, 0xfffffffffffffff0
mov qword [rsp + 0x80], r14
mov r15, qword [0x140697b98]
test r15, r15
jne 0x140317fb4
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x94]
mov qword [0x140697b98], r15
mov qword [rsp + 0x60], r15
mov rcx, r14
call fcn.1403171c0
mov edi, eax
and dil, 1
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], dil
lea rax, [rbx + r13]
cmp r14, rax
jae 0x140318307
mov rax, rbx
shl rax, 5
cmp qword [rsp + 0x38], rax
jae 0x140318307
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x130], rax
mov word [rsp + 0x138], ax
mov r8, r14
lea rdx, str._016llx_
lea rcx, [rsp + 0xc0]
call fcn.1400b27c0
mov rbx, r14
mov qword [rsp + 0x68], rbx
lea rax, [r14 + 0x10]
cmp rbx, rax
jae 0x140318213
lea rax, [r15 - 1]
test rbx, rax
jne 0x1403180b4
mov r15, qword [0x140697b98]
test r15, r15
jne 0x14031809a
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x94]
mov qword [0x140697b98], r15
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.1403171c0
and al, 1
movzx edi, al
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], al
cmp rbx, r13
jb 0x1403181d8
mov rax, qword [rsp + 0x58]
add rax, r13
cmp rbx, rax
jae 0x1403181d8
cmp rbx, rsi
jne 0x1403180d8
mov sil, 0x3c
jmp 0x1403180ec
lea rax, [rsi + 1]
mov esi, 0x20
cmp rbx, rax
mov eax, 0x3e
cmove esi, eax
mov byte [rsp + 0x30], 0
test dil, dil
je 0x14031819e
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140318190
cmp qword [rsp + 0x40], 1
jne 0x140318190
movzx ecx, byte [rsp + 0x30]
lea eax, [rcx - 0x20]
cmp al, 0x5e
setbe dil
mov r9d, ecx
movsx r8d, sil
mov rcx, rbx
sub rcx, r14
lea rax, [rsp + 0xd2]
add rax, rcx
lea rcx, [rax + rcx*2]
lea rdx, str._c_02x
call fcn.1400b27c0
mov ecx, 0x2e
movzx eax, byte [rsp + 0x30]
test dil, dil
cmovne ecx, eax
mov rax, rbx
sub rax, r14
mov byte [rsp + rax + 0x105], cl
mov rsi, qword [rsp + 0x48]
jmp 0x140318207
movabs rax, 0x3f3f3f3f3f3f3f3f
mov byte [rsp + 0x30], al
movsx r8d, sil
mov rcx, rbx
sub rcx, r14
lea rax, [rsp + 0xd2]
add rax, rcx
lea rcx, [rax + rcx*2]
lea rdx, [0x14055345c]
call fcn.1400b27c0
mov rax, rbx
sub rax, r14
mov byte [rsp + rax + 0x105], 0x3f
mov rsi, qword [rsp + 0x48]
jmp 0x140318207
mov rcx, rbx
sub rcx, r14
lea rax, [rsp + 0xd2]
add rax, rcx
lea rcx, [rax + rcx*2]
lea rdx, [0x14055344c]
call fcn.1400b27c0
mov rax, rbx
sub rax, r14
mov byte [rsp + rax + 0x105], 0x20
inc rbx
mov edi, dword [rsp + 0x34]
jmp 0x140318056
mov eax, dword [0x140553464]
mov word [rsp + 0x102], ax
movzx eax, byte [0x140553466]
mov byte [rsp + 0x104], al
mov eax, dword [str.__r_n]
mov dword [rsp + 0x115], eax
movzx eax, byte [0x14055346c]
mov byte [rsp + 0x119], al
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x1403182a2
test rbx, rbx
jne 0x140318270
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rcx
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x1403182a2
xor ebx, ebx
mov qword [rsp + 0x78], rbx
cmp rbx, qword [rsp + 0x50]
jae 0x14031829d
mov rax, qword [r12]
mov r8d, 1
lea rdx, [0x140473334]
mov rcx, r12
call qword [rax + 0xa0]
inc rbx
jmp 0x140318272
mov rbx, qword [rsp + 0x38]
mov rax, qword [r12]
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
lea rax, [r14 + 0x10]
cmp rax, r14
jae 0x1403182cd
cmp rax, 0x10
jae 0x1403182cd
mov eax, 1
jmp 0x1403182cf
xor eax, eax
test al, al
je 0x1403182e9
mov rax, qword [r12]
xor r8d, r8d
lea rdx, [0x14054afbc]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140318307
add r14, 0x10
mov qword [rsp + 0x80], r14
inc rbx
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x58]
jmp 0x140317fd0
jmp 0x140318322
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1402f2210
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret