Function at 0x1400e1d50
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x170
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx eax, word [r8 + 0xa0]
mov r12, qword [rdx + 0xc8]
mov r13, qword [rdx + 0xc0]
imul r12, rax
imul r13, rax
mov rbx, rcx
movsxd rcx, dword [rcx + 0x14]
mov rdi, r8
mov rbp, rdx
imul rcx, r12
call sub.MFC80U.DLL_Ordinal_265
test rax, rax
mov rsi, rax
jne 0x1400e1e9d
call fcn.140049470
lea rbx, [0x14043d210]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._ntfsfmt.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1400e1df5
xor ebp, ebp
jmp 0x1400e1e83
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
mov r8d, reloc.MFC80U.DLL_Ordinal_600
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_336], 0
mov qword [rsp + 0x151], rax
mov word [rsp + 0x159], ax
mov byte [rsp + 0x15b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400e1e40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400e1e70
mov rbp, rbx
mov rax, qword [rsi]
lea rdx, str._s:_No_sufficient_memory.
mov r8, rbp
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400e225f
movsxd r8, dword [rbx + 0x14]
xor edx, edx
mov rcx, rax
imul r8, r12
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
jb 0x1400e1ee9
cmp dword [rsp + 0x38], 1
lea rdx, [0x14035da80]
jae 0x1400e1ef0
lea rdx, [0x14035ba80]
mov r8d, 0x2000
mov rcx, rsi
call sub.ntdll.dll_memcpy
movzx eax, word [rbx + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsi + 0xb], ax
movzx eax, byte [rdi + 0xa0]
mov byte [rsi + 0xd], al
xor eax, eax
mov dword [rsi + 0xe], eax
mov word [rsi + 0x12], ax
mov byte [rsi + 0x14], al
mov byte [rsi + 0x15], 0xf8
mov word [rsi + 0x16], ax
movzx eax, word [rdi + 0xa4]
mov word [rsi + 0x18], ax
movzx eax, word [rdi + 0xa2]
mov word [rsi + 0x1a], ax
mov eax, dword [rdi + 0x18]
mov dword [rsi + 0x1c], eax
xor eax, eax
mov dword [rsi + 0x20], eax
mov rax, qword [rdi + 0x10]
sub rax, 1
mov qword [rsi + 0x28], rax
mov rax, qword [rbp]
mov qword [rsi + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rsi + 0x38], rax
xor eax, eax
mov word [rsp + 0x20], 0
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x28]
movzx edx, word [rsp + 0x2c]
imul ax, ax, 0x64
add ax, word [rsp + 0x2a]
add dx, word [rsp + 0x22]
xor ebp, ebp
add ax, word [rsp + 0x20]
imul dx, dx, 0x64
add dx, word [rsp + 0x2e]
movzx eax, ax
add dx, word [rsp + 0x26]
shl eax, 0x10
movzx ecx, dx
or eax, ecx
cdqe
mov rcx, rax
shl rcx, 0x20
or rcx, rax
mov qword [rsi + 0x48], rcx
movzx ecx, word [rdi + 0xa0]
mov eax, dword [rbx + 0x10]
imul ecx, dword [rbx + 0x14]
cmp eax, ecx
jge 0x1400e1ff5
cmp eax, 1
mov ecx, ebp
jbe 0x1400e1fee
shr eax, 1
add ecx, 1
cmp eax, 1
ja 0x1400e1fe4
neg cl
movzx eax, cl
jmp 0x1400e1ff8
cdq
idiv ecx
mov dword [rsi + 0x40], eax
movzx ecx, word [rdi + 0xa0]
mov eax, 0x1000
imul ecx, dword [rbx + 0x14]
cmp ecx, eax
jle 0x1400e2022
mov ecx, ebp
shr eax, 1
add ecx, 1
cmp eax, 1
ja 0x1400e2011
neg cl
movzx eax, cl
jmp 0x1400e2025
cdq
idiv ecx
mov dword [rsi + 0x44], eax
mov dword [rbx], eax
mov ecx, dword [rdi]
call fcn.140114fb0
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1400e2126
call fcn.140049470
lea rbx, [0x14043d210]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov r12, rax
call sub.ntdll.dll_memset
lea rcx, str..._ntfsfmt.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400e2103
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
mov r8d, reloc.MFC80U.DLL_Ordinal_681
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_336], bpl
mov qword [rsp + 0x151], rax
mov word [rsp + 0x159], ax
mov byte [rsp + 0x15b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400e20c1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400e20f0
mov rbp, rbx
mov rax, qword [r12]
lea rdx, str._s:_Failed_to_open_disk.
mov r8, rbp
mov rcx, r12
call qword [rax + 0x10]
mov rcx, rsi
call sub.MFC80U.DLL_Ordinal_266
xor eax, eax
jmp 0x1400e225f
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov r9d, 1
lea r8, [rcx + rax - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.1400e0c00
mov rdx, qword [rdi + 8]
mov r9, r12
lea r8, [r13 + rdx]
mov rdx, rsi
mov rcx, rbx
call fcn.1400e0c00
mov rcx, rsi
mov edi, eax
call sub.MFC80U.DLL_Ordinal_266
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400e225a
call fcn.140049470
lea rbx, [0x14043d210]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea edx, [rdi + 0x5c]
lea rcx, str..._ntfsfmt.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1400e2243
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
mov r8d, 0x2b8
mov byte [rsp + reloc.MFC80U.DLL_Ordinal_336], bpl
mov qword [rsp + 0x151], rax
mov word [rsp + 0x159], ax
mov byte [rsp + 0x15b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1400e2200
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400e2230
mov rbp, rbx
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_write__Boot_Data.
mov r8, rbp
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400e225f
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret