Function at 0x14018c480
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rdi, [rsp + 0xd0]
mov qword [rdi], rdx
mov rcx, rdi
call fcn.1401dff00
mov rbx, qword [rdi]
mov rax, qword [0x1405216b8]
test rax, rax
je 0x14018c8e5
mov rcx, qword [0x1405216c0]
cmp rcx, rbx
ja 0x14018c959
cmp rax, rbx
jb 0x14018c959
lea r8, [rsp + 0x30]
mov qword [r8], 0
mov rdx, qword [rsp + 0xd0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x14018c929
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14018c535
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14020f940
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14018c920
xor ebx, ebx
mov qword [rsp + 0x28], rbx
call fcn.14020f940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14020f940
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], r12
movaps xmm6, xmmword [0x140470090]
movaps xmmword [rcx], xmm6
call fcn.140210900
lea rdx, [rsp + 0x100]
movaps xmmword [rdx], xmm6
lea r8, [rsp + 0xfc]
mov dword [r8], 0xaaaaaaaa
lea r9, [rsp + 0xf0]
mov qword [r9], rbx
lea rax, [rsp + 0xe8]
mov qword [rax], rbx
lea r10, fcn.1402ea560
lea rcx, [rsp + 0x30]
mov qword [rcx], r10
mov qword [rcx + 8], rdi
mov qword [rsp + 0x20], rax
call fcn.14014aca0
test al, al
je 0x14018c93c
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
mov r8, rbx
call fcn.14010cc50
test al, al
je 0x14018c977
movsx rax, byte [rsp + 0x47]
test rax, rax
cmovs rax, qword [rsp + 0x38]
cmovs rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0xa8]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
lea rbx, [rsp + 0xb8]
mov rcx, rbx
call fcn.140210960
lea r14, [rsp + 0xd0]
mov rcx, rbx
mov rdx, r14
call fcn.140211270
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.140117e00
mov rcx, r14
call fcn.140210aa0
mov rcx, rbx
call fcn.140210aa0
mov qword [r14 + 0x10], r12
movaps xmmword [r14], xmm6
lea rdx, [rsp + 0x100]
mov rcx, r14
call fcn.1400fd2d0
lea rax, [0x1404d98a0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 3
movsx rax, byte [r14 + 0x17]
mov rdx, r14
test rax, rax
jns 0x14018c6bd
mov rax, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x88]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
lea rdx, [rsp + 0x98]
mov r8, r14
call fcn.1400ffbc0
mov edx, dword [rsp + 0xfc]
mov rcx, rbx
call fcn.140100ab0
movsx r8, byte [rsp + 0xcf]
test r8, r8
jns 0x14018c709
mov r8, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rcx, r14
mov rdx, rbx
call fcn.1401f95c0
cmp byte [rsp + 0xcf], 0
js 0x14018c947
lea rbp, [rsp + 0xd0]
movsx rax, byte [rbp + 0x17]
test rax, rax
cmovs rax, qword [rbp + 8]
mov rcx, qword [rbp]
cmovns rcx, rbp
lea rdx, [rsp + 0x78]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
lea r15, [rsp + 0xb8]
mov rcx, r15
call fcn.140204800
mov rbx, qword [r15]
mov r14, qword [r15 + 8]
mov r13, qword [r15 + 0x10]
cmp byte [rbp + 0x17], 0
jns 0x14018c779
mov rcx, qword [rsp + 0xd0]
call fcn.140296608
cmp byte [rsp + 0x47], 0
jns 0x14018c78a
mov rcx, qword [rsp + 0x30]
call fcn.140296608
lea r15, [rsp + 0xd0]
mov qword [r15 + 0x10], r12
movaps xmmword [r15], xmm6
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, rdi
mov r8, r15
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x14018c934
mov ecx, 0x58
call fcn.1402965cc
mov r15, rax
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
call fcn.14020f940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14020f940
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, fcn.14018c9d0
mov qword [r15], rax
mov qword [r15 + 8], 0
call fcn.14020f940
cmp qword [r15 + 8], rdi
je 0x14018c83d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp qword [r15 + 8], 0
jne 0x14018c984
mov qword [r15 + 8], rdi
call fcn.14020f940
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
mov qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r15 + 0x10], xmm0
test r13, r13
jns 0x14018c998
lea rcx, [r15 + 0x28]
mov rdx, rbx
mov r8, r14
call fcn.1401f8280
mov rcx, r15
add rcx, 0x40
lea rdx, [rsp + 0x60]
call fcn.140210920
xor edi, edi
test r13, r13
jns 0x14018c888
mov rcx, rbx
call fcn.140296608
lea rcx, [rsp + 0x60]
call fcn.140210aa0
test rdi, rdi
jne 0x14018c9a9
mov rdi, qword [rsp + 0x28]
mov qword [rsi], r15
test rdi, rdi
jne 0x14018c9bc
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x14018c8c6
call fcn.140297b50
int3
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [0x140470090]
lea rdi, [rsp + 0x30]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov qword [0x1405216b8], rax
mov qword [0x1405216c0], rcx
jmp 0x14018c4dd
mov qword [rsi], 0
jmp 0x14018c8ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14018c516
xor r15d, r15d
jmp 0x14018c87b
xor r14d, r14d
xor r13d, r13d
jmp 0x14018c78a
mov rcx, qword [rsp + 0xb8]
call fcn.140296608
jmp 0x14018c722
lea rdi, [rsp + 0x28]
mov qword [rdi], 0
mov rcx, rdi
xor edx, edx
call fcn.1403e5020
mov rdi, qword [rdi]
jmp 0x14018c535
xor r14d, r14d
xor r13d, r13d
xor ebx, ebx
jmp 0x14018c779
call fcn.14020f940
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14018c82c
mov qword [r15 + 0x28], rbx
mov qword [r15 + 0x30], r14
mov qword [r15 + 0x38], r13
jmp 0x14018c868
call fcn.14020f940
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14018c89b
call fcn.14020f940
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14018c8ac