Function at 0x1401ec450
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 [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov qword [rsp + 0xd0], rdx
lea rcx, [rsp + 0xd0]
call sym.nacl64.exe__ovly_debug_event
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x1403eca78]
test rax, rax
je 0x1401ec4ba
mov rcx, qword [0x1403eca80]
cmp rcx, rdi
jbe 0x1401ec4fc
jmp 0x1401ec8df
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [0x1403eca78], rax
mov qword [0x1403eca80], rcx
cmp rcx, rdi
ja 0x1401ec8df
cmp rax, rdi
jb 0x1401ec8df
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0xd0]
lea r8, [rsp + 0x30]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1401ec530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1401ec8df
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov ebx, eax
call fcn.14011dc90
mov r14, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call r14
call fcn.14011dc90
call r13
mov ebx, eax
call fcn.14011dc90
mov ecx, ebx
call r14
movabs rbp, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rbp
movaps xmm6, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x60]
call fcn.1400f3d70
movaps xmmword [rsp + 0x100], xmm6
mov dword [rsp + 0xfc], 0xaaaaaaaa
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xe8], 0
lea rax, fcn.14004bea0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x100]
lea r8, [rsp + 0xfc]
lea r9, [rsp + 0xf0]
call fcn.140160f80
xor r14d, r14d
mov r12d, 0
mov ebx, 0
test al, al
je 0x1401ec810
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
lea r15, [rsp + 0x30]
mov r8, r15
call fcn.140105350
xor r14d, r14d
mov r12d, 0
mov ebx, 0
test al, al
je 0x1401ec7ff
movzx eax, byte [rsp + 0x47]
test al, al
cmovs r15, qword [rsp + 0x30]
mov qword [rsp + 0xa8], r15
cmovs rax, qword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
lea r14, [rsp + 0xb8]
lea rdx, [rsp + 0xa8]
mov rcx, r14
call fcn.14011f170
lea rbx, [rsp + 0xd0]
mov rcx, r14
mov rdx, rbx
call fcn.14011fce0
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.14011f270
mov rcx, rbx
call fcn.1400e7e30
mov rcx, r14
call fcn.1400e7e30
mov qword [rsp + 0xe0], rbp
movaps xmmword [rsp + 0xd0], xmm6
lea rdx, [rsp + 0x100]
mov rcx, rbx
call fcn.1400f36a0
lea rax, [0x1403993e0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 3
movzx eax, byte [rsp + 0xe7]
test al, al
mov rcx, qword [rsp + 0xd0]
cmovns rcx, rbx
mov qword [rsp + 0x88], rcx
cmovs rax, qword [rsp + 0xd8]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x98]
mov r8, rbx
call fcn.1400f6a60
mov edx, dword [rsp + 0xfc]
mov rcx, r14
call fcn.1401835b0
movzx r8d, byte [rsp + 0xcf]
test r8b, r8b
jns 0x1401ec773
mov r8, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb8]
mov rcx, rbx
mov rdx, r14
call fcn.1400e9650
cmp byte [rsp + 0xcf], 0
jns 0x1401ec795
mov rcx, qword [rsp + 0xb8]
call fcn.1402021a8
movzx eax, byte [rsp + 0xe7]
test al, al
cmovs rbx, qword [rsp + 0xd0]
mov qword [rsp + 0x78], rbx
cmovs rax, qword [rsp + 0xd8]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0x78]
call fcn.1401056f0
mov rbx, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
cmp byte [rsp + 0xe7], 0
jns 0x1401ec7ff
mov rcx, qword [rsp + 0xd0]
call fcn.1402021a8
cmp byte [rsp + 0x47], 0
jns 0x1401ec810
mov rcx, qword [rsp + 0x30]
call fcn.1402021a8
mov qword [rsp + 0xe0], rbp
movaps xmmword [rsp + 0xd0], xmm6
call sub.KERNEL32.dll_GetCurrentProcess
lea r8, [rsp + 0xd0]
mov rcx, rax
mov rdx, rdi
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x1401ec8e7
mov ecx, 0x58
call fcn.14020216c
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.14011dc90
call r13
mov ebp, eax
call fcn.14011dc90
mov ecx, ebp
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, r13
mov r13, rax
call rax
lea rax, fcn.1401eca10
mov qword [r15], rax
mov qword [r15 + 8], 0
call fcn.14011dc90
call rbp
mov ebp, eax
mov qword [r15 + 8], rdi
call fcn.14011dc90
mov ecx, ebp
call r13
mov rax, qword [rsp + 0x40]
mov qword [r15 + 0x20], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r15 + 0x10], xmm0
test r12, r12
js 0x1401ec8f8
mov qword [r15 + 0x28], rbx
mov qword [r15 + 0x30], r14
mov qword [r15 + 0x38], r12
jmp 0x1401ec967
xor r15d, r15d
jmp 0x1401ec9a4
xor r15d, r15d
test r12, r12
jns 0x1401ec987
jmp 0x1401ec97f
lea rcx, [r15 + 0x28]
cmp r14, 0x16
ja 0x1401ec90d
mov byte [r15 + 0x3f], r14b
cmp rcx, rbx
jbe 0x1401ec94d
jmp 0x1401ec959
movabs r13, 0x7fffffffffffffef
cmp r14, r13
ja 0x1401eca02
mov rdi, r14
or rdi, 0xf
inc rdi
mov rcx, rdi
call fcn.14020216c
mov rcx, rax
mov qword [r15 + 0x28], rax
add r13, 0x11
or r13, rdi
mov qword [r15 + 0x38], r13
mov qword [r15 + 0x30], r14
cmp rcx, rbx
ja 0x1401ec959
lea rax, [rcx + r14]
inc rax
cmp rax, rbx
ja 0x1401ec9d6
inc r14
mov rdx, rbx
mov r8, r14
call fcn.140204f20
mov rcx, r15
add rcx, 0x40
lea rdx, [rsp + 0x60]
call fcn.14011f140
xor edi, edi
test r12, r12
jns 0x1401ec987
mov rcx, rbx
call fcn.1402021a8
lea rcx, [rsp + 0x60]
call fcn.1400e7e30
test rdi, rdi
je 0x1401ec9a4
call fcn.14011dc90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsi], r15
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140203460
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
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0xf1
call fcn.14004460c
call fcn.14003bf40
int3