Function at 0x14000e100
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov qword [rdx + 8], rdx
or rbp, 0xffffffffffffffff
mov qword [rdx], rdx
mov rbx, rbp
mov rsi, rdx
mov r14, rcx
mov edi, r15d
mov r12d, r15d
mov r13d, r15d
inc rbx
cmp word [rcx + rbx*2], r15w
jne 0x14000e134
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x98], rax
mov rbx, rax
test rax, rax
jne 0x14000e184
mov ebx, r15d
lea edi, [rax + 8]
jmp 0x14000e516
inc rbp
cmp word [r14 + rbp*2], r15w
jne 0x14000e184
lea rdx, [rbp + 1]
mov r8, r14
mov rcx, rbx
call fcn.140004c70
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
nop dword [rax + rax]
mov r8, rbx
lea rdx, str.SOURCE
mov rcx, rsi
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
mov r8, qword [rsp + 0x98]
lea rdx, [0x1400317f8]
mov rcx, rsi
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
mov cl, 1
call fcn.140005ad8
mov r12, rax
test rax, rax
jne 0x14000e222
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
lea rdx, str.Failed_to_get_system_partition__Last_Error___x
lea ecx, [r12 + 4]
mov edi, eax
call fcn.14000f424
jmp 0x14000e4a3
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
nop dword [rax + rax]
mov r8, r12
lea rdx, [0x140031878]
mov rcx, rsi
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
call fcn.14000e54c
mov edx, eax
mov ebp, eax
sub edx, 1
je 0x14000e2ab
cmp edx, 1
je 0x14000e26d
mov ebx, r15d
mov edi, 0x1f
jmp 0x14000e4a3
lea rax, str.EFIMicrosoftBoot
mov rcx, rsi
lea r8, str.bootmgfw_EX.efi
mov qword [rsp + 0x90], rax
lea rdx, str.BOOTMGBINEX
lea r14, [0x14002ff18]
lea r15, str.bootmgfw.efi
call fcn.14001058c
mov ebx, eax
test eax, eax
jne 0x14000e2c8
jmp 0x14000e495
lea rax, str.Boot
mov qword [rsp + 0x90], rax
lea r14, str.PCAT
lea r15, str.bootmgr
mov r8, r14
lea rdx, str.FWTYPE
mov rcx, rsi
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
mov r8, r15
lea rdx, [0x140031928]
mov rcx, rsi
call fcn.14001058c
xor r15d, r15d
mov ebx, eax
test eax, eax
je 0x14000e495
cmp ebp, 2
jne 0x14000e3c0
lea rdx, str.SOURCEFWTYPEBOOTMGBIN
mov rcx, rsi
call fcn.1400107a4
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x88]
mov ebx, r15d
call fcn.140005328
test rax, rax
je 0x14000e35a
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
nop dword [rax + rax]
test rax, rax
je 0x14000e350
movzx ebx, word [rax + 4]
lea rcx, [rsp + 0x20]
call fcn.1400059fc
sub ebx, 0x14c
je 0x14000e392
sub ebx, 0x76
je 0x14000e389
sub ebx, 0x84a2
je 0x14000e380
cmp ebx, 0x2400
jne 0x14000e380
lea r8, str.bootaa64.efi
jmp 0x14000e399
lea r8, str.bootx64.efi
jmp 0x14000e399
lea r8, str.bootarm.efi
jmp 0x14000e399
lea r8, str.bootia32.efi
lea rdx, str.DEFAULTAPP
mov rcx, rsi
call fcn.14001058c
test eax, eax
jne 0x14000e3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, r15d
jmp 0x14000e4a1
lea r8, str.Fonts
mov rcx, rsi
lea rdx, str.FONTS
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
lea r8, str.Resources
mov rcx, rsi
lea rdx, str.RESOURCES
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
mov r8, qword [rsp + 0x90]
lea rdx, str.DEST
mov rcx, rsi
call fcn.14001058c
mov ebx, eax
test eax, eax
je 0x14000e495
lea rdx, str.SYSPART_
mov rcx, rsi
call fcn.1400107a4
mov r13, rax
test rax, rax
jne 0x14000e439
mov ebx, r15d
jmp 0x14000e495
mov rcx, rax
call fcn.14000e5b4
test eax, eax
je 0x14000e463
lea r8, [0x140030380]
mov rcx, rsi
lea rdx, str.ACLS
call fcn.14001058c
mov ebx, eax
test eax, eax
jne 0x14000e474
jmp 0x14000e495
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x32
jne 0x14000e434
cmp ebp, 2
jne 0x14000e4a3
lea r8, str.EFIBoot
mov rcx, rsi
lea rdx, str.EFIDEFAULTDIR
call fcn.14001058c
mov ebx, eax
test eax, eax
jne 0x14000e4a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r12, r12
je 0x14000e4ed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r13, r13
je 0x14000e512
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
jne 0x14000e52c
mov rcx, rsi
call fcn.140010738
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret