Function at 0x180501a30
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov r8, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov r9, r8
sub r9, rax
jbe 0x180501a5f
cmp r9, 4
jae 0x180501a90
mov eax, 4
xor edx, edx
jmp 0x180501a66
mov rdx, rax
shr rdx, 0x20
mov dword [rcx + 0x14], edx
mov qword [rcx + 0x18], r9
mov qword [rcx + 8], 0xc
mov dword [rcx + 0x10], eax
mov eax, 1
mov dword [rcx], eax
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r10, qword [rdx]
mov r9d, dword [r10 + rax]
lea r11, [rax + 4]
mov qword [rdx + 0x10], r11
mov rsi, r8
sub rsi, r11
jbe 0x180501ab7
cmp rsi, 4
jae 0x180501ad3
mov r11d, 4
xor eax, eax
jmp 0x180501abe
mov rax, r11
shr rax, 0x20
mov dword [rcx + 0x14], eax
mov qword [rcx + 0x18], rsi
mov qword [rcx + 8], 0xc
mov dword [rcx + 0x10], r11d
jmp 0x180501a78
mov r11d, dword [r10 + rax + 4]
lea rdi, [rax + 8]
mov qword [rdx + 0x10], rdi
mov esi, 5
cmp r11d, 0x130ba2d
jle 0x180501b10
cmp r11d, 0x130ba2e
je 0x180501b29
cmp r11d, 0x1310977
je 0x180501b30
cmp r11d, 0x1329141
jne 0x180501b39
mov esi, 4
jmp 0x180501b39
cmp r11d, 0xe33f3
je 0x180501b37
cmp r11d, 0x13091f3
jne 0x180501b39
mov esi, 1
jmp 0x180501b39
mov esi, 2
jmp 0x180501b39
mov esi, 3
jmp 0x180501b39
xor esi, esi
mov rbx, r8
sub rbx, rdi
jbe 0x180501b50
cmp rbx, 4
jae 0x180501b6e
mov edi, 4
xor eax, eax
jmp 0x180501b57
mov rax, rdi
shr rax, 0x20
mov dword [rcx + 0x14], eax
mov qword [rcx + 0x18], rbx
mov qword [rcx + 8], 0xc
mov dword [rcx + 0x10], edi
jmp 0x180501a78
mov edi, dword [r10 + rax + 8]
lea rbx, [rax + 0xc]
mov qword [rdx + 0x10], rbx
mov r14, r8
sub r14, rbx
jbe 0x180501b91
cmp r14, 2
jae 0x180501bb8
mov bx, 2
xor eax, eax
jmp 0x180501b98
mov rax, rbx
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r14
mov qword [rcx + 8], 0xc
mov word [rcx + 0x10], bx
jmp 0x180501a78
movzx ebx, word [r10 + rax + 0xc]
lea r14, [rax + 0xe]
mov qword [rdx + 0x10], r14
mov r15, r8
sub r15, r14
jbe 0x180501c1e
cmp r15, 2
jae 0x180501bdd
mov r14w, 2
xor eax, eax
jmp 0x180501c25
movzx ebp, word [r10 + rax + 0xe]
lea r14, [rax + 0x10]
mov qword [rdx + 0x10], r14
mov r15, r8
sub r15, r14
jbe 0x180501c1e
cmp r15, 2
jb 0x180501bd4
movzx r14d, word [r10 + rax + 0x10]
lea r15, [rax + 0x12]
mov qword [rdx + 0x10], r15
mov r12, r8
sub r12, r15
jbe 0x180501c46
cmp r12, 2
jae 0x180501c6e
mov r15w, 2
xor eax, eax
jmp 0x180501c4d
mov rax, r14
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r15
mov qword [rcx + 8], 0xc
mov word [rcx + 0x10], r14w
jmp 0x180501a78
mov rax, r15
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r12
mov qword [rcx + 8], 0xc
mov word [rcx + 0x10], r15w
jmp 0x180501a78
movzx r15d, word [r10 + rax + 0x12]
lea r12, [rax + 0x14]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501c93
cmp r13, 2
jae 0x180501cbb
mov r12w, 2
xor eax, eax
jmp 0x180501c9a
mov rax, r12
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r13
mov qword [rcx + 8], 0xc
mov word [rcx + 0x10], r12w
jmp 0x180501a78
movzx r12d, word [r10 + rax + 0x14]
mov word [rsp + 6], r12w
lea r13, [rax + 0x16]
mov qword [rdx + 0x10], r13
mov r12, r8
sub r12, r13
jbe 0x180501eea
cmp r12, 2
jae 0x180501ced
mov r13w, 2
xor eax, eax
jmp 0x180501ef1
movzx r12d, word [r10 + rax + 0x16]
mov word [rsp + 4], r12w
lea r12, [rax + 0x18]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x18]
mov dword [rsp + 0x2c], r12d
lea r12, [rax + 0x1c]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x1c]
mov dword [rsp + 0x28], r12d
lea r12, [rax + 0x20]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jae 0x180501d68
mov r12d, 4
xor eax, eax
jmp 0x180501e21
mov r12d, dword [r10 + rax + 0x20]
mov dword [rsp + 0x24], r12d
lea r12, [rax + 0x24]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x24]
mov dword [rsp + 0x20], r12d
lea r12, [rax + 0x28]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x28]
mov dword [rsp + 0x1c], r12d
lea r12, [rax + 0x2c]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x2c]
mov dword [rsp + 0x18], r12d
lea r12, [rax + 0x30]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jb 0x180501d5b
mov r12d, dword [r10 + rax + 0x30]
mov dword [rsp + 0x14], r12d
lea r12, [rax + 0x34]
mov qword [rdx + 0x10], r12
mov r13, r8
sub r13, r12
jbe 0x180501e1a
cmp r13, 4
jae 0x180501e39
xor eax, eax
mov r12d, 4
jmp 0x180501e21
mov rax, r12
shr rax, 0x20
mov dword [rcx + 0x14], eax
mov qword [rcx + 0x18], r13
mov qword [rcx + 8], 0xc
mov dword [rcx + 0x10], r12d
jmp 0x180501a78
mov r12d, dword [r10 + rax + 0x34]
mov dword [rsp + 0x10], r12d
lea r12, [rax + 0x38]
mov qword [rsp + 8], r12
mov qword [rdx + 0x10], r12
mov r12, r8
sub r12, qword [rsp + 8]
jbe 0x180501e6d
cmp r12, 2
jae 0x180501e9b
mov ax, 2
mov qword [rsp + 8], rax
xor eax, eax
jmp 0x180501e76
mov rax, qword [rsp + 8]
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r12
mov qword [rcx + 8], 0xc
mov rax, qword [rsp + 8]
mov word [rcx + 0x10], ax
jmp 0x180501a78
movzx r12d, word [r10 + rax + 0x38]
mov word [rsp + 8], r12w
lea r13, [rax + 0x3a]
mov qword [rdx + 0x10], r13
mov r12, r8
sub r12, r13
jbe 0x180501eea
cmp r12, 2
jb 0x180501ce1
movzx r12d, word [r10 + rax + 0x3a]
mov word [rsp + 2], r12w
lea r12, [rax + 0x3c]
mov qword [rdx + 0x10], r12
sub r8, r12
jbe 0x180501f12
cmp r8, 4
jae 0x180501f25
xor eax, eax
mov r12d, 4
jmp 0x180501f19
mov rax, r13
shr rax, 0x10
mov dword [rcx + 0x12], eax
shr rax, 0x20
mov word [rcx + 0x16], ax
mov qword [rcx + 0x18], r12
mov qword [rcx + 8], 0xc
mov word [rcx + 0x10], r13w
jmp 0x180501a78
mov rax, r12
shr rax, 0x20
mov dword [rcx + 0x14], eax
mov qword [rcx + 0x18], r8
jmp 0x180501e28
mov r8d, dword [r10 + rax + 0x3c]
add rax, 0x40
mov qword [rdx + 0x10], rax
cmp r9d, 0xffffffff
je 0x180501f58
mov qword [rcx + 8], 0xd
lea rax, str.ancient_DBI_headerDbgDataHdr_n
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0x12
jmp 0x180501a78
mov dword [rcx + 4], esi
mov dword [rcx + 8], r11d
mov dword [rcx + 0xc], 0xffffffff
mov dword [rcx + 0x10], edi
mov eax, dword [rsp + 0x2c]
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0x28]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0x20]
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0x1c]
mov dword [rcx + 0x24], eax
mov eax, dword [rsp + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x14]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x10]
mov dword [rcx + 0x30], eax
mov dword [rcx + 0x34], r8d
mov word [rcx + 0x38], bx
mov word [rcx + 0x3a], bp
mov word [rcx + 0x3c], r14w
mov word [rcx + 0x3e], r15w
movzx eax, word [rsp + 6]
mov word [rcx + 0x40], ax
movzx eax, word [rsp + 4]
mov word [rcx + 0x42], ax
movzx eax, word [rsp + 8]
mov word [rcx + 0x44], ax
movzx eax, word [rsp + 2]
mov word [rcx + 0x46], ax
xor eax, eax
jmp 0x180501a7d