Function at 0x140054df4
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx]
mov r14, rcx
movzx ebx, byte [rdx + 0x20]
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
not ebx
and ebx, 1
mov ecx, dword [rax]
mov r13d, dword [r14 + 0x38]
inc r13d
mov dword [rsp + 0x98], ecx
mov dword [r14 + 0x38], r13d
mov eax, dword [rdx + 8]
lea ebp, [rcx + rbx]
add ebp, dword [rsp + 0xb8]
cmp dword [rsp + 0xc0], 0
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x90], eax
je 0x140054e61
mov r15d, r9d
sub r15d, ecx
sub r15d, ebx
jmp 0x140054e6e
mov eax, r13d
lea r15d, [r13 + 1]
add eax, ebp
mov dword [r14 + 0x38], eax
mov r12d, dword [r8 + 0x14]
test r12d, r12d
je 0x140054e7c
inc r12d
jmp 0x140054e80
mov r12d, dword [r8 + 0x10]
mov rcx, rdi
call fcn.140026038
mov r9d, dword [rsp + 0xb0]
mov r8d, r15d
mov rdx, qword [rsi]
mov dword [rsi + 0x1c], eax
mov eax, r9d
neg eax
sbb cl, cl
and cl, 4
inc cl
mov byte [rsp + 0x20], cl
mov rcx, r14
call fcn.14003bb3c
mov eax, dword [rsp + 0x98]
add eax, r15d
mov dword [rsp + 0xb0], eax
test ebx, ebx
je 0x140054ee6
and dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, dword [rsi + 0xc]
mov edx, 0x73
mov rcx, rdi
call fcn.140025d88
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0xc0], 0
jne 0x140054f11
mov ecx, dword [rsp + 0xb8]
test ecx, ecx
jle 0x140054f11
mov edx, dword [rsp + 0xa8]
lea r8d, [rax + rbx]
mov r9d, ecx
mov rcx, r14
call fcn.14003a994
mov eax, dword [rsp + 0x90]
mov edx, 0x64
sub ebp, eax
mov dword [rsp + 0x20], r13d
add eax, r15d
mov r9d, ebp
mov r8d, eax
mov dword [rsp + 0x34], eax
mov rcx, rdi
call fcn.140025d88
cmp dword [rsp + 0x90], 0
jle 0x140055106
mov ecx, dword [r14 + 0x38]
mov r13d, dword [rsp + 0x98]
mov r8d, dword [rsp + 0xb0]
lea eax, [rcx + 1]
add ecx, dword [rsi + 8]
mov dword [r14 + 0x38], ecx
sub r13d, dword [rsi + 8]
add r13d, ebx
mov dword [rsp + 0xc0], eax
test ebx, ebx
jne 0x140054f7b
mov r8d, dword [rsi + 0xc]
neg ebx
mov rcx, rdi
sbb edx, edx
and dword [rsp + 0x20], 0
and edx, 0xffffffa7
xor r9d, r9d
add edx, 0x6f
call fcn.140025d88
mov ecx, dword [rsi + 8]
mov r9d, r15d
mov r8d, dword [rsp + 0xc0]
mov edx, 0x5e
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rsp + 0xa0], eax
call fcn.140025d88
mov edx, dword [rsi + 0x18]
mov rcx, rdi
call fcn.14002666c
mov rcx, qword [r14]
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x61], 0
jne 0x140055208
mov rbx, qword [rax + 0x10]
xor edx, edx
mov ecx, dword [rsp + 0xb8]
add ecx, r13d
mov dword [rax + 8], ecx
movzx r8d, word [rbx + 6]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov r9d, 0xfffffff7
mov r8, rbx
or edx, 0xffffffff
mov rcx, rdi
call fcn.140026584
movzx r9d, word [rbx + 8]
mov rcx, r14
movzx eax, word [rbx + 6]
mov r8d, dword [rsp + 0x90]
sub r9d, eax
mov rdx, qword [rsi]
dec r9d
call fcn.140055d64
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rcx + 0x10], rax
lea edx, [r9 + 0x12]
mov ebx, dword [rdi + 0xb8]
mov rcx, rdi
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], r8d
call fcn.140025d88
mov rcx, rdi
call fcn.140026038
mov dword [rsi + 0x14], eax
xor r13d, r13d
mov r8d, dword [r14 + 0x38]
mov rcx, rdi
inc r8d
mov dword [rsp + 0x20], r13d
mov dword [r14 + 0x38], r8d
mov r9d, dword [rsi + 0x14]
lea edx, [r13 + 0xe]
mov dword [rsi + 0x10], r8d
call fcn.140025d88
mov r8d, dword [rsi + 0xc]
xor r9d, r9d
mov edx, 0x87
mov dword [rsp + 0x20], r13d
mov rcx, rdi
call fcn.140025d88
test r12d, r12d
je 0x1400550bf
mov r9d, dword [rsi + 0x1c]
lea edx, [r13 + 0x16]
mov r8d, r12d
mov dword [rsp + 0x20], r13d
mov rcx, rdi
call fcn.140025d88
mov edx, dword [rsp + 0xa0]
mov rcx, rdi
call fcn.14002666c
mov ecx, dword [rdi + 0xb8]
mov edx, r15d
mov r8d, dword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rcx, r14
mov r9d, dword [rsi + 8]
call fcn.14003a994
mov edx, ebx
mov rcx, rdi
call fcn.14002666c
mov ecx, dword [rdi + 0xb8]
mov r13d, dword [rsp + 0x30]
mov dword [rax + 8], ecx
mov dl, byte [rsi + 0x20]
mov r9d, r13d
mov eax, dword [rsp + 0x34]
not dl
mov r8d, dword [rsi + 0xc]
and edx, 1
add edx, 0x7f
mov dword [rsp + 0x28], ebp
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140025fc4
xor r15d, r15d
test r12d, r12d
je 0x140055208
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r12d
lea edx, [r15 + 0x31]
mov rcx, rdi
mov ebx, r15d
call fcn.140025d88
mov r8d, dword [rsi + 0xc]
lea edx, [r15 + 0x21]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov ebp, eax
call fcn.140025d88
cmp byte [rsi + 0x21], r15b
je 0x140055196
inc dword [r14 + 0x38]
lea edx, [r15 + 0x62]
mov ebx, dword [r14 + 0x38]
mov rcx, rdi
mov r8d, dword [rsi + 0xc]
mov r9d, dword [rsp + 0x98]
mov dword [rsp + 0x20], ebx
call fcn.140025d88
mov r8d, dword [rsi + 0xc]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x77]
call fcn.140025d88
cmp byte [rsi + 0x21], r15b
je 0x1400551f5
mov r9d, dword [rdi + 0xb8]
mov edx, 0x35
mov r8d, dword [rsp + 0xb0]
add r9d, 2
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.140025d88
movsxd rax, dword [rdi + 0xb8]
test eax, eax
jle 0x1400551f5
lea rcx, [rax + rax*2]
mov edx, 0x80
mov rax, qword [rdi + 0x68]
mov word [rax + rcx*8 - 0x16], dx
mov edx, ebp
mov rcx, rdi
call fcn.14002666c
mov ecx, dword [rdi + 0xb8]
mov dword [rax + 8], ecx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret