Function at 0x18008bc80
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x5f0], rbx
mov rax, qword [0x18013e1e0]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov r13, rdx
mov rsi, rcx
test rdx, rdx
jne 0x18008bcc8
xor al, al
jmp 0x18008c49b
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov r12d, eax
movsxd rbx, dword [rsi + 0x16d]
mov r10, qword [r13]
mov r9d, 1
lea r8d, [r9 + 5]
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetDim]
movzx edx, word [rsp + 0x32]
mov rcx, rsi
call fcn.180082fe0
mov word [rsp + 0x32], ax
movzx edx, word [rsp + 0x34]
mov rcx, rsi
call fcn.180082fe0
mov word [rsp + 0x34], ax
cmp word [rsp + 0x30], 0
jne 0x18008c499
movzx ecx, word [rsp + 0x32]
cmp cx, 1
je 0x18008bd3a
cmp cx, 2
jne 0x18008c499
movzx ecx, ax
mov dword [rsi + 0x171], ecx
movzx ecx, ax
shl rcx, 4
call fcn.1800c171c
mov r15, rax
mov qword [rsp + 0x38], rax
xor eax, eax
mov ebp, eax
movzx ecx, word [rsp + 0x34]
cmp ax, cx
jae 0x18008bdda
lea rdi, [r15 + 6]
nop dword [rax]
mov r10, qword [r13]
movsxd rdx, ebp
shl rdx, 4
add rdx, r15
mov r9d, 1
lea r8d, [r9 + 0xf]
mov rcx, r13
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetDim]
movzx edx, word [rdi - 2]
mov rcx, rsi
call fcn.180082fe0
mov word [rdi - 2], ax
movzx edx, word [rdi]
mov rcx, rsi
call fcn.180082fe0
mov word [rdi], ax
mov edx, dword [rdi + 2]
mov rcx, rsi
call fcn.180083010
mov dword [rdi + 2], eax
mov edx, dword [rdi + 6]
mov rcx, rsi
call fcn.180083010
mov dword [rdi + 6], eax
inc ebp
add rdi, 0x10
movzx ecx, word [rsp + 0x34]
mov eax, ecx
cmp ebp, ecx
jl 0x18008bd70
test ebx, ebx
js 0x18008c491
movzx eax, cx
cmp ebx, eax
jge 0x18008c491
cmp dword [rsi + 0x15c], 0xffffffff
jne 0x18008bed1
mov rcx, rbx
add rcx, rcx
movzx eax, byte [r15 + rcx*8]
mov dword [rsi + 0x14], eax
movzx edx, byte [r15 + rcx*8 + 1]
mov dword [rsi + 0x18], edx
test eax, eax
jne 0x18008bebb
test edx, edx
jne 0x18008bebb
mov r9, qword [r13]
mov eax, dword [r15 + rcx*8 + 0xc]
lea edx, [r12 + rax]
xor r8d, r8d
mov rcx, r13
call qword [r9 + 0x20]
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.180081f80
nop
or edx, 0xffffffff
lea rcx, [rsp + 0x90]
call fcn.180082f60
mov r8d, 4
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.1800831f0
test al, al
je 0x18008be92
mov r8b, 1
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1800822c0
movzx r11d, word [rsp + 0x34]
mov dword [rsi + 0x171], r11d
lea rax, vtable.CxImage.0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x90]
call fcn.1800820a0
lea rcx, [rsp + 0x90]
call fcn.180081fb0
mov rcx, r15
call fcn.1800c17d4
mov dword [rsi + 0x54], 5
mov al, 1
jmp 0x18008c49b
add rbx, rbx
mov r9, qword [r13]
mov eax, dword [r15 + rbx*8 + 0xc]
lea edx, [r12 + rax]
xor r8d, r8d
mov rcx, r13
call qword [r9 + 0x20]
cmp byte [r15 + rbx*8], 0
jne 0x18008bf88
cmp byte [r15 + rbx*8 + 1], 0
jne 0x18008bf88
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.180081f80
nop
mov r8d, 4
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.1800831f0
test al, al
je 0x18008bf4c
mov r8b, 1
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.1800822c0
movzx r11d, word [rsp + 0x34]
mov dword [rsi + 0x171], r11d
mov edx, 5
mov rcx, rsi
call fcn.180082ec0
nop
lea rax, vtable.CxImage.0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x90]
call fcn.1800820a0
lea rcx, [rsp + 0x90]
call fcn.180081fb0
jmp 0x18008c485
mov rax, qword [r13]
mov r9d, 1
lea r8d, [r9 + 0x27]
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180083050
movzx edi, word [rsp + 0x6e]
mov dword [rsp + 0x40], edi
movzx r8d, byte [r15 + rbx*8 + 1]
movzx edx, byte [r15 + rbx*8]
mov dword [rsp + 0x20], 5
mov r9d, edi
mov rcx, rsi
call fcn.180082780
mov r11d, dword [rsp + 0x80]
test r11d, r11d
je 0x18008c003
mov rax, qword [r13]
mov r8, r11
shl r8, 2
mov r9d, 1
lea rdx, [rsp + 0x90]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x18008c023
mov rax, qword [r13]
mov r8d, dword [rsi + 0x30]
shl r8, 2
mov r9d, 1
lea rdx, [rsp + 0x90]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8d, dword [rsi + 0x30]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.180085710
cmp edi, 0x18
jg 0x18008c059
mov rax, qword [r13]
mov r8d, dword [rsi + 0x24]
mov r9d, 1
mov rdx, qword [rsi + 0x3c]
mov rcx, r13
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x18008c11a
mov eax, dword [rsi + 0x18]
imul eax, dword [rsi + 0x14]
shl eax, 2
movsxd rcx, eax
call fcn.1800c171c
mov r14, rax
mov rdi, rax
mov r10, qword [r13]
mov ecx, dword [rsi + 0x18]
imul ecx, dword [rsi + 0x14]
shl ecx, 2
movsxd r8, ecx
mov r9d, 1
mov rdx, rax
mov rcx, r13
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rsi
call fcn.180087d50
test al, al
jne 0x18008c0a6
mov rcx, rsi
call fcn.180087d60
xor r12d, r12d
cmp dword [rsi + 0x18], r12d
jle 0x18008c112
xor r15d, r15d
mov edx, r12d
mov rcx, rsi
call fcn.180082170
mov rbx, rax
mov ebp, r15d
cmp dword [rsi + 0x14], r15d
jle 0x18008c104
nop dword [rax]
movzx ecx, byte [rdi]
mov byte [rbx], cl
movzx ecx, byte [rdi + 1]
mov byte [rbx + 1], cl
movzx ecx, byte [rdi + 2]
mov byte [rbx + 2], cl
add rbx, 3
movzx r9d, byte [rdi + 3]
mov r8d, r12d
mov edx, ebp
mov rcx, rsi
call fcn.180087fc0
add rdi, 4
inc ebp
cmp ebp, dword [rsi + 0x14]
jl 0x18008c0d0
inc r12d
cmp r12d, dword [rsi + 0x18]
jl 0x18008c0b2
mov r15, qword [rsp + 0x38]
mov rcx, r14
call fcn.1800c17d4
mov eax, dword [rsi + 0x14]
add eax, 0x1f
cdq
and edx, 0x1f
lea ebp, [rdx + rax]
sar ebp, 5
shl ebp, 2
mov ecx, dword [rsi + 0x18]
imul ecx, ebp
movsxd rbx, ecx
mov rcx, rbx
call fcn.1800c171c
mov r14, rax
mov r10, qword [r13]
mov r9d, 1
mov r8, rbx
mov rdx, rax
mov rcx, r13
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
je 0x18008c47d
xor ecx, ecx
test rbx, rbx
jle 0x18008c44f
nop dword [rax]
cmp byte [rcx + r14], 0xff
jne 0x18008c184
inc rcx
cmp rcx, rbx
jl 0x18008c170
jmp 0x18008c44f
xor r12b, r12b
mov rcx, rsi
call fcn.180087d50
test al, al
jne 0x18008c19d
mov rcx, rsi
call fcn.180087d60
jmp 0x18008c1a0
mov r12b, 1
xor ebx, ebx
mov edi, ebx
movsxd r15, ebp
mov qword [rsp + 0x48], r15
cmp dword [rsi + 0x18], ebx
jle 0x18008c213
mov rbp, rbx
cmp dword [rsi + 0x14], 0
jle 0x18008c204
nop word [rax + rax]
mov eax, ebx
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
mov ecx, 7
sub cl, al
movsxd rax, ebx
sar rax, 3
add rax, rbp
movzx edx, byte [rax + r14]
shr dl, cl
test dl, 1
je 0x18008c1fd
xor r9d, r9d
mov r8d, edi
mov edx, ebx
mov rcx, rsi
call fcn.180087fc0
mov r12b, 1
inc ebx
cmp ebx, dword [rsi + 0x14]
jl 0x18008c1c0
inc edi
add rbp, r15
cmp edi, dword [rsi + 0x18]
mov ebx, 0
jl 0x18008c1b4
test r12b, r12b
jne 0x18008c220
mov rcx, rsi
call fcn.180087dc0
mov r12d, ebx
mov dword [rsp + 0x44], ebx
mov r13d, ebx
cmp dword [rsi + 0x18], 0
jle 0x18008c31f
mov r15, rbx
mov edi, dword [rsp + 0x44]
mov rax, qword [rsp + 0x48]
mov ebp, ebx
cmp dword [rsi + 0x14], 0
jle 0x18008c2cc
nop dword [rax]
mov eax, ebp
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
mov ecx, 7
sub cl, al
movsxd rax, ebp
sar rax, 3
add rax, r15
movzx edx, byte [rax + r14]
shr dl, cl
test dl, 1
je 0x18008c2be
mov byte [rsp + 0x20], 0
mov r9d, r13d
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1800850b0
mov ebx, dword [rax]
test r12d, r12d
jne 0x18008c2b7
mov r8d, r13d
mov edx, ebp
mov rcx, rsi
call fcn.180084f00
movzx eax, al
mov dword [rsp + 0x44], eax
mov r12d, 1
mov edi, ebx
jmp 0x18008c2be
cmp ebx, edi
je 0x18008c2be
inc r12d
inc ebp
cmp ebp, dword [rsi + 0x14]
jl 0x18008c250
mov rax, qword [rsp + 0x48]
xor ebx, ebx
inc r13d
add r15, rax
cmp r13d, dword [rsi + 0x18]
jl 0x18008c240
cmp r12d, 1
jne 0x18008c314
mov ebx, dword [rsp + 0x40]
cmp ebx, 8
jg 0x18008c46a
mov edx, edi
mov rcx, rsi
call fcn.180082d50
mov edx, dword [rsp + 0x44]
mov rcx, rsi
call fcn.180082d40
mov rcx, rsi
call fcn.180087dc0
mov r15, qword [rsp + 0x48]
jmp 0x18008c323
mov r15, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x40]
jmp 0x18008c323
mov ebx, dword [rsp + 0x40]
cmp ebx, 8
jg 0x18008c471
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x490]
call fcn.1800c31a0
xor ecx, ecx
mov edi, ecx
cmp dword [rsi + 0x18], ecx
jle 0x18008c38a
nop word [rax + rax]
mov ebx, ecx
cmp dword [rsi + 0x14], 0
jle 0x18008c383
nop dword [rax + rax]
mov r8d, edi
mov edx, ebx
mov rcx, rsi
call fcn.180085000
movzx r11d, al
mov byte [rsp + r11 + 0x490], 1
inc ebx
cmp ebx, dword [rsi + 0x14]
jl 0x18008c360
xor ecx, ecx
inc edi
cmp edi, dword [rsi + 0x18]
jl 0x18008c350
mov edi, dword [rsi + 0x30]
sub edi, 1
movsxd rax, edi
js 0x18008c463
nop dword [rax]
cmp byte [rsp + rax + 0x490], 0
je 0x18008c3bc
dec edi
sub rax, 1
jns 0x18008c3a0
mov r15, qword [rsp + 0x38]
jmp 0x18008c47d
test edi, edi
js 0x18008c478
xor r8b, r8b
mov ebp, ecx
cmp dword [rsi + 0x18], 0
jle 0x18008c440
mov r12, rcx
mov ebx, ecx
cmp dword [rsi + 0x14], 0
jle 0x18008c427
nop word [rax + rax]
mov eax, ebx
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
mov ecx, 7
sub cl, al
movsxd rax, ebx
sar rax, 3
add rax, r12
movzx edx, byte [rax + r14]
shr dl, cl
test dl, 1
je 0x18008c41e
movzx r9d, dil
mov r8d, ebp
mov edx, ebx
mov rcx, rsi
call fcn.180085380
mov r8b, 1
inc ebx
cmp ebx, dword [rsi + 0x14]
jl 0x18008c3e0
xor ecx, ecx
inc ebp
add r12, r15
cmp ebp, dword [rsi + 0x18]
jl 0x18008c3d2
test r8b, r8b
je 0x18008c440
mov edx, edi
mov rcx, rsi
call fcn.180082d40
mov rcx, rsi
call fcn.180087dc0
mov r15, qword [rsp + 0x38]
jmp 0x18008c47d
xor edx, edx
mov rcx, rsi
call fcn.180082d40
mov rcx, rsi
call fcn.18008dad0
jmp 0x18008c47d
mov r15, qword [rsp + 0x38]
jmp 0x18008c47d
mov r15, qword [rsp + 0x38]
jmp 0x18008c47d
mov r15, qword [rsp + 0x38]
jmp 0x18008c47d
mov r15, qword [rsp + 0x38]
mov rcx, r14
call fcn.1800c17d4
mov rcx, r15
call fcn.1800c17d4
mov al, 1
jmp 0x18008c49b
mov rcx, r15
call fcn.1800c17d4
xor al, al
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1800bf8d0
mov rbx, qword [rsp + 0x5f0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret