Function at 0x1800025c0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x68
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov qword [rsp + 0x20], rdx
mov r13, rcx
mov ebx, r12d
mov edi, r12d
cmp rdx, 0x40
jb 0x180002608
mov eax, dword [rcx + 0x3c]
add eax, 0xe0
movsxd rcx, eax
add rcx, 0x108
cmp rdx, rcx
jae 0x18000261a
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800028c2
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x60], r15
movsxd r15, dword [r13 + 0x3c]
add r15, 0xe0
add r15, r13
cmp dword [r15], 0x100c
jne 0x180002cb2
mov eax, 0x8664
cmp word [r15 + 4], ax
jne 0x180002cb2
mov eax, dword [r15 + 0x38]
test al, 1
jne 0x180002cb2
movzx ecx, word [r15 + 0x14]
mov r9d, eax
movzx eax, word [r15 + 6]
add rcx, 0x24
cmp r12w, ax
jae 0x1800026a5
add rcx, r15
mov r8d, eax
nop dword [rax + rax]
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x18000268f
lea rax, [r9 + rdx]
jmp 0x180002691
add eax, edx
cmp rax, rbx
cmovbe rax, rbx
add rcx, 0x28
mov rbx, rax
sub r8, 1
jne 0x180002680
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x2c]
mov eax, dword [r15 + 0x50]
lea rbp, [rdx - 1]
add rbp, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rbx
and rbp, rcx
and rax, rcx
cmp rbp, rax
jne 0x180002cb2
mov rax, qword [0x180006698]
mov rbx, qword [r15 + 0x30]
mov qword [rsp + 0xa8], r14
test rax, rax
jne 0x18000270e
mov rcx, qword [0x180006680]
lea rdx, [0x180004328]
call fcn.180001b10
mov qword [0x180006698], rax
mov r9d, 4
mov qword [rsp + 0xa0], rsi
mov r8d, 0x3000
mov rdx, rbp
mov rcx, rbx
call rax
mov r14, rax
test rax, rax
jne 0x180002777
mov rax, qword [0x180006698]
test rax, rax
jne 0x180002758
mov rcx, qword [0x180006680]
lea rdx, [0x180004328]
call fcn.180001b10
mov qword [0x180006698], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call rax
mov r14, rax
test rax, rax
je 0x180002898
movabs rbx, 0xffffffff00000000
lea rcx, [r14 + rbp]
mov rax, r14
and rcx, rbx
and rax, rbx
cmp rax, rcx
jae 0x180002808
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18000290a
mov qword [rax], rdi
mov rdi, rax
mov qword [rax + 8], r14
mov rax, qword [0x180006698]
test rax, rax
jne 0x1800027da
mov rcx, qword [0x180006680]
lea rdx, [0x180004328]
call fcn.180001b10
mov qword [0x180006698], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call rax
mov r14, rax
test rax, rax
je 0x1800028e0
lea rcx, [rax + rbp]
and rax, rbx
and rcx, rbx
cmp rax, rcx
jb 0x180002793
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x18000297d
mov rax, qword [0x180006690]
test rax, rax
jne 0x180002852
mov rcx, qword [0x180006680]
lea rdx, [0x180004338]
call fcn.180001b10
mov qword [0x180006690], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call rax
test rdi, rdi
je 0x180002898
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call fcn.1800024c0
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x180002870
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x98]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002eb0
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rsi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call fcn.1800024c0
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rbx
test rbx, rbx
jne 0x1800028e0
jmp 0x180002898
mov rax, qword [0x180006690]
test rax, rax
jne 0x180002930
mov rcx, qword [0x180006680]
lea rdx, [0x180004338]
call fcn.180001b10
mov qword [0x180006690], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call rax
test rdi, rdi
je 0x180002898
nop word [rax + rax]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000
call fcn.1800024c0
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x180002950
jmp 0x180002898
mov qword [rax + 8], r14
movzx eax, word [r15 + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rsi + 0x58], r12
mov dword [rsi + 0x20], eax
lea rax, [0x1800023f0]
mov qword [rsi + 0x28], rax
lea rax, [fcn.1800024c0]
mov qword [rsi + 0x30], rax
lea rax, [0x180002590]
mov qword [rsi + 0x38], rax
lea rax, [0x1800025a0]
mov qword [rsi + 0x40], rax
lea rax, [0x1800025b0]
mov qword [rsi + 0x48], rax
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 0x70], rdi
mov rdi, qword [rsp + 0x20]
mov dword [rsi + 0x68], eax
mov eax, dword [r15 + 0x54]
cmp rdi, rax
jae 0x180002acf
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsi + 0x1c], r12d
je 0x180002a0e
mov rax, qword [rsi]
xor r8d, r8d
mov rcx, qword [rsi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x180002a5a
cmp dword [rsi + 0x18], r12d
jle 0x180002a54
mov rbx, r12
nop word [rax + rax]
mov rax, qword [rbx + rcx]
test rax, rax
je 0x180002a47
mov rdx, qword [rsi + 0x58]
mov rcx, rax
call qword [rsi + 0x48]
mov rcx, qword [rsi + 0x10]
inc r12d
add rbx, 8
cmp r12d, dword [rsi + 0x18]
jl 0x180002a30
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180002a72
mov r9, qword [rsi + 0x58]
xor edx, edx
mov r8d, 0x8000
call qword [rsi + 0x30]
mov rdi, qword [rsi + 0x70]
mov rbp, qword [rsi + 0x58]
mov r14, qword [rsi + 0x30]
test rdi, rdi
je 0x180002ab6
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 8]
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
call r14
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x180002a90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800028a3
mov rax, qword [0x180006698]
mov ebx, dword [r15 + 0x54]
test rax, rax
jne 0x180002af9
mov rcx, qword [0x180006680]
lea rdx, [0x180004328]
call fcn.180001b10
mov qword [0x180006698], rax
mov r9d, 4
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r14
call rax
mov r8d, dword [r15 + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
movsxd rax, dword [r13 + 0x3c]
mov r9, rsi
add rax, 0xe0
mov r8, r15
add rax, rbx
mov rdx, rdi
mov qword [rsi], rax
mov rcx, r13
mov qword [rax + 0x30], r14
call fcn.180001da0
test eax, eax
je 0x1800029f2
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
sub rbx, qword [r15 + 0x30]
je 0x180002bf9
cmp dword [rax + 0xb4], r12d
jne 0x180002b6e
mov eax, r12d
jmp 0x180002bfe
mov r11d, dword [rax + 0xb0]
mov rdi, qword [rsi + 8]
add r11, rdi
mov eax, dword [r11]
test eax, eax
je 0x180002bf9
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r11 + 4]
lea rdx, [r11 + 8]
mov r10d, eax
mov r8d, r12d
add r10, rdi
lea rax, [r9 - 8]
test rax, 0xfffffffffffffffe
jbe 0x180002bec
nop dword [rax]
movzx eax, word [rdx]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x180002bce
cmp eax, 0xa
jne 0x180002bd2
add qword [rcx + r10], rbx
jmp 0x180002bd2
add dword [rcx + r10], ebx
mov r9d, dword [r11 + 4]
inc r8d
add rdx, 2
mov eax, r8d
lea rcx, [r9 - 8]
shr rcx, 1
cmp rax, rcx
jb 0x180002bb0
mov eax, r9d
add r11, rax
mov eax, dword [r11]
test eax, eax
jne 0x180002b90
mov eax, 1
mov rcx, rsi
mov dword [rsi + 0x24], eax
call fcn.180002240
test eax, eax
je 0x1800029f2
mov rcx, rsi
call fcn.180002090
test eax, eax
je 0x1800029f2
mov rax, qword [rsi]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x180002c5d
mov rdi, qword [rsi + 8]
mov rbx, qword [rcx + rdi + 0x18]
test rbx, rbx
je 0x180002c5d
mov rax, qword [rbx]
test rax, rax
je 0x180002c5d
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x180002c44
mov rax, qword [rsi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x180002ca6
lea rax, [r14 + rcx]
cmp dword [rsi + 0x20], r12d
je 0x180002c9a
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x180002c8b
mov ecx, 0x45a
jmp 0x1800029ec
mov dword [rsi + 0x1c], 1
mov rax, rsi
jmp 0x1800028a5
mov qword [rsi + 0x60], rax
mov rax, rsi
jmp 0x1800028a5
mov qword [rsi + 0x60], r12
mov rax, rsi
jmp 0x1800028a5
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800028b5