Function at 0x14004f140
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, r8
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x48], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x48], 1
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14004f6f7
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x68]
mov qword [rsp + 0x50], r14
mov r12, qword [rbp - 0x60]
mov qword [rsp + 0x40], r12
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140055ca0
nop
lea rdi, [rbp - 0x20]
mov r8, qword [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdi, r8
lea rcx, [rbp - 0x20]
cmova rcx, r8
mov rsi, qword [rbp - 0x10]
add rsi, rcx
lea rbx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x14004f22b
sub rdi, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x14004f217
cmp r14, r12
jae 0x14004f6a0
movabs rbx, 0x7fffffffffffffff
nop
mov r9d, 0x30
lea r8, [rsp + 0x60]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14004f6a0
cmp dword [rbp - 0x80], 0x1000
jne 0x14004f68d
mov eax, dword [rbp - 0x7c]
cmp eax, 1
je 0x14004f68d
cmp eax, 0x100
je 0x14004f68d
mov rdi, qword [rsp + 0x78]
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
xor esi, esi
mov qword [rbp + 0x10], rsi
test rdi, rdi
je 0x14004f2ff
cmp rdi, rbx
ja 0x14004f72d
cmp rdi, 0x1000
jb 0x14004f2da
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14004f727
call fcn.1400bc5a4
mov rcx, rax
test rax, rax
je 0x14004f6ea
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004f2e2
mov rcx, rdi
call fcn.1400bc5a4
mov qword [rbp], rax
lea rbx, [rax + rdi]
mov qword [rbp + 0x10], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 8], rbx
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbp]
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14004f64d
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov r14, qword [rbp]
mov rbx, qword [rbp + 8]
cmp r14, rbx
jne 0x14004f35a
mov rcx, rsi
mov qword [rbp - 0x30], rcx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x40], cl
jmp 0x14004f433
sub rbx, r14
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14004f721
cmp rbx, 0xf
ja 0x14004f39b
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x40], 0
jmp 0x14004f42b
mov rdi, rbx
or rdi, 0xf
cmp rdi, rax
jbe 0x14004f3ba
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14004f3e6
cmp rdi, 0x16
mov eax, socket
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
je 0x14004f40d
cmp rcx, 0x1000
jb 0x14004f405
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004f733
mov rcx, rax
call fcn.1400bc5a4
test rax, rax
je 0x14004f6e3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14004f40d
call fcn.1400bc5a4
mov rsi, rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov r14, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
lea rdi, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
mov qword [rsp + 0x30], r8
cmp r14, 0xf
cmova rdi, r8
lea rsi, [rbp - 0x40]
cmova rsi, r8
add rsi, rcx
lea rbx, [rbp - 0x40]
cmp r14, 0xf
cmova rbx, r8
cmp rbx, rsi
je 0x14004f488
sub rdi, rbx
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, rsi
jne 0x14004f467
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x40]
mov qword [rsp + 0x30], r8
lea rsi, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rsi, qword [rbp - 0x20]
lea r14, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r14, r8
mov rdi, qword [rbp - 0x10]
cmp rdi, rcx
ja 0x14004f60d
sub rcx, rdi
test rdi, rdi
jne 0x14004f4bc
xor ebx, ebx
jmp 0x14004f523
lea r15, [r14 + rcx]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, r14
mov edx, r12d
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14004f5fe
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14004f516
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14004f4e2
jmp 0x14004f5fe
sub rbx, r14
cmp rbx, 0xffffffffffffffff
je 0x14004f5fe
mov rcx, qword [rsp + 0x60]
add rcx, rbx
mov qword [rsp + 0x30], rcx
mov rdx, qword [r13 + 8]
cmp rdx, qword [r13 + 0x10]
je 0x14004f544
mov qword [rdx], rcx
add qword [r13 + 8], 8
jmp 0x14004f551
lea r8, [rsp + 0x30]
mov rcx, r13
call fcn.140058820
inc rbx
lea rsi, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rsi, qword [rbp - 0x20]
lea r12, [rbp - 0x40]
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rbp - 0x28], 0xf
cmova r12, rax
mov rdi, qword [rbp - 0x10]
mov rax, qword [rbp - 0x30]
cmp rdi, rax
ja 0x14004f5fe
sub rax, rdi
cmp rbx, rax
ja 0x14004f5fe
test rdi, rdi
je 0x14004f5f4
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14004f5fe
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14004f5f1
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14004f5c0
jmp 0x14004f5fe
sub rbx, r12
cmp rbx, 0xffffffffffffffff
jne 0x14004f523
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x28]
cmp rcx, 0xf
jbe 0x14004f648
lea rdx, [rcx + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x14004f640
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6e3
mov rcx, r8
call fcn.1400bc820
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14004f683
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f67e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6ea
call fcn.1400bc820
movabs rbx, 0x7fffffffffffffff
add r14, qword [rsp + 0x78]
mov qword [rsp + 0x50], r14
cmp r14, r12
jb 0x14004f240
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14004f6f7
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f6f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f6f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400bc820
nop
mov rax, r13
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400bc4a0
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400012a0
nop
call fcn.1400011a0
int3
call fcn.140058800
nop
call fcn.1400011a0
int3