Function at 0x140015a50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, rdx
mov r13, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140015ae5
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140015ae5
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140015ae5
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x140015ae5
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov edx, ebx
mov qword [rsp + 0x40], rdx
jne 0x140015aff
xor ebp, ebp
mov r14, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r13
call fcn.1400112e0
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, reloc.WS2_32.dll_sendto
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1400a838c], eax
jle 0x140015bd0
lea rcx, [0x1400a838c]
call fcn.1400793e8
cmp dword [0x1400a838c], 0xffffffff
jne 0x140015bcb
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x14008de20]
lea rcx, [rsp + 0x48]
call fcn.14000ecf0
nop
lea r8, [rsp + 0x48]
mov rdx, qword [0x1400a8198]
mov rcx, r13
call fcn.1400113f0
mov qword [0x1400a83f0], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140015bbf
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015bb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015bb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400797bc
nop
lea rcx, [0x1400a838c]
call fcn.14007937c
mov rdx, qword [rsp + 0x40]
xor ebp, ebp
cmp qword [0x1400a83f0], rbp
je 0x140015ac6
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140012eb0
test al, al
je 0x140015ac6
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x140015ac9
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, ebp
cmp bp, word [rdi + 6]
jae 0x140015c5b
add rbx, rdi
nop
test dword [rbx + 0x14], 0x80
ja 0x140015c4d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140015c30
mov r12d, dword [rsp + 0x30]
mov rsi, r14
sub rsi, r12
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.1400140a0
mov rdx, rbx
mov rcx, rax
call fcn.140015d10
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.1400141f0
mov rdx, rax
mov rcx, r13
call fcn.140015e10
test al, al
je 0x140015ac9
lea r8, [r12 + r15]
mov r9, qword [rsp + 0x40]
mov rdx, r14
mov rcx, r13
call fcn.1400110c0
test al, al
je 0x140015ac9
mov r8d, dword [rdi + 0x28]
add r8, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140015fe0
test al, al
je 0x140015ac9
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x140015ae7