Function at 0x140004360
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r15, r9
mov r14, r8
xor r13d, r13d
test rdx, rdx
jne 0x1400043a4
int3
cmp qword [r8], r13
jne 0x1400043aa
int3
cmp qword [r8 + 0x10], r13
jne 0x1400043b1
int3
test r15, r15
jne 0x1400043b7
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
mov rax, rdx
lea rcx, [rsp + 0x50]
mov r8d, 2
lea r9d, [r8 + 0x7e]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r9
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, r9
sub r8, 1
jne 0x1400043d6
mov rax, qword [rax]
mov qword [rcx], rax
cmp dword [rbp - 0x18], r13d
jne 0x1400047b3
cmp dword [rbp - 0x14], r13d
jne 0x1400047b3
cmp dword [rbp], r13d
jne 0x1400047b3
cmp dword [rbp + 4], r13d
jne 0x1400047b3
movzx eax, word [rsp + 0x56]
lea rcx, [rax + rax*4]
shl rcx, 3
sub rcx, qword [r14 + 0x10]
lea r12, [rdx + 0x108]
add r12, rcx
mov r8d, dword [rbp - 0x5c]
mov ecx, r8d
sub ecx, r12d
mov eax, 0x28
sub eax, ecx
cmp ecx, 0x28
sbb r13d, r13d
and r13d, eax
lea r9d, [r8 + r13]
mov edx, dword [rbp - 0x74]
lea ecx, [rdx - 1]
mov eax, ecx
and eax, r9d
sub edx, eax
and edx, ecx
add r9d, edx
mov dword [rsp + 0x24], r9d
mov eax, r9d
sub eax, r8d
mov dword [rsp + 0x20], eax
mov edi, eax
add rdi, qword [r14]
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.1400c9d54
mov ebx, eax
mov rsi, qword [rbp + 0x70]
test eax, eax
js 0x1400047cd
mov qword [rbp + 0x60], rdi
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.14010b670
mov ebx, r12d
mov r8d, r12d
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
call fcn.14010b910
mov rcx, rsi
call qword [sym.imp.imagehlp.dll_ImageNtHeader]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140004547
lea rax, str.onecore_basewcp_toolsmtmtmt_updresman.cpp
mov qword [rsp + 0x28], rax
lea rax, str.RtlpCreateEmptyResourceSection
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x1b3
lea rax, str.pNewNtHeaders___0
mov qword [rsp + 0x40], rax
mov r8d, 0xc0000102
lea rcx, [rsp + 0x28]
call fcn.1400c81b4
mov ebx, 0xc0000102
jmp 0x1400047cd
mov eax, dword [rax + 0x38]
lea r8d, [rax - 1]
add r8d, r13d
neg eax
and r8d, eax
mov edx, 8
mov r12d, dword [rbp - 0x5c]
test r13d, r13d
je 0x1400045b7
lea rcx, [rdi + 0x88]
lea r9d, [rdx + 8]
mov eax, dword [rcx]
test eax, eax
je 0x14000457f
cmp eax, r12d
jae 0x14000457f
add eax, r8d
mov dword [rcx], eax
add rcx, rdx
sub r9, 1
jne 0x14000456f
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x14000459a
cmp eax, r12d
jae 0x14000459a
add eax, r8d
mov dword [rdi + 0x2c], eax
mov eax, 0x10b
cmp word [rdi + 0x18], ax
jne 0x1400045b7
mov eax, dword [rdi + 0x30]
test eax, eax
je 0x1400045b7
cmp eax, r12d
jae 0x1400045b7
add eax, r8d
mov dword [rdi + 0x30], eax
lea r10, [rsi + rbx]
lea r9, [rdi + 0x108]
movzx eax, word [rdi + 6]
lea rcx, [rax + rax*4]
lea r11, [r9 + rcx*8]
cmp r9, r10
je 0x140004614
lea rcx, [r9 + 0xc]
mov r9d, dword [rsp + 0x20]
lea rax, [rcx - 0xc]
cmp rax, r11
jae 0x140004614
mov eax, dword [rcx + 8]
test eax, eax
je 0x1400045f2
add eax, r9d
mov dword [rcx + 8], eax
test r13d, r13d
je 0x140004607
mov eax, dword [rcx]
test eax, eax
je 0x140004607
cmp eax, r12d
jae 0x140004607
add eax, r8d
mov dword [rcx], eax
add rcx, 0x28
lea rax, [rcx - 0xc]
cmp rax, r10
jne 0x1400045dc
mov rcx, r10
lea r8, str..rsrc
sub r8, r10
xor r13d, r13d
lea r9d, [r13 + 1]
lea rax, [rdx + 0x7ffffff6]
test rax, rax
je 0x140004646
mov al, byte [r8 + rcx]
test al, al
je 0x140004646
mov byte [rcx], al
add rcx, r9
sub rdx, r9
jne 0x140004628
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], r13b
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80000005
test rdx, rdx
jne 0x14000467c
mov eax, ebx
shr eax, 0x1f
test al, al
jne 0x1400047cd
int3
mov r8d, r13d
mov eax, r13d
movzx edx, word [rsp + 0x56]
test edx, edx
je 0x1400046ad
lea rcx, [r10 - 0x20]
test edx, edx
je 0x1400046a4
mov r8d, dword [rcx + 4]
mov eax, dword [rcx]
dec edx
sub rcx, 0x28
test r8d, r8d
je 0x14000468f
test eax, eax
je 0x1400046ad
mov ecx, dword [rdi + 0x38]
jmp 0x1400046b2
mov eax, dword [rdi + 0x38]
mov ecx, eax
dec eax
add eax, ecx
neg ecx
and eax, ecx
add eax, r8d
mov dword [r10 + 0xc], eax
mov dword [r10 + 0x24], 0x40000040
mov dword [rdi + 0x98], eax
mov eax, dword [r10 + 8]
mov dword [rdi + 0x9c], eax
add word [rdi + 6], r9w
mov r11d, dword [rsp + 0x24]
mov dword [rdi + 0x54], r11d
mov r9d, dword [rdi + 0x38]
mov ecx, dword [r10 + 0x10]
dec ecx
mov r8d, dword [r10 + 0xc]
add ecx, r9d
add r8d, ecx
neg r9d
and r8d, r9d
mov dword [rdi + 0x50], r8d
mov ecx, r12d
mov r8, qword [r14]
sub r8, rcx
mov rdx, qword [r14 + 0x10]
add rdx, rcx
lea rcx, [rsi + r11]
call fcn.14010b910
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140003dcc
mov ebx, eax
test eax, eax
js 0x1400047cd
movups xmm3, xmmword [r15]
movsd xmm2, qword [r15 + 0x10]
movsd qword [rsp + 0x38], xmm2
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [r15], xmm0
movsd xmm1, qword [rbp + 0x70]
movsd qword [r15 + 0x10], xmm1
movups xmmword [rbp + 0x60], xmm3
movsd qword [rbp + 0x70], xmm2
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004788
call fcn.140012410
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rsp + 0x38], rcx
movups xmmword [rbp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [rbp + 0x70], xmm0
mov eax, r13d
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0x60]
mov rcx, r14
call fcn.1400c85f4
mov ebx, eax
test eax, eax
jns 0x140004734
mov rsi, qword [rbp + 0x70]
test rsi, rsi
je 0x1400047f3
mov rcx, rsi
call fcn.140012410
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x38], rax
movups xmmword [rbp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [rbp + 0x70], xmm0
mov eax, ebx
jmp 0x14000478b