Function at 0x140272d70
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 [0x1404f4fb8]
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 0x140272dfd
test rcx, rcx
je 0x140272de4
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 0x1402731d2
mov rax, 0xffffffffffffffff
sub rax, rbx
cmp r13, rax
jbe 0x140272e16
mov r13, 0xffffffffffffffff
sub r13, rbx
xor eax, eax
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140272e27
call fcn.14026cc90
mov qword [rsp + 0x50], rax
mov r14, r13
and r14, 0xfffffffffffffff0
mov qword [rsp + 0x80], r14
mov r15, qword [0x14051e8b8]
test r15, r15
jne 0x140272e64
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x94]
mov qword [0x14051e8b8], r15
mov qword [rsp + 0x60], r15
mov rcx, r14
call fcn.140272070
mov edi, eax
and dil, 1
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], dil
lea rax, [rbx + r13]
cmp r14, rax
jae 0x1402731b7
mov rax, rbx
shl rax, 5
cmp qword [rsp + 0x38], rax
jae 0x1402731b7
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.14026ab50
mov rbx, r14
mov qword [rsp + 0x68], rbx
lea rax, [r14 + 0x10]
cmp rbx, rax
jae 0x1402730c3
lea rax, [r15 - 1]
test rbx, rax
jne 0x140272f64
mov r15, qword [0x14051e8b8]
test r15, r15
jne 0x140272f4a
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x94]
mov qword [0x14051e8b8], r15
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.140272070
and al, 1
movzx edi, al
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], al
cmp rbx, r13
jb 0x140273088
mov rax, qword [rsp + 0x58]
add rax, r13
cmp rbx, rax
jae 0x140273088
cmp rbx, rsi
jne 0x140272f88
mov sil, 0x3c
jmp 0x140272f9c
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 0x14027304e
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 0x140273040
cmp qword [rsp + 0x40], 1
jne 0x140273040
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.14026ab50
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 0x1402730b7
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, str._c__
call fcn.14026ab50
mov rax, rbx
sub rax, r14
mov byte [rsp + rax + 0x105], 0x3f
mov rsi, qword [rsp + 0x48]
jmp 0x1402730b7
mov rcx, rbx
sub rcx, r14
lea rax, [rsp + 0xd2]
add rax, rcx
lea rcx, [rax + rcx*2]
lea rdx, [0x14043a8fc]
call fcn.14026ab50
mov rax, rbx
sub rax, r14
mov byte [rsp + rax + 0x105], 0x20
inc rbx
mov edi, dword [rsp + 0x34]
jmp 0x140272f06
mov eax, dword [0x14043a914]
mov word [rsp + 0x102], ax
movzx eax, byte [0x14043a916]
mov byte [rsp + 0x104], al
mov eax, dword [str.__r_n]
mov dword [rsp + 0x115], eax
movzx eax, byte [0x14043a91c]
mov byte [rsp + 0x119], al
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x140273152
test rbx, rbx
jne 0x140273120
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rcx
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x140273152
xor ebx, ebx
mov qword [rsp + 0x78], rbx
cmp rbx, qword [rsp + 0x50]
jae 0x14027314d
mov rax, qword [r12]
mov r8d, 1
lea rdx, [0x140374164]
mov rcx, r12
call qword [rax + 0xa0]
inc rbx
jmp 0x140273122
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 0x14027317d
cmp rax, 0x10
jae 0x14027317d
mov eax, 1
jmp 0x14027317f
xor eax, eax
test al, al
je 0x140273199
mov rax, qword [r12]
xor r8d, r8d
lea rdx, [0x140430b04]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x1402731b7
add r14, 0x10
mov qword [rsp + 0x80], r14
inc rbx
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x58]
jmp 0x140272e80
jmp 0x1402731d2
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret