Function at 0x164c80590
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x40]
movsxd r11, dword [rsp + 0x38]
movzx eax, word [rdx]
movzx ecx, word [rdx + 2]
add eax, eax
add ecx, eax
mov word [rsp + 2], ax
movzx eax, word [rdx + 4]
add ecx, ecx
add eax, ecx
mov word [rsp + 4], cx
movzx ecx, word [rdx + 6]
add eax, eax
add ecx, eax
mov word [rsp + 6], ax
movzx eax, word [rdx + 8]
add ecx, ecx
add eax, ecx
mov word [rsp + 8], cx
movzx ecx, word [rdx + 0xa]
add eax, eax
add ecx, eax
mov word [rsp + 0xa], ax
movzx eax, word [rdx + 0xc]
add ecx, ecx
add eax, ecx
mov word [rsp + 0xc], cx
movzx ecx, word [rdx + 0xe]
add eax, eax
add ecx, eax
mov word [rsp + 0xe], ax
movzx eax, word [rdx + 0x10]
add ecx, ecx
add eax, ecx
mov word [rsp + 0x10], cx
movzx ecx, word [rdx + 0x12]
add eax, eax
add ecx, eax
mov word [rsp + 0x12], ax
movzx eax, word [rdx + 0x14]
add ecx, ecx
add eax, ecx
mov word [rsp + 0x14], cx
movzx ecx, word [rdx + 0x16]
add eax, eax
add ecx, eax
mov word [rsp + 0x16], ax
movzx eax, word [rdx + 0x18]
add ecx, ecx
add eax, ecx
mov word [rsp + 0x18], cx
movzx ecx, word [rdx + 0x1a]
add eax, eax
add ecx, eax
mov word [rsp + 0x1a], ax
movzx eax, word [rdx + 0x1c]
add ecx, ecx
add eax, ecx
mov word [rsp + 0x1c], cx
add eax, eax
mov word [rsp + 0x1e], ax
test r11, r11
js 0x164c806c2
mov r10, qword [rsp + 0x30]
xor r9d, r9d
nop dword [rax]
movzx edx, word [r10 + r9*4 + 2]
test edx, edx
je 0x164c806ba
lea rcx, [rsp]
movzx r8d, word [rcx + rdx*2]
lea rcx, [rcx + rdx*2]
lea eax, [r8 + 1]
mov word [rcx], ax
xor eax, eax
mov ecx, r8d
dec edx
and ecx, 1
shr r8d, 1
or eax, ecx
add eax, eax
test edx, edx
jg 0x164c806a0
shr eax, 1
mov word [r10 + r9*4], ax
inc r9
cmp r9, r11
jle 0x164c80680
add rsp, 0x28
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, qword [rsp + 0x58]
xor r11d, r11d
mov rdi, qword [rsp + 0x50]
mov esi, 0xffffffff
mov r8d, r11d
mov rax, qword [r15 + 0x10]
mov r14, qword [r15]
movsxd rbp, dword [rax + 0x14]
mov r9, qword [rax]
mov dword [rdi + 0x149c], r11d
mov dword [rdi + 0x14a0], 0x23d
test ebp, ebp
jle 0x164c8076d
mov eax, r11d
nop dword [rax + rax]
cmp word [r14 + rax*4], r11w
je 0x164c8075c
movsxd rdx, dword [rdi + 0x149c]
mov esi, r8d
lea ecx, [rdx + 1]
mov dword [rdi + 0x149c], ecx
mov dword [rdi + rdx*4 + 0xbac], r8d
mov byte [rax + rdi + 0x14a4], r11b
jmp 0x164c80762
mov word [r14 + rax*4 + 2], r11w
inc r8d
inc rax
cmp rax, rbp
jl 0x164c80730
mov edx, dword [rdi + 0x149c]
mov r12d, 1
cmp edx, 2
jge 0x164c807d9
nop
cmp esi, 2
lea eax, [rdx + 1]
mov dword [rdi + 0x149c], eax
lea ecx, [rsi + 1]
movsxd rax, edx
mov r8d, ecx
cmovge ecx, r11d
cmovge r8d, esi
mov dword [rdi + rax*4 + 0xbac], ecx
movsxd rax, ecx
mov word [r14 + rax*4], r12w
mov byte [rax + rdi + 0x14a4], r11b
dec dword [rdi + 0x16fc]
test r9, r9
je 0x164c807cb
movzx eax, word [r9 + rax*4 + 2]
sub dword [rdi + 0x1700], eax
mov edx, dword [rdi + 0x149c]
mov esi, r8d
cmp edx, 2
jl 0x164c80780
mov dword [r15 + 8], esi
mov eax, dword [rdi + 0x149c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp eax, r12d
jl 0x164c80806
mov r8d, r9d
mov rdx, r14
mov rcx, rdi
call fcn.164c80260
dec r9d
cmp r9d, r12d
jge 0x164c807f0
movsxd rdx, dword [rdi + 0x149c]
mov r8d, r12d
movsxd rbx, dword [rdi + 0xbac]
mov ecx, dword [rdi + rdx*4 + 0xba8]
lea eax, [rdx - 1]
mov dword [rdi + 0xbac], ecx
mov rdx, r14
mov rcx, rdi
mov dword [rdi + 0x149c], eax
call fcn.164c80260
movsxd rcx, dword [rdi + 0x14a0]
movsxd r9, dword [rdi + 0xbac]
mov r8, r9
lea eax, [rcx - 1]
mov dword [rdi + 0x14a0], eax
mov dword [rdi + rcx*4 + 0xba4], ebx
movsxd rcx, dword [rdi + 0x14a0]
lea eax, [rcx - 1]
mov dword [rdi + 0x14a0], eax
mov dword [rdi + rcx*4 + 0xba4], r9d
mov rcx, rdi
movzx eax, word [r14 + rbx*4]
add ax, word [r14 + r8*4]
movsxd r9, ebp
mov word [r14 + r9*4], ax
movzx edx, byte [rbx + rdi + 0x14a4]
movzx eax, byte [r8 + rdi + 0x14a4]
cmp dl, al
cmovb edx, eax
inc dl
mov byte [r9 + rdi + 0x14a4], dl
mov rdx, r14
mov word [r14 + r8*4 + 2], bp
mov r8d, r12d
mov word [r14 + rbx*4 + 2], bp
mov dword [rdi + 0xbac], ebp
inc ebp
call fcn.164c80260
cmp dword [rdi + 0x149c], 2
jge 0x164c80806
movsxd r8, dword [rdi + 0x14a0]
mov rdx, r15
lea eax, [r8 - 1]
mov dword [rdi + 0x14a0], eax
mov eax, dword [rdi + 0xbac]
mov dword [rdi + r8*4 + 0xba4], eax
call fcn.164c80360
lea r8, [rdi + 0xb88]
mov edx, esi
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
jmp 0x164c80590