Function at 0x140047680
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 edx, 1
mov dword [rsp + 0x70], edi
movzx r14d, word [rbx + 6]
mov ecx, r14d
shl rcx, 4
add rcx, 0x48
call fcn.1400c4f6c
mov rsi, rax
test rax, rax
je 0x1400479c1
lea eax, [r14 + 4]
mov ecx, 0x20b
mov dword [rsi], eax
movzx eax, word [rbx + 0x18]
cmp ax, cx
jne 0x140047749
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.140047560
cmp dword [rbx + 0x84], 4
lea rdx, [rbx + 0x5c]
lea r14, [rbx + 0x54]
mov rcx, rsi
ja 0x140047720
mov r8d, dword [r14]
add r8, rbp
call fcn.140047560
jmp 0x1400477af
lea r8, [rbx + 0xa8]
call fcn.140047560
mov r8d, dword [r14]
lea rdx, [rbx + 0xb0]
add r8, rbp
mov rcx, rsi
call fcn.140047560
mov eax, dword [rbx + 0xac]
jmp 0x1400477ab
mov ecx, 0x10b
cmp ax, cx
jne 0x1400479ab
lea r8, [rbx + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.140047560
cmp dword [rbx + 0x74], 4
lea rdx, [rbx + 0x5c]
lea r14, [rbx + 0x54]
mov rcx, rsi
ja 0x140047784
mov r8d, dword [r14]
add r8, rbp
call fcn.140047560
jmp 0x1400477af
lea r8, [rbx + 0x98]
call fcn.140047560
mov r8d, dword [r14]
lea rdx, [rbx + 0xa0]
add r8, rbp
mov rcx, rsi
call fcn.140047560
mov eax, dword [rbx + 0x9c]
mov dword [rsp + 0x70], eax
mov r13d, dword [rbx + 0x3c]
mov ecx, 8
movzx eax, word [rbx + 0x14]
mov r12d, dword [r14]
movzx r14d, word [rbx + 6]
add rbx, 0x18
add rbx, rax
mov edx, r14d
movq xmm6, rbx
punpcklqdq xmm6, xmm6
call fcn.1400c4f6c
mov r15, rax
test rax, rax
jne 0x1400477fc
lea rdx, str.efi_image_parse
lea rcx, str._s:_Out_of_memory
call fcn.14004f2f0
jmp 0x1400479c1
mov r8d, edi
cmp r14d, 8
jb 0x1400478e7
cmp dword [0x1401934a8], 6
jl 0x1400478e7
movdqa xmm4, xmmword [0x140179480]
lea rcx, [rax + 0x20]
movdqa xmm3, xmmword [0x140179460]
mov edx, r14d
and edx, 0xfffffff8
mov r9d, 4
nop word [rax + rax]
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 0x140047840
movsxd rdx, r8d
cmp rdx, r14
jge 0x14004790a
nop
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 0x1400478f0
lea r9, [0x140047660]
mov r8d, 8
mov rdx, r14
mov rcx, r15
call fcn.14010c200
test r14, r14
je 0x14004796a
nop word [rax + rax]
mov rax, qword [r15 + rdi*8]
mov edx, dword [rax + 0x10]
test edx, edx
je 0x140047962
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.140047560
add r12, rbx
inc rdi
cmp rdi, r14
jl 0x140047930
mov rcx, r15
call fcn.1400e8c70
mov edx, dword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
lea rcx, [rdx + r12]
cmp rcx, rax
jae 0x140047999
mov r8, rbp
mov rcx, rsi
sub r8, rdx
lea rdx, [r12 + rbp]
add r8, rax
call fcn.140047560
mov rcx, qword [rsp + 0x80]
mov eax, 1
mov qword [rcx], rsi
jmp 0x1400479cb
mov r8d, eax
lea rdx, str.efi_image_parse
lea rcx, str._s:_Invalid_optional_header_magic__x
call fcn.14004f2f0
mov rcx, rsi
call fcn.1400e8c70
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