Function at 0x140014268
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 - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor r14d, r14d
mov qword [rsp + 0x58], rdx
mov dword [rbp - 0x68], FDICopy
mov r12, rdx
mov byte [rbp - 0x64], r14b
mov rdi, rcx
mov dword [rbp - 0x60], FDICopy
mov esi, r14d
mov byte [rbp - 0x5c], r14b
lea edx, [r14 + 1]
mov dword [rbp - 0x58], 8
mov byte [rbp - 0x54], r14b
mov dword [rbp - 0x50], 9
mov byte [rbp - 0x4c], r14b
mov dword [rbp - 0x48], 0x1c
mov byte [rbp - 0x44], r14b
mov dword [rsp + 0x4c], r14d
test rcx, rcx
je 0x140014325
cmp qword [rcx + 0x48], r14
mov rax, rcx
cmovne rax, qword [rcx + 0x48]
mov esi, dword [rax + 0x24]
mov rax, rcx
cmovne rax, qword [rcx + 0x48]
mov r13d, esi
mov r14, qword [rax + 0x28]
mov qword [rsp + 0x60], r14
and r13d, 8
je 0x140014333
xor ecx, ecx
mov qword [rsp + 0x60], r14
mov ebx, ecx
xor r14d, r14d
jmp 0x14001437e
mov r13d, r14d
mov qword [rsp + 0x60], r14
and r13d, 8
jmp 0x140014336
xor r14d, r14d
mov r8d, 5
lea rdx, [rbp - 0x68]
mov ecx, esi
call fcn.14004d620
mov ebx, eax
test eax, eax
jns 0x140014375
mov r9d, eax
mov qword [rsp + 0x20], r14
mov r8d, 0x3c1
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restore.c
lea rcx, str.RestoreAllData
call fcn.140046874
mov edx, 1
jmp 0x14001437e
mov edx, 1
mov dword [rsp + 0x4c], edx
mov eax, 0x9000000
mov r15d, esi
and r15d, eax
mov dword [rsp + 0x48], r15d
cmp r15d, eax
jne 0x1400143e0
mov r8d, edx
mov qword [rsp + 0x40], r14
mov rdx, qword [r12]
lea r9, [rsp + 0x40]
mov rcx, rdi
call fcn.140043cbc
test eax, eax
jns 0x1400143d3
mov r9d, eax
mov qword [rsp + 0x20], r14
mov r8d, 0x3d7
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restore.c
lea rcx, str.RestoreAllData
call fcn.140046874
jmp 0x1400143e0
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002ea6c
test ebx, ebx
js 0x1400148e2
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
test rdi, rdi
je 0x14001440e
cmp qword [rdi + 0x48], r14
mov rax, rdi
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x50], r14d
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, esi
and eax, 0x8000008
cmp eax, 0x8000000
jne 0x140014479
mov eax, r14d
test rdi, rdi
je 0x140014438
mov eax, dword [rdi + 0x38]
xor r9d, r9d
mov ebx, eax
xor r8d, r8d
mov edx, 0x9478
mov rcx, rdi
call fcn.1400286f0
mov r8, qword [0x1400bac90]
mov edx, ebx
mov r9, r8
mov rcx, rdi
call fcn.140010d0c
test rdi, rdi
je 0x140014479
cmp qword [rdi + 0x48], r14
mov rax, rdi
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x70], 1
test esi, 0x9000008
jne 0x1400146ad
test rdi, rdi
je 0x14001449f
cmp dword [rdi], 0xfeedf002
jne 0x14001449f
cmp qword [rdi + 0x140], r14
jne 0x1400146ad
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x410
call sub.msvcrt.dll_memset
mov rcx, rdi
mov dword [rsp + 0x50], 0x208
call fcn.14002e0d0
mov rcx, rax
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x40]
call fcn.140010c20
lea rax, [rbp - 0x40]
or rbx, 0xffffffffffffffff
mov r15d, r14d
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1400144dc
test ebx, ebx
je 0x140014500
mov eax, 0x5c
lea ecx, [rbx - 1]
cmp ax, word [rbp + rcx*2 - 0x40]
mov eax, 1
cmovne r15d, eax
mov rcx, qword gs:[0x60]
lea eax, [r15 + 0x14]
add eax, ebx
mov edx, 8
mov r12d, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax + rax]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140014548
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x1400146a3
lea rax, [rsp + 0x50]
mov r9d, ebx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rsp + 0x40]
mov rdx, r12
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14000c208
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x140014676
test r15d, r15d
je 0x1400145b9
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea r9d, [r12 + 1]
mov qword [rsp + 0x28], rax
lea r8, [0x14009b488]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov ebx, eax
test eax, eax
js 0x140014676
mov rdx, qword [rsp + 0x50]
lea r8, str.WimBootCompress.ini
mov rcx, qword [rsp + 0x40]
mov r9d, FDICopy
call fcn.14000107c
mov ebx, eax
test eax, eax
js 0x140014676
mov rax, qword gs:[0x30]
lea rdx, str.WindowsSystem32WimBootCompress.ini
mov r9d, 0x20020
mov qword [rsp + 0x20], r12
mov r8, r14
mov rcx, rdi
mov dword [rax + 0x68], r12d
call fcn.1400491a0
test eax, eax
je 0x14001464f
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov r8, r14
mov rcx, qword [r12]
call fcn.1400394c8
test eax, eax
je 0x140014645
test rdi, rdi
je 0x140014645
cmp dword [rdi], 0xfeedf002
jne 0x140014645
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x140], rax
mov rcx, r14
call fcn.140042b60
jmp 0x140014654
mov r12, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400146a8
mov rcx, qword gs:[0x60]
mov r8, r14
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 r12, qword [rsp + 0x58]
mov r15d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov r9, r12
mov r8, qword [r12]
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov rdx, r8
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
call fcn.140016f80
mov ebx, eax
test eax, eax
js 0x140014819
mov rcx, rdi
call fcn.14002e25c
test eax, eax
je 0x1400146fd
mov edx, dword [rbp - 0x78]
mov rcx, rdi
call fcn.1400406d8
mov ebx, eax
test eax, eax
js 0x140014819
mov r14d, esi
and r14d, 0x8000000
jne 0x140014759
xor ecx, ecx
mov eax, ecx
test rdi, rdi
je 0x140014715
mov eax, dword [rdi + 0x34]
mov r9d, eax
xor r8d, r8d
mov edx, 0x947b
mov rcx, rdi
call fcn.1400286f0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x947c
mov rcx, rdi
call fcn.1400286f0
test r13d, r13d
jne 0x140014819
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9478
mov rcx, rdi
call fcn.1400286f0
jmp 0x140014762
test r13d, r13d
jne 0x140014819
cmp r15d, 0x9000000
je 0x140014819
mov ebx, 1
mov rcx, rdi
mov edx, ebx
call fcn.140044eb4
mov r8, qword [0x1400bac90]
mov rdx, rax
mov r9, r8
mov rcx, rdi
call fcn.140010d0c
xor r15d, r15d
test rdi, rdi
je 0x1400147c2
cmp qword [rdi + 0x48], r15
mov rax, rdi
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x70], ebx
mov rax, rdi
lea rcx, [rax]
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x1400147ad
mov rax, qword [rcx + 0x178]
jmp 0x1400147c5
mov rax, r15
mov edx, dword [rbp - 0x78]
test rax, rax
mov r8d, r15d
mov rcx, rdi
setne r8b
call fcn.140017f98
mov ebx, eax
test eax, eax
jns 0x1400147e8
mov r8d, 0x467
jmp 0x1400147fc
mov rcx, rdi
call fcn.14002e6a8
mov ebx, eax
test eax, eax
jns 0x140014842
mov r8d, 0x46d
mov r9d, eax
mov qword [rsp + 0x20], r15
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmain_restore.c
lea rcx, str.RestoreAllData
call fcn.140046874
jmp 0x140014842
mov r14d, esi
and r14d, 0x8000000
je 0x14001483f
xor r15d, r15d
test rdi, rdi
je 0x140014842
cmp qword [rdi + 0x48], r15
mov rax, rdi
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x70], r15d
jmp 0x140014842
xor r15d, r15d
mov rcx, rdi
call fcn.14004067c
test ebx, ebx
js 0x140014875
mov rax, qword [rsp + 0x60]
mov r9, r12
mov r8, qword [r12]
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov rdx, r8
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
call fcn.1400180f8
mov ebx, eax
test rdi, rdi
je 0x14001489a
cmp qword [rdi + 0x48], r15
mov rax, rdi
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x70], r15d
mov rax, rdi
cmp qword [rdi + 0x48], r15
cmovne rax, qword [rdi + 0x48]
mov dword [rax + 0x50], r15d
test ebx, ebx
js 0x1400148df
test r13d, r13d
jne 0x1400148b7
xor r9d, r9d
lea r8d, [r13 + 0x64]
mov edx, 0x9478
mov rcx, rdi
call fcn.1400286f0
test r14d, r14d
jne 0x1400148df
xor r14d, r14d
mov eax, r14d
test rdi, rdi
je 0x1400148ca
mov eax, dword [rdi + 0x34]
mov r9d, eax
xor r8d, r8d
mov edx, 0x947c
mov rcx, rdi
call fcn.1400286f0
jmp 0x1400148e2
xor r14d, r14d
cmp dword [rsp + 0x4c], r14d
je 0x1400148fa
mov r8d, 5
lea rdx, [rbp - 0x68]
mov ecx, esi
call fcn.14004d78c
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0x530]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret