Function at 0x140047cc0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rbx, dword [rcx + 0x3c]
mov rbp, rcx
add rbx, rcx
movaps xmmword [rsp + 0x20], xmm6
xor edi, edi
mov dword [rsp + 0x70], edi
movzx r14d, word [rbx + 6]
mov ecx, r14d
lea edx, [rdi + 1]
shl rcx, 4
add rcx, 0x48
call fcn.1400c537c
mov rsi, rax
test rax, rax
je 0x140047ff1
lea eax, [r14 + 4]
mov ecx, 0x20b
mov dword [rsi], eax
movzx eax, word [rbx + 0x18]
cmp ax, cx
jne 0x140047d85
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.140047ba0
cmp dword [rbx + 0x84], 4
lea rdx, [rbx + 0x5c]
mov rcx, rsi
ja 0x140047d5b
mov r8d, dword [rbx + 0x54]
add r8, rbp
call fcn.140047ba0
jmp 0x140047de9
lea r8, [rbx + 0xa8]
call fcn.140047ba0
mov r8d, dword [rbx + 0x54]
lea rdx, [rbx + 0xb0]
add r8, rbp
mov rcx, rsi
call fcn.140047ba0
mov eax, dword [rbx + 0xac]
jmp 0x140047de5
mov ecx, 0x10b
cmp ax, cx
jne 0x140047fdb
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.140047ba0
cmp dword [rbx + 0x74], 4
lea rdx, [rbx + 0x5c]
mov rcx, rsi
ja 0x140047dbd
mov r8d, dword [rbx + 0x54]
add r8, rbp
call fcn.140047ba0
jmp 0x140047de9
lea r8, [rbx + 0x98]
call fcn.140047ba0
mov r8d, dword [rbx + 0x54]
lea rdx, [rbx + 0xa0]
add r8, rbp
mov rcx, rsi
call fcn.140047ba0
mov eax, dword [rbx + 0x9c]
mov dword [rsp + 0x70], eax
movzx r14d, word [rbx + 6]
mov ecx, 8
mov r13d, dword [rbx + 0x3c]
mov edx, r14d
mov r12d, dword [rbx + 0x54]
movzx eax, word [rbx + 0x14]
add rbx, 0x18
add rbx, rax
movq xmm6, rbx
punpcklqdq xmm6, xmm6
call fcn.1400c537c
mov r15, rax
test rax, rax
jne 0x140047e37
lea rdx, str.efi_image_parse
lea rcx, str._s:_Out_of_memory
call fcn.14004f910
jmp 0x140047ff1
mov r8d, edi
cmp r14d, 8
jb 0x140047f18
cmp dword [0x1401934a0], 6
jl 0x140047f18
movdqa xmm4, xmmword [0x140179400]
lea rcx, [rax + 0x20]
movdqa xmm3, xmmword [0x1401793e0]
mov edx, r14d
and edx, 0xfffffff8
mov r9d, 4
movq xmm2, xmm4
movd xmm0, r8d
pshufd xmm0, xmm0, 0
lea eax, [r9 - 2]
paddd xmm0, xmm2
lea rcx, [rcx + 0x40]
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm6
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea eax, [r9 + 2]
movdqu xmmword [rcx - 0x60], xmm1
add r8d, 8
paddd xmm0, xmm2
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm6
movd xmm0, r9d
movdqu xmmword [rcx - 0x50], xmm1
add r9d, 8
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
movd xmm0, eax
paddq xmm1, xmm6
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movdqu xmmword [rcx - 0x40], xmm1
pmovsxdq xmm0, xmm0
vpmullq xmm1, xmm0, xmm3
paddq xmm1, xmm6
movdqu xmmword [rcx - 0x30], xmm1
cmp r8d, edx
jl 0x140047e71
movsxd rdx, r8d
cmp rdx, r14
jge 0x140047f3a
movsxd rax, r8d
inc r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
mov qword [r15 + rdx*8], rax
inc rdx
cmp rdx, r14
jl 0x140047f20
lea r9, [0x140047ca0]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call fcn.14010c610
test r14, r14
je 0x140047f9a
nop word [rax + rax]
mov rax, qword [r15 + rdi*8]
mov edx, dword [rax + 0x10]
test edx, edx
je 0x140047f92
mov ecx, dword [rax + 0x14]
lea ebx, [r13 - 1]
mov eax, r13d
add ebx, edx
neg eax
and rbx, rax
lea rdx, [rcx + rbp]
lea r8, [rbx + rcx]
mov rcx, rsi
add r8, rbp
call fcn.140047ba0
add r12, rbx
inc rdi
cmp rdi, r14
jl 0x140047f60
mov rcx, r15
call fcn.1400e9080
mov edx, dword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
lea rcx, [rdx + r12]
cmp rcx, rax
jae 0x140047fc9
mov r8, rbp
mov rcx, rsi
sub r8, rdx
lea rdx, [r12 + rbp]
add r8, rax
call fcn.140047ba0
mov rcx, qword [rsp + 0x80]
mov eax, 1
mov qword [rcx], rsi
jmp 0x140047ffb
mov r8d, eax
lea rdx, str.efi_image_parse
lea rcx, str._s:_Invalid_optional_header_magic__x
call fcn.14004f910
mov rcx, rsi
call fcn.1400e9080
xor eax, eax
mov rbx, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret