Function at 0x18005cea0
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx]
mov r15, rcx
movzx ebx, byte [rdx + 0x1c]
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
not ebx
and ebx, 1
mov r12d, dword [rax]
mov eax, dword [rcx + 0x54]
lea ebp, [r12 + rbx]
add ebp, dword [rsp + 0xb0]
inc eax
cmp dword [rsp + 0xb8], 0
mov dword [rcx + 0x54], eax
mov ecx, dword [rdx + 8]
mov dword [rsp + 0x90], ecx
mov dword [rsp + 0x98], eax
je 0x18005cf0c
mov r14d, r9d
sub r14d, r12d
sub r14d, ebx
jmp 0x18005cf16
lea r14d, [rax + 1]
add eax, ebp
mov dword [r15 + 0x54], eax
mov rdx, qword [rdx]
mov r9b, 1
mov r8d, r14d
mov rcx, r15
call fcn.180045a38
lea r13d, [r12 + r14]
test ebx, ebx
je 0x18005cf48
and dword [rsp + 0x20], 0
mov r9d, r13d
mov r8d, dword [rsi + 0xc]
mov edx, 0x49
mov rcx, rdi
call fcn.180033d78
cmp dword [rsp + 0xb8], 0
jne 0x18005cf6d
mov r9d, dword [rsp + 0xb0]
lea r8d, [rbx + r13]
mov edx, dword [rsp + 0xa8]
mov rcx, r15
call fcn.180044940
mov eax, dword [rsp + 0x90]
mov edx, 0x31
sub ebp, eax
mov rcx, rdi
mov r9d, ebp
lea r8d, [r14 + rax]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call fcn.180033d78
mov ebp, dword [rsp + 0x90]
test ebp, ebp
jle 0x18005d13e
mov ecx, dword [r15 + 0x54]
lea eax, [rcx + 1]
add ecx, dword [rsi + 8]
mov dword [r15 + 0x54], ecx
sub r12d, dword [rsi + 8]
add r12d, ebx
mov dword [rsp + 0xb8], eax
test ebx, ebx
jne 0x18005cfc8
mov r13d, dword [rsi + 0xc]
neg ebx
mov r8d, r13d
mov rcx, rdi
sbb edx, edx
and dword [rsp + 0x20], 0
and edx, 0xfffffff3
xor r9d, r9d
add edx, 0x3b
call fcn.180033d78
mov ecx, dword [rsi + 8]
mov r9d, r14d
mov r13d, dword [rsp + 0xb8]
mov edx, 0x2a
mov dword [rsp + 0x20], ecx
mov r8d, r13d
mov rcx, rdi
mov dword [rsp + 0x90], eax
call fcn.180033d78
mov edx, dword [rsi + 0x18]
mov rcx, rdi
call fcn.180034438
mov rcx, qword [r15]
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x51], 0
jne 0x18005d24a
mov rbx, qword [rax + 0x10]
xor edx, edx
mov ecx, dword [rsp + 0xb0]
add ecx, r12d
mov dword [rax + 8], ecx
movzx r8d, word [rbx + 6]
mov rcx, qword [rbx + 0x18]
call fcn.1800ab840
mov r9d, 0xfffffffa
mov r8, rbx
or edx, 0xffffffff
mov rcx, rdi
call fcn.18003432c
movzx r9d, word [rbx + 8]
mov r8d, ebp
mov rdx, qword [rsi]
dec r9d
mov rcx, r15
call fcn.18005dc7c
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov qword [rcx + 0x10], rax
lea edx, [r9 + 0x2b]
mov ebx, dword [rdi + 0x3c]
mov rcx, rdi
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], r8d
call fcn.180033d78
mov rcx, rdi
call fcn.180033eb4
mov dword [rsi + 0x14], eax
xor r12d, r12d
inc dword [r15 + 0x54]
mov rcx, rdi
mov r8d, dword [r15 + 0x54]
mov r9d, dword [rsi + 0x14]
lea edx, [r12 + 0x11]
mov dword [rsi + 0x10], r8d
mov dword [rsp + 0x20], r12d
call fcn.180033d78
mov r8d, dword [rsi + 0xc]
lea edx, [r12 + 0x77]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call fcn.180033d78
mov eax, dword [rsp + 0x90]
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x18005d100
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov r8d, r13d
mov edx, r14d
mov dword [rax + 0x64], ecx
mov rcx, r15
mov r9d, dword [rsi + 8]
call fcn.180044940
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x18005d132
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
jmp 0x18005d141
xor r12d, r12d
mov dl, byte [rsi + 0x1c]
mov rcx, rdi
mov r9d, dword [rsp + 0x98]
not dl
mov r8d, dword [rsi + 0xc]
and edx, 1
add edx, 0x6d
mov dword [rsp + 0x20], r12d
call fcn.180033d78
mov rcx, qword [rsp + 0xa0]
cmp dword [rcx + 0xc], r12d
je 0x18005d24a
mov eax, dword [rcx + 0x10]
mov edx, 0x8b
test eax, eax
mov dword [rsp + 0x20], r12d
lea ebx, [rax + 1]
cmove ebx, dword [rcx + 0xc]
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call fcn.180033d78
or r9d, 0xffffffff
mov ebp, eax
mov r8d, ebx
mov dword [rsp + 0x20], r12d
mov rcx, rdi
lea edx, [r9 + 0x26]
call fcn.180033d78
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.180033d78
mov r8d, dword [rdi + 0x3c]
mov ebx, eax
cmp r8d, ebp
jbe 0x18005d1ef
mov rcx, qword [rdi + 8]
lea rdx, [rbp*2]
add rdx, rbp
mov dword [rcx + rdx*8 + 8], r8d
mov r8d, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [r8 - 1]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov dword [rax + 0x64], ecx
mov rcx, rdi
mov r8d, dword [rsi + 0xc]
lea edx, [r9 + 0x69]
call fcn.180033d78
mov r8d, dword [rsi + 0xc]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea edx, [r9 + 0x5f]
call fcn.180033d78
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x18005d240
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret