Function at 0x1400cf4dc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, qword [rbp + 0x1b0]
xor r15d, r15d
mov dword [rsp + 0x50], edx
mov r13, r9
mov r12, r8
mov rdi, rcx
test rcx, rcx
jne 0x1400cf56e
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x33c
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.Not_null_check_failed:_pReadableStream
mov r8d, 0xc000000d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.1400c81b4
mov eax, 0xc000000d
jmp 0x1400cf927
mov qword [r8], r15
xor edx, edx
mov qword [r9], r15
lea r9, [rbp - 0x20]
mov rax, qword [rcx]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
lea r8d, [rdx + 0x40]
mov qword [rsp + 0x58], r15
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x40
je 0x1400cf5f3
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x354
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_DOS_HEADER_
mov r8d, 0xc0000102
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.1400c81b4
mov eax, 0xc0000102
jmp 0x1400cf927
mov eax, 0x5a4d
cmp word [rbp - 0x20], ax
je 0x1400cf627
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x355
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.imageDosHeader.e_magic__0x5A4D
jmp 0x1400cf5d4
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
movsxd rdx, dword [rbp + 0x1c]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x68], r15d
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 4
je 0x1400cf691
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x35b
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_DWORD_
jmp 0x1400cf5d4
cmp dword [rsp + 0x68], 0x4550
je 0x1400cf6c7
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x35c
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.ntSignature__0x00004550
jmp 0x1400cf5d4
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
movsxd rdx, dword [rbp + 0x1c]
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
add rdx, 4
mov r8d, 0x14
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x14
je 0x1400cf72f
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x361
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_FILE_HEADER_
jmp 0x1400cf5d4
mov eax, dword [rbp + 0x1c]
lea rcx, [rsp + 0x58]
add eax, 0x18
mov qword [rsp + 0x20], rcx
movsxd rdx, eax
lea r9, [rbp + 0x50]
mov rax, qword [rdi]
mov ebx, 0xe0
mov r8d, ebx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], rbx
je 0x1400cf799
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x36d
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_OPTIONAL_HEADER32_
jmp 0x1400cf5d4
mov eax, 0x20b
cmp word [rbp + 0x50], ax
sete bl
jne 0x1400cf817
mov eax, dword [rbp + 0x1c]
lea rcx, [rsp + 0x60]
add eax, 0x18
mov qword [rsp + 0x20], rcx
movsxd rdx, eax
lea r9, [rbp + 0x50]
mov rax, qword [rdi]
mov r14d, 0xf0
mov r8d, r14d
mov qword [rsp + 0x60], r15
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x60], r14
je 0x1400cf817
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x375
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_OPTIONAL_HEADER64_
jmp 0x1400cf5d4
mov edx, dword [rbp + 0x1c]
lea eax, [rdx + 0x58]
movsxd rcx, eax
mov qword [rsi], rcx
test bl, bl
je 0x1400cf836
mov r14d, dword [rbp + 0xd0]
mov eax, dword [rbp + 0xd4]
jmp 0x1400cf843
mov r14d, dword [rbp + 0xc0]
mov eax, dword [rbp + 0xc4]
test eax, eax
jne 0x1400cf873
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x390
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.resourceSectionSize___0
jmp 0x1400cf90d
movzx eax, word [rbp - 0x50]
lea ecx, [rdx + 0x18]
add ecx, eax
mov esi, r15d
movsxd rbx, ecx
cmp r15w, word [rbp - 0x5e]
jae 0x1400cf8e6
mov rax, qword [rdi]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x20]
mov r8d, 0x28
mov qword [rsp + 0x60], r15
mov rdx, rbx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x60], 0x28
jne 0x1400cfd59
mov r15d, dword [rbp + 0x2c]
cmp r15d, r14d
je 0x1400cf952
movzx eax, word [rbp - 0x5e]
add rbx, 0x28
inc esi
mov r15d, 0
cmp esi, eax
jb 0x1400cf889
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x3ac
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.resourceSectionFound
mov r8d, 0xc0000089
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
call fcn.1400c81b4
mov eax, 0xc0000089
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0x298]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov r14d, dword [rbp + 0x34]
lea r9, [rbp - 0x80]
and qword [rsp + 0x58], 0
mov r8d, 0x10
mov qword [rsp + 0x20], rcx
mov edx, r14d
mov rax, qword [rax + 0x10]
mov rcx, rdi
sub r15d, r14d
call qword [case.0x14010a1e6.0]
xor ecx, ecx
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x10
je 0x1400cf9c0
mov dword [rsp + 0x40], 0x3b4
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_RESOURCE_DIRECTORY_
jmp 0x1400cf5d4
movzx ebx, word [rbp - 0x74]
mov esi, ecx
add rbx, 2
lea rbx, [r14 + rbx*8]
cmp cx, word [rbp - 0x72]
jae 0x1400cfa2d
mov rax, qword [rdi]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov r8d, 8
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
xor ecx, ecx
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x60], 8
jne 0x1400cfd2d
cmp word [rsp + 0x70], 0x18
je 0x1400cfa73
movzx eax, word [rbp - 0x72]
add rbx, 8
inc esi
cmp esi, eax
jb 0x1400cf9d4
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x3cd
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, str.GetManifestAndChecksumPositions
mov r8d, 0xc000008a
mov qword [rsp + 0x38], rax
lea rax, str.manifestRootDirectoryFound
mov qword [rsp + 0x48], rax
call fcn.1400c81b4
mov eax, 0xc000008a
jmp 0x1400cf927
mov ebx, dword [rsp + 0x74]
lea rcx, [rsp + 0x58]
mov rax, qword [rdi]
lea r9, [rbp - 0x70]
btr ebx, 0x1f
mov qword [rsp + 0x20], rcx
add ebx, r14d
mov r8d, 0x10
mov edx, ebx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
xor ecx, ecx
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x10
je 0x1400cfac3
mov dword [rsp + 0x40], 0x3d4
jmp 0x1400cf99c
movzx eax, word [rbp - 0x64]
mov esi, ecx
lea rbx, [rbx + rax*8]
add rbx, 0x10
cmp cx, word [rbp - 0x62]
jae 0x1400cfb33
mov rax, qword [rdi]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x70], rcx
mov r8d, 8
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
xor ecx, ecx
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x70], 8
jne 0x1400cfd23
movzx eax, word [rsp + 0x60]
cmp eax, dword [rsp + 0x50]
je 0x1400cfb79
movzx eax, word [rbp - 0x62]
add rbx, 8
inc esi
cmp esi, eax
jb 0x1400cfad7
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x3ed
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, str.GetManifestAndChecksumPositions
mov r8d, 0xc000008b
mov qword [rsp + 0x38], rax
lea rax, str.targetManifestDirectoryFound
mov qword [rsp + 0x48], rax
call fcn.1400c81b4
mov eax, 0xc000008b
jmp 0x1400cf927
mov ebx, dword [rsp + 0x64]
lea rcx, [rsp + 0x58]
mov rax, qword [rdi]
lea r9, [rbp - 0x48]
xor esi, esi
mov qword [rsp + 0x20], rcx
btr ebx, 0x1f
mov qword [rsp + 0x58], rsi
add ebx, r14d
mov rcx, rdi
mov rax, qword [rax + 0x10]
mov edx, ebx
lea r8d, [rsi + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x10
je 0x1400cfbcc
mov dword [rsp + 0x40], 0x3f5
jmp 0x1400cf99c
movzx edx, word [rbp - 0x3c]
movzx eax, word [rbp - 0x3a]
add rdx, 2
lea rdx, [rbx + rdx*8]
test ax, ax
jne 0x1400cfc27
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x3fb
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, str.GetManifestAndChecksumPositions
mov r8d, 0xc0000204
mov qword [rsp + 0x38], rax
lea rax, str.targetManifestDirectory.NumberOfIdEntries___0
mov qword [rsp + 0x48], rax
call fcn.1400c81b4
mov eax, 0xc0000204
jmp 0x1400cf927
mov ecx, 1
cmp ax, cx
je 0x1400cfc5d
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x401
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.targetManifestDirectory.NumberOfIdEntries__1
jmp 0x1400cf54f
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x78]
mov r8d, 8
mov qword [rsp + 0x58], rsi
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 8
je 0x1400cfca4
mov dword [rsp + 0x40], 0x406
jmp 0x1400cfd35
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov edx, dword [rsp + 0x7c]
lea r9, [rbp - 0x38]
mov qword [rsp + 0x20], rcx
add edx, r14d
mov r8d, 0x10
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
test eax, eax
js 0x1400cf927
cmp qword [rsp + 0x58], 0x10
je 0x1400cfd0b
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x40d
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_RESOURCE_DATA_ENTRY_
jmp 0x1400cf5d4
mov eax, dword [rbp - 0x38]
sub eax, r15d
mov qword [r12], rax
mov eax, dword [rbp - 0x34]
mov qword [r13], rax
xor eax, eax
jmp 0x1400cf927
mov dword [rsp + 0x40], 0x3e1
jmp 0x1400cfd35
mov dword [rsp + 0x40], 0x3c1
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_RESOURCE_DIRECTORY_ENTRY_
jmp 0x1400cf5d4
lea rax, str.onecore_basewcp_toolsmthashupdatemt_manifestupdater.cpp
mov dword [rsp + 0x40], 0x39f
mov qword [rsp + 0x30], rax
lea rax, str.GetManifestAndChecksumPositions
mov qword [rsp + 0x38], rax
lea rax, str.BytesRead__sizeof_IMAGE_SECTION_HEADER_
jmp 0x1400cf5d4