Function at 0x140139e40
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
xor r11d, r11d
mov r14, qword [rdx]
mov esi, 0xffffffff
mov r15, rdx
mov rbx, rcx
mov r8d, r11d
mov edx, r11d
movsxd rbp, dword [rax + 0x14]
mov r9, qword [rax]
lea r12d, [rsi + 2]
mov dword [rcx + 0x149c], r11d
mov dword [rcx + 0x14a0], 0x23d
test ebp, ebp
jle 0x140139c80
nop dword [rax]
cmp word [r14 + rdx*4], r11w
je 0x140139c5c
movsxd rcx, dword [rbx + 0x149c]
mov esi, r8d
lea eax, [rcx + 1]
mov dword [rbx + 0x149c], eax
mov dword [rbx + rcx*4 + 0xbac], r8d
mov byte [rdx + rbx + 0x14a4], r11b
jmp 0x140139c62
mov word [r14 + rdx*4 + 2], r11w
inc r8d
inc rdx
cmp rdx, rbp
jl 0x140139c30
mov edx, dword [rbx + 0x149c]
cmp edx, 2
jge 0x140139cd7
nop dword [rax + rax]
cmp esi, 2
lea eax, [rsi + 1]
lea ecx, [rsi + 1]
cmovge eax, esi
cmovge ecx, r11d
mov esi, eax
lea eax, [rdx + 1]
mov dword [rbx + 0x149c], eax
movsxd rax, edx
mov dword [rbx + rax*4 + 0xbac], ecx
movsxd rax, ecx
mov word [r14 + rax*4], r12w
mov byte [rax + rbx + 0x14a4], r11b
dec dword [rbx + 0x1700]
test r9, r9
je 0x140139ccc
movzx eax, word [r9 + rax*4 + 2]
sub dword [rbx + 0x1704], eax
mov edx, dword [rbx + 0x149c]
cmp edx, 2
jl 0x140139c80
mov dword [r15 + 8], esi
mov r8d, dword [rbx + 0x149c]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp eax, r12d
jl 0x140139d10
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call fcn.14013a1d0
dec edi
cmp edi, r12d
jge 0x140139cf1
mov r8d, dword [rbx + 0x149c]
nop dword [rax]
movsxd rdi, dword [rbx + 0xbac]
mov rdx, r14
movsxd rax, r8d
mov ecx, dword [rbx + rax*4 + 0xba8]
lea eax, [r8 - 1]
mov dword [rbx + 0x149c], eax
mov r8d, r12d
mov dword [rbx + 0xbac], ecx
mov rcx, rbx
call fcn.14013a1d0
movsxd rdx, dword [rbx + 0xbac]
movsxd rcx, dword [rbx + 0x14a0]
mov r8, rdx
movsxd r9, ebp
lea eax, [rcx - 1]
mov dword [rbx + 0x14a0], eax
mov dword [rbx + rcx*4 + 0xba4], edi
movsxd rcx, dword [rbx + 0x14a0]
lea eax, [rcx - 1]
mov dword [rbx + 0x14a0], eax
mov dword [rbx + rcx*4 + 0xba4], edx
mov rcx, rbx
movzx eax, word [r14 + rdx*4]
add ax, word [r14 + rdi*4]
mov word [r14 + r9*4], ax
movzx eax, byte [r8 + rbx + 0x14a4]
movzx edx, byte [rdi + rbx + 0x14a4]
cmp dl, al
cmovb edx, eax
mov eax, ebp
inc dl
mov byte [r9 + rbx + 0x14a4], dl
mov rdx, r14
mov word [r14 + r8*4 + 2], bp
mov r8d, r12d
mov word [r14 + rdi*4 + 2], bp
inc ebp
mov dword [rbx + 0xbac], eax
call fcn.14013a1d0
mov r8d, dword [rbx + 0x149c]
cmp r8d, 2
jge 0x140139d10
movsxd r8, dword [rbx + 0x14a0]
mov rdx, r15
lea eax, [r8 - 1]
mov dword [rbx + 0x14a0], eax
mov eax, dword [rbx + 0xbac]
mov dword [rbx + r8*4 + 0xba4], eax
call fcn.140139fb0
lea r8, [rbx + 0xb88]
mov edx, esi
mov rcx, r14
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp 0x140139e40
sub rsp, 0x38
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x20], rax
movzx eax, word [r8]
mov r10, rcx
movzx r9d, word [r8 + 2]
add ax, ax
movzx ecx, word [r8 + 6]
add r9w, ax
mov word [rsp + 2], ax
add r9w, r9w
movzx eax, word [r8 + 4]
add ax, r9w
mov word [rsp + 4], r9w
add ax, ax
movsxd r11, edx
add cx, ax
mov word [rsp + 6], ax
movzx eax, word [r8 + 8]
add cx, cx
add ax, cx
mov word [rsp + 8], cx
movzx ecx, word [r8 + 0xa]
add ax, ax
add cx, ax
mov word [rsp + 0xa], ax
movzx eax, word [r8 + 0xc]
add cx, cx
add ax, cx
mov word [rsp + 0xc], cx
movzx ecx, word [r8 + 0xe]
add ax, ax
add cx, ax
mov word [rsp + 0xe], ax
movzx eax, word [r8 + 0x10]
add cx, cx
add ax, cx
mov word [rsp + 0x10], cx
movzx ecx, word [r8 + 0x12]
add ax, ax
add cx, ax
mov word [rsp + 0x12], ax
movzx eax, word [r8 + 0x14]
add cx, cx
add ax, cx
mov word [rsp + 0x14], cx
movzx ecx, word [r8 + 0x16]
add ax, ax
add cx, ax
mov word [rsp + 0x16], ax
movzx eax, word [r8 + 0x18]
add cx, cx
add ax, cx
mov word [rsp + 0x18], cx
movzx ecx, word [r8 + 0x1a]
add ax, ax
add cx, ax
mov word [rsp + 0x1a], ax
movzx eax, word [r8 + 0x1c]
add cx, cx
add ax, cx
mov word [rsp + 0x1c], cx
add ax, ax
mov word [rsp + 0x1e], ax
test edx, edx
js 0x140139f92
xor r9d, r9d
movzx edx, word [r10 + r9*4 + 2]
test edx, edx
je 0x140139f8a
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 0x140139f70
shr eax, 1
mov word [r10 + r9*4], ax
inc r9
cmp r9, r11
jle 0x140139f50
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14010a310
add rsp, 0x38
ret