Function at 0x14003db40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14003dbe8
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14003dbe8
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14003dbe8
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rsi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x14003dbe8
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp + 0x60], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp + 0x58], rdx
jne 0x14003dc02
mov r14, rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r13
call fcn.140039340
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1400da9d4], eax
jle 0x14003dcf8
lea rcx, [0x1400da9d4]
call fcn.1400a833c
cmp dword [0x1400da9d4], 0xffffffff
jne 0x14003dcf4
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400a860c
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 8], Ordinal_32
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400c8968]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400c896c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x20]
mov rdx, qword [0x1400da428]
mov rcx, r13
call fcn.140039460
mov qword [0x1400daa48], rax
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14003dce8
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dce2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003dce2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a821c
nop
lea rcx, [0x1400da9d4]
call fcn.1400a82d0
mov rdx, qword [rbp + 0x58]
cmp qword [0x1400daa48], 0
je 0x14003dbc9
mov qword [rbp + 0x50], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 0x50]
mov rcx, r13
call fcn.14003c680
test al, al
je 0x14003dbc9
mov r14, qword [rbp + 0x50]
test r14, r14
je 0x14003dbcc
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x24
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14003dd7d
add rbx, rdi
test dword [rbx + 0x18], 0x80
ja 0x14003dd6f
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r12
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14003dd52
mov esi, dword [rbp + 0x60]
mov r12, r14
sub r12, rsi
mov rbx, r12
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.1400453f0
mov rdx, rbx
mov rcx, rax
call fcn.14003de60
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.140045520
mov rdx, rax
mov rcx, r13
call fcn.14003df60
test al, al
je 0x14003dbcc
lea r8, [rsi + r15]
mov rsi, qword [rbp + 0x58]
mov r9, rsi
mov rdx, r14
mov rcx, r13
call fcn.140039110
test al, al
je 0x14003dbcc
mov ebx, dword [rdi + 0x28]
add rbx, r12
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, r14
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.140042cc0
test al, al
je 0x14003dbcc
mov dword [rbp + 0x60], edi
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x28]
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, r13
call fcn.14003e1a0
test al, al
je 0x14003dbcc
mov rax, qword [rbp + 0x88]
test rax, rax
je 0x14003de41
mov ecx, dword [rbp + 0x60]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x14003dbea