Function at 0x140013294
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
xor r14d, r14d
mov dword [rbp - 0x58], FDICopy
mov dword [rsp + 0x40], r14d
mov r13, rdx
mov byte [rbp - 0x54], r14b
mov rdi, rcx
mov dword [rbp - 0x50], FDICopy
mov esi, r14d
mov byte [rbp - 0x4c], r14b
mov r12d, r14d
mov dword [rbp - 0x48], 8
mov byte [rbp - 0x44], r14b
mov dword [rbp - 0x40], 9
mov byte [rbp - 0x3c], r14b
mov dword [rbp - 0x38], 0x1c
mov byte [rbp - 0x34], r14b
mov dword [rsp + 0x48], r14d
test rcx, rcx
je 0x14001332f
cmp qword [rcx + 0x40], r14
mov rax, rcx
cmovne rax, qword [rcx + 0x40]
mov esi, dword [rax + 0x24]
mov r12d, esi
mov dword [rsp + 0x40], esi
mov r15d, r12d
and r15d, 8
mov dword [rsp + 0x44], r15d
jne 0x140013375
mov r8d, 5
lea rdx, [rbp - 0x58]
mov ecx, esi
call fcn.14000bcc0
mov ebx, eax
test eax, eax
jns 0x14001336b
mov r9d, eax
lea rcx, str.RestoreAllData
mov r8d, 0x35e
call fcn.1400064e0
jmp 0x140013378
mov dword [rsp + 0x48], 1
jmp 0x140013378
mov ebx, r14d
mov eax, 0x9000000
and r12d, eax
cmp r12d, eax
jne 0x1400133d2
mov rdx, r14
mov qword [rsp + 0x68], rdx
test rdi, rdi
je 0x1400133aa
mov rdx, qword [r13]
lea r8, [rsp + 0x68]
mov rcx, rdi
call fcn.14001b58c
mov rdx, qword [rsp + 0x68]
jmp 0x1400133af
mov eax, 0x80070057
test eax, eax
jns 0x1400133ca
mov r9d, eax
lea rcx, str.RestoreAllData
mov r8d, 0x374
call fcn.1400064e0
jmp 0x1400133d2
mov rcx, rdi
call fcn.140007f50
test ebx, ebx
js 0x1400138f5
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
test rdi, rdi
je 0x1400133fe
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
mov dword [rax + 0x48], r14d
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, esi
and eax, 0x8000008
cmp eax, 0x8000000
jne 0x140013468
mov eax, r14d
test rdi, rdi
je 0x140013428
mov eax, dword [rdi + 0x34]
xor r9d, r9d
mov ebx, eax
xor r8d, r8d
mov edx, 0x9478
mov rcx, rdi
call fcn.140019380
mov r8, qword [0x14007b998]
mov edx, ebx
mov r9, r8
mov rcx, rdi
call fcn.14000e824
test rdi, rdi
je 0x140013468
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
mov dword [rax + 0x68], 1
test esi, 0x9000008
jne 0x1400136a4
test rdi, rdi
je 0x14001348e
cmp dword [rdi], 0xfeedf002
jne 0x14001348e
cmp qword [rdi + 0x138], r14
jne 0x1400136a4
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x410
call sub.msvcrt.dll_memset
mov rcx, rdi
mov dword [rsp + 0x4c], 0x208
call fcn.140007518
test rax, rax
je 0x1400134c7
lea r8, [rsp + 0x4c]
mov rcx, rax
lea rdx, [rbp - 0x30]
call fcn.14000e740
jmp 0x1400134d8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
lea rcx, [rbp - 0x30]
xor eax, eax
inc rbx
cmp word [rcx + rbx*2], ax
jne 0x1400134e2
test ebx, ebx
je 0x140013505
mov eax, 0x5c
lea ecx, [rbx - 1]
cmp ax, word [rbp + rcx*2 - 0x30]
mov eax, 1
cmovne r14d, eax
mov rcx, qword gs:[0x60]
lea eax, [r14 + 0x14]
add eax, ebx
mov edx, 8
mov r15d, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax + rax]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14001354d
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x14001369b
lea rax, [rsp + 0x50]
mov r9d, ebx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rsp + 0x58]
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140048458
mov ebx, eax
test eax, eax
js 0x14001366e
test r14d, r14d
je 0x1400135b4
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r8, [0x14006ce88]
mov qword [rsp + 0x28], rax
mov r9d, 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140048458
mov ebx, eax
xor r14d, r14d
test ebx, ebx
js 0x14001366e
mov rdx, qword [rsp + 0x50]
lea r9d, [r14 + 0x13]
mov rcx, qword [rsp + 0x58]
lea r8, str.WimBootCompress.ini
call fcn.140003678
mov ebx, eax
test eax, eax
js 0x14001366e
mov rax, qword gs:[0x30]
lea rdx, str.WindowsSystem32WimBootCompress.ini
mov r9d, 0x20020
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rcx, rdi
mov dword [rax + 0x68], r14d
call fcn.14002e3a4
test eax, eax
je 0x14001364c
mov rcx, qword [r13]
lea rdx, [rsp + 0x70]
mov r8, rsi
mov qword [rsp + 0x70], r14
call fcn.1400253ac
test eax, eax
je 0x140013644
test rdi, rdi
je 0x140013644
cmp dword [rdi], 0xfeedf002
jne 0x140013644
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x138], rax
mov rcx, rsi
call fcn.14001a730
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14001369b
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
movzx ecx, bx
mov dword [rax + 0x68], ecx
mov esi, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
mov r8, qword [r13]
mov r9, r13
mov rdx, r8
mov dword [rsp + 0x28], esi
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.14001623c
mov ebx, eax
test eax, eax
js 0x140013839
mov rcx, rdi
call fcn.1400076f4
test eax, eax
je 0x1400136e2
mov edx, dword [rbp - 0x68]
mov rcx, rdi
call fcn.14002a530
mov ebx, eax
test ebx, ebx
js 0x140013839
mov r14d, esi
and r14d, 0x8000000
jne 0x140013742
xor eax, eax
test rdi, rdi
je 0x140013700
mov eax, dword [rdi + 0x30]
mov r9d, eax
xor r8d, r8d
mov edx, 0x947b
mov rcx, rdi
call fcn.140019380
xor r9d, r9d
xor r8d, r8d
mov edx, 0x947c
mov rcx, rdi
call fcn.140019380
test r15d, r15d
jne 0x140013839
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9478
mov rcx, rdi
call fcn.140019380
test r15d, r15d
jne 0x140013839
cmp r12d, 0x9000000
je 0x140013839
xor r12d, r12d
mov edx, r12d
mov qword [rsp + 0x60], rdx
test rdi, rdi
je 0x1400137a4
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
cmp qword [rax + 0xd0], r12
je 0x1400137a4
lea r9, [rsp + 0x60]
mov rcx, rdi
lea r8d, [r15 + 2]
lea rdx, [0x14001c280]
call fcn.14001f5d0
mov rdx, qword [rsp + 0x60]
test eax, eax
cmovs rdx, r12
mov qword [rsp + 0x60], rdx
mov r8, qword [0x14007b998]
mov rcx, rdi
mov r9, r8
call fcn.14000e824
test rdi, rdi
je 0x1400137ce
mov rax, qword [rdi + 0x40]
mov ecx, 1
test rax, rax
cmove rax, rdi
mov dword [rax + 0x68], ecx
mov rdx, r12
mov rax, rdi
test rdi, rdi
je 0x1400137f1
mov rcx, rax
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1400137d9
test rcx, rcx
je 0x1400137f1
mov rdx, qword [rcx + 0x170]
test rdx, rdx
mov r8d, r12d
mov edx, dword [rbp - 0x68]
mov rcx, rdi
setne r8b
call fcn.1400171fc
mov ebx, eax
test eax, eax
jns 0x140013814
mov r8d, 0x403
jmp 0x140013828
mov rcx, rdi
call fcn.140007b40
mov ebx, eax
test eax, eax
jns 0x140013861
mov r8d, 0x409
mov r9d, eax
lea rcx, str.RestoreAllData
call fcn.1400064e0
jmp 0x140013861
mov r14d, esi
and r14d, 0x8000000
je 0x14001385e
xor r12d, r12d
test rdi, rdi
je 0x140013861
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
mov dword [rax + 0x68], r12d
jmp 0x140013861
xor r12d, r12d
mov rcx, rdi
call fcn.14002a4cc
test ebx, ebx
js 0x14001388a
mov r8, qword [r13]
mov r9, r13
mov rdx, r8
mov dword [rsp + 0x28], esi
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.140017354
mov ebx, eax
test rdi, rdi
je 0x1400138ad
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
mov dword [rax + 0x68], r12d
mov rax, qword [rdi + 0x40]
test rax, rax
cmove rax, rdi
mov dword [rax + 0x48], r12d
test ebx, ebx
js 0x1400138f2
test r15d, r15d
jne 0x1400138ca
xor r9d, r9d
lea r8d, [r15 + 0x64]
mov edx, 0x9478
mov rcx, rdi
call fcn.140019380
test r14d, r14d
jne 0x1400138f2
xor r14d, r14d
mov eax, r14d
test rdi, rdi
je 0x1400138dd
mov eax, dword [rdi + 0x30]
mov r9d, eax
xor r8d, r8d
mov edx, 0x947c
mov rcx, rdi
call fcn.140019380
jmp 0x1400138f5
xor r14d, r14d
cmp dword [rsp + 0x48], r14d
je 0x140013910
bt esi, 0x11
jb 0x140013910
mov edx, 5
lea rcx, [rbp - 0x58]
call fcn.14000be24
mov eax, ebx
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140068870
mov rbx, qword [rsp + 0x540]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret