Function at 0x18004cf40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180085040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r8
mov rsi, rdx
mov r12, rcx
mov qword [rbp - 0x48], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x28]
call fcn.18004cbf0
nop
mov rdi, qword [rbp - 0x28]
cmp rdi, qword [rbp - 0x20]
jne 0x18004cff9
mov byte [r12 + 0x18], 0
test rdi, rdi
je 0x18004cfd2
mov rdx, qword [rbp - 0x18]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18004cfca
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d1f6
mov rcx, rdi
call fcn.18004fbe4
mov rax, r12
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18004fb80
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18004d1b7
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x18004d1b7
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x18004d1b7
mov r9, rbx
sub r9, qword [rax + rsi + 0x30]
movsxd rcx, dword [rdi + 0x3c]
movzx eax, word [rcx + rdi + 0x14]
lea rdx, [rdi + 0x18]
add rdx, rcx
add rdx, rax
xor r11d, r11d
movzx r8d, r11w
movzx r10d, word [rcx + rdi + 6]
cmp r11w, r10w
jae 0x18004d078
nop
mov eax, dword [rdx + 8]
test eax, eax
jne 0x18004d05a
mov eax, dword [rdx + 0x10]
mov ecx, dword [rdx + 0xc]
cmp r9, rcx
jb 0x18004d06a
add rax, rcx
cmp r9, rax
jb 0x18004d082
inc r8w
add rdx, 0x28
cmp r8w, r10w
jb 0x18004d050
mov byte [r12 + 0x18], r11b
jmp 0x18004cf99
sub ecx, dword [rdx + 0x14]
mov eax, ecx
mov r14, rdi
sub r14, rax
add r14, r9
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov r9, r11
mov qword [rbp - 0x30], r11
mov rsi, rbx
neg rsi
mov r13, rbx
sub r13, r14
mov r15, r14
sub r15, rbx
mov rdx, qword [rbp - 0x38]
movzx r10d, byte [r14]
cmp byte [r14 + r13], r10b
jne 0x18004d133
lea rax, [r13 + 1]
add rax, r14
nop word [rax + rax]
mov r8, rax
movzx ecx, byte [rax + r15]
cmp byte [rax], cl
jne 0x18004d133
inc rax
lea rcx, [r8 + 1]
add rcx, rsi
cmp rcx, 4
jle 0x18004d0d0
mov rcx, qword [rbp - 0x40]
cmp rcx, rdx
jne 0x18004d18f
mov byte [r12 + 0x18], 0
test rcx, rcx
je 0x18004cf99
sub r9, rcx
mov rax, rcx
cmp r9, 0x1000
jb 0x18004d174
add r9, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004d174
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rdx, r9
je 0x18004d155
mov byte [rdx], r10b
mov rdx, qword [rbp - 0x38]
inc rdx
mov qword [rbp - 0x38], rdx
dec rsi
inc r14
mov r9, qword [rbp - 0x30]
jmp 0x18004d0b5
mov r8, r14
lea rcx, [rbp - 0x40]
call fcn.18004d4a0
mov rdx, qword [rbp - 0x38]
dec rsi
inc r14
mov r9, qword [rbp - 0x30]
jmp 0x18004d0b5
mov rdx, r9
call fcn.18004fbe4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor eax, eax
mov qword [rbp - 0x30], rax
jmp 0x18004cf99
xor r11d, r11d
mov qword [rbp - 0x30], r11
mov qword [rbp - 0x38], r11
mov qword [rbp - 0x40], r11
mov qword [r12], rcx
mov qword [r12 + 8], rdx
mov qword [r12 + 0x10], r9
mov byte [r12 + 0x18], 1
jmp 0x18004cf99
mov byte [r12 + 0x18], 0
test rdi, rdi
je 0x18004cfd2
mov rdx, qword [rbp - 0x18]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18004cfca
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004cfca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3