Function at 0x180047290
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rbx, r9
mov r14, rdx
mov dword [rbp + 0x50], 1
mov qword [rdx], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov dword [rbp + 0x50], 1
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x180047323
lea rdx, str.Failed_to_open_the_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180053820
lea rdx, [0x1800539f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x180047804
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r12, qword [rbp - 0x18]
mov qword [rsp + 0x50], r12
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x80], rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180050940
nop
lea rdi, [rsp + 0x30]
mov r8, qword [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdi, r8
lea rcx, [rsp + 0x30]
cmova rcx, r8
mov rax, qword [rsp + 0x40]
lea rsi, [rcx + rax*2]
lea rbx, [rsp + 0x30]
cmova rbx, r8
cmp rbx, rsi
je 0x180047399
sub rdi, rbx
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rbx + rdi], ax
add rbx, 2
cmp rbx, rsi
jne 0x180047383
cmp r12, qword [rbp - 0x80]
jae 0x18004779d
nop dword [rax]
nop word [rax + rax]
mov r9d, Ordinal_50
lea r8, [rbp - 0x58]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x18004779d
cmp dword [rbp - 0x38], 0x1000
jne 0x18004778a
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x18004778a
cmp eax, 0x100
je 0x18004778a
mov rdi, qword [rbp - 0x40]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xor eax, eax
mov qword [rbp - 0x68], rax
cmp rdi, 2
jb 0x18004747b
mov rbx, rdi
and rbx, 0xfffffffffffffffe
cmp rbx, 0x1000
jb 0x180047444
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x180047822
call fcn.180125fb8
test rax, rax
je 0x1800477f7
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x180047459
test rbx, rbx
je 0x180047456
mov rcx, rbx
call fcn.180125fb8
mov r15, rax
jmp 0x180047459
xor r15d, r15d
mov qword [rbp - 0x78], r15
lea rsi, [rbx + r15]
mov qword [rbp - 0x68], rsi
mov r8, rbx
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov rbx, rsi
mov qword [rbp - 0x70], rbx
jmp 0x180047483
mov rbx, qword [rbp - 0x70]
mov r15, qword [rbp - 0x78]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, r15
mov rdx, qword [rbp - 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18004774e
mov r8, rbx
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.180053a30
nop
lea rdi, [rsp + 0x58]
mov r13, qword [rsp + 0x70]
cmp r13, 7
seta al
mov r12, qword [rsp + 0x58]
cmova rdi, r12
lea rcx, [rsp + 0x58]
test al, al
mov rax, qword [rsp + 0x68]
je 0x1800474e9
mov rbx, r12
lea rsi, [r12 + rax*2]
jmp 0x1800474f2
lea rsi, [rcx + rax*2]
lea rbx, [rsp + 0x58]
cmp rbx, rsi
je 0x180047525
sub rdi, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rbx + rdi], ax
add rbx, 2
cmp rbx, rsi
jne 0x180047500
mov r13, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov r12, qword [rsp + 0x58]
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r10, qword [rsp + 0x30]
lea rdi, [rsp + 0x58]
cmp r13, 7
cmova rdi, r12
mov r11, qword [rsp + 0x40]
cmp r11, rax
ja 0x180047708
sub rax, r11
test r11, r11
jne 0x180047560
xor ebx, ebx
jmp 0x1800475f0
lea rsi, [rax + 1]
lea rsi, [rdi + rsi*2]
mov rbx, rdi
movzx r9d, word [r10]
nop
mov rax, rsi
sub rax, rbx
sar rax, 1
mov ecx, 0
je 0x18004759c
cmp word [rbx], r9w
je 0x180047599
cmp rax, 1
je 0x18004759c
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x180047586
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x180047708
mov rdx, r11
mov rcx, r10
test r11, r11
je 0x1800475d4
mov r8, rbx
sub r8, r10
nop dword [rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x180047610
add rcx, 2
sub rdx, 1
jne 0x1800475c0
sub rbx, rdi
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x180047708
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbp - 0x58]
lea rcx, [rax + rbx*2]
mov qword [rbp - 0x60], rcx
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x180047619
mov qword [rdx], rcx
add qword [r14 + 8], 8
jmp 0x180047625
add rbx, 2
jmp 0x180047570
lea r8, [rbp - 0x60]
mov rcx, r14
call fcn.180059ee0
inc rbx
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r10, qword [rsp + 0x30]
lea rsi, [rsp + 0x58]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x70]
cmp r13, 7
cmova rsi, r12
mov r11, qword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
cmp r11, rax
ja 0x180047708
sub rax, r11
cmp rbx, rax
ja 0x180047708
test r11, r11
je 0x1800476fe
lea rdi, [rax + 1]
lea rdi, [rsi + rdi*2]
lea rbx, [rsi + rbx*2]
movzx r9d, word [r10]
nop dword [rax + rax]
mov rax, rdi
sub rax, rbx
sar rax, 1
mov ecx, 0
je 0x1800476bc
cmp word [rbx], r9w
je 0x1800476b9
cmp rax, 1
je 0x1800476bc
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x1800476a6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x180047708
mov rdx, r11
mov rcx, r10
test r11, r11
je 0x1800476f8
mov r8, rbx
sub r8, r10
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x1800477e7
add rcx, 2
sub rdx, 1
jne 0x1800476e0
sub rbx, rsi
sar rbx, 1
cmp rbx, 0xffffffffffffffff
jne 0x1800475f0
cmp r13, 7
jbe 0x180047744
lea rdx, [r13*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x18004773c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800477f0
mov rcx, r12
call fcn.18012643c
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x50]
test r15, r15
je 0x18004778a
mov rax, qword [rbp - 0x68]
sub rax, r15
sar rax, 1
lea rdx, [rax + rax]
mov rax, r15
cmp rdx, 0x1000
jb 0x180047782
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800477f7
mov rcx, r15
call fcn.18012643c
add r12, qword [rbp - 0x40]
mov qword [rsp + 0x50], r12
cmp r12, qword [rbp - 0x80]
jb 0x1800473b0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180047804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800477fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800477fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
add rbx, 2
jmp 0x180047690
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.18012643c
nop
mov rax, r14
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180002a10
nop
int3