Function at 0x14005c8a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r13, rdx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14005cb13
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14005cb13
mov edx, dword [rax + rdx + 0x90]
xor r14d, r14d
test edx, edx
je 0x14005cb16
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov edi, r14d
mov qword [rbp - 0x21], r14
lea rbx, [rdx + r13]
mov qword [rbp + 0x6f], rbx
mov r15, qword [rbp - 0x29]
cmp dword [rbx + 0x10], r14d
je 0x14005caf4
nop word [rax + rax]
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov r12, r14
mov qword [rbp + 0x17], r14
mov edx, dword [rbx + 0xc]
add rdx, r13
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], reloc.WS2_32.dll_ntohs
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14005c960
lea rcx, [rbp - 0x59]
call fcn.14004ef70
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rbp - 9], xmm1
mov esi, dword [rbx + 0x10]
add rsi, r13
mov edi, dword [rbx]
add rdi, r13
mov rax, qword [rdi]
test rax, rax
je 0x14005ca67
mov rbx, qword [rbp + 0xf]
nop
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x59], 0
lea rdx, [r13 + 2]
add rdx, rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14005c9c2
lea rcx, [rbp - 0x59]
call fcn.14004ef70
mov qword [rbp - 0x39], rsi
cmp rbx, r12
je 0x14005c9fc
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.14005d2c0
mov rax, qword [rbp - 0x39]
mov qword [rbx + 0x20], rax
add rbx, 0x28
mov qword [rbp + 0xf], rbx
jmp 0x14005ca14
lea r8, [rbp - 0x59]
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.14005cf80
mov r12, qword [rbp + 0x17]
mov rbx, qword [rbp + 0xf]
add rdi, 8
add rsi, 8
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x14005ca57
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ca52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cb05
call fcn.14016c298
mov rax, qword [rdi]
test rax, rax
jne 0x14005c9a0
mov rbx, qword [rbp + 0x6f]
mov rdi, qword [rbp - 0x21]
cmp r15, rdi
je 0x14005ca86
lea rdx, [rbp - 0x19]
mov rcx, r15
call fcn.14005d150
add r15, 0x38
mov qword [rbp - 0x29], r15
jmp 0x14005ca9e
lea r8, [rbp - 0x19]
mov rdx, r15
lea rcx, [rbp - 0x31]
call fcn.14005cb40
mov r15, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x21]
add rbx, 0x14
mov qword [rbp + 0x6f], rbx
lea rcx, [rbp + 7]
call fcn.14005c720
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14005cae6
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cae1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cb0c
call fcn.14016c298
cmp dword [rbx + 0x10], 0
jne 0x14005c920
mov rcx, qword [rbp + 0x67]
mov rax, qword [rbp - 0x31]
mov qword [rcx], rax
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], rdi
jmp 0x14005cb21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r14d, r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 8], r14
mov qword [rcx], r14
mov rax, rcx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret