Function at 0x1400cad40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov qword [rbp - 0x79], rdx
mov r13, rcx
mov qword [rbp - 0x51], rcx
xor r8d, r8d
mov ecx, 0x5a4d
cmp word [rdx], cx
jne 0x1400cb09a
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400cb09a
test rcx, rcx
je 0x1400cb09a
mov edx, dword [rcx + 0x90]
test edx, edx
je 0x1400cb09a
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x71], xmm0
mov ecx, r8d
mov qword [rbp - 0x61], rcx
lea r12, [rax + rdx]
mov r15, qword [rbp - 0x69]
cmp dword [r12 + 0x10], r8d
je 0x1400cb088
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r8
mov qword [rbp - 9], reloc.WSOCK32.dll_ntohs
mov byte [rbp - 0x21], 0
movdqu xmmword [rbp - 1], xmm0
mov r14, r8
mov qword [rbp + 0xf], r8
mov edx, dword [r12 + 0xc]
add rdx, rax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x31], r8
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400cae13
lea rcx, [rbp - 0x49]
call fcn.14007b610
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x11], xmm1
mov esi, dword [r12 + 0x10]
mov rcx, qword [rbp - 0x79]
add rsi, rcx
mov edi, dword [r12]
add rdi, rcx
mov rax, qword [rdi]
test rax, rax
je 0x1400caf35
mov rbx, qword [rbp + 7]
nop dword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], 0
mov qword [rbp - 0x31], reloc.WSOCK32.dll_ntohs
mov byte [rbp - 0x49], 0
lea rdx, [rcx + 2]
add rdx, rax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400cae90
lea rcx, [rbp - 0x49]
call fcn.1400a5b90
mov qword [rbp - 0x29], rsi
cmp rbx, r14
je 0x1400caeca
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.140093310
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x20], rax
add rbx, 0x28
mov qword [rbp + 7], rbx
jmp 0x1400caee2
lea r8, [rbp - 0x49]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.1400ca320
mov r14, qword [rbp + 0xf]
mov rbx, qword [rbp + 7]
add rdi, 8
add rsi, 8
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x1400caf25
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400caf20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb076
call fcn.140105794
mov rax, qword [rdi]
test rax, rax
mov rcx, qword [rbp - 0x79]
jne 0x1400cae60
cmp r15, qword [rbp - 0x61]
je 0x1400caf51
lea rdx, [rbp - 0x21]
mov rcx, r15
call fcn.1400caaf0
add r15, 0x38
mov qword [rbp - 0x69], r15
jmp 0x1400caf65
lea r8, [rbp - 0x21]
mov rdx, r15
lea rcx, [rbp - 0x71]
call fcn.1400ca570
mov r15, qword [rbp - 0x69]
add r12, 0x14
mov rdi, qword [rbp - 1]
test rdi, rdi
je 0x1400cb02b
mov rbx, rdi
mov rsi, qword [rbp + 7]
cmp rdi, rsi
je 0x1400cafd8
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400cafbc
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400cafb7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400cb07d
mov rcx, r8
call fcn.140105794
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WSOCK32.dll_ntohs
mov byte [rbx], 0
add rbx, 0x28
cmp rbx, rsi
jne 0x1400caf82
mov rcx, qword [rbp + 0xf]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400cb023
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb07d
mov rcx, rdi
call fcn.140105794
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x1400cb062
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb05d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb07d
call fcn.140105794
cmp dword [r12 + 0x10], 0
je 0x1400cb084
mov rax, qword [rbp - 0x79]
xor r8d, r8d
jmp 0x1400cadd5
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]
int3
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x71]
mov qword [r13], rax
mov qword [r13 + 8], r15
mov qword [r13 + 0x10], rcx
jmp 0x1400cb0a6
mov qword [r13 + 0x10], r8
mov qword [r13 + 8], r8
mov qword [r13], r8
mov rax, r13
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140105b50
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret