Function at 0x140048df0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15, rcx
mov eax, 0x5a4d
cmp word [0x1400f8140], ax
jne 0x1400490e7
movsxd rdi, dword [0x1400f817c]
lea rsi, [0x1400f8140]
add rdi, rsi
cmp dword [rdi], 0x4550
jne 0x1400490e7
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400490e7
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 rbp, rax
test rax, rax
je 0x1400490e7
movzx ecx, word [rdi + 0x14]
mov r13d, dword [rcx + rdi + 0x24]
sub ebx, r13d
mov r12d, ebx
je 0x1400490d6
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x1401039ac], eax
jle 0x140048f7d
lea rcx, [0x1401039ac]
call fcn.1400cd7a8
cmp dword [0x1401039ac], 0xffffffff
jne 0x140048f7d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
lea ecx, [rbx + 0x20]
call fcn.1400cd450
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x50], Ordinal_33
movups xmm0, xmmword [0x1400ea8a0]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400ea8b0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400ea8b4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], bl
lea r8, [rsp + 0x38]
mov rdx, qword [0x140103308]
mov rcx, r15
call fcn.1400441f0
mov qword [0x140103a10], rax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140048f71
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048f6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048f6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd6cc
nop
lea rcx, [0x1401039ac]
call fcn.1400cd73c
cmp qword [0x140103a10], 0
je 0x1400490d6
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140046010
test al, al
je 0x1400490d6
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x1400490d6
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x140049013
add rbx, rdi
lea r14, [0x1400f8140]
test dword [rbx + 0x14], 0x80
ja 0x140049000
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r14
mov ecx, dword [rbx - 4]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140048fe3
mov r14, qword [rsp + 0x30]
mov rbx, r14
sub rbx, r13
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.140047100
mov rdx, rbx
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.140049110
mov rdx, rbx
mov rcx, rbp
call fcn.140049210
test al, al
je 0x1400490e7
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.140047250
mov rdx, rax
mov rcx, r15
call fcn.1400492c0
test al, al
je 0x1400490b8
mov r8, r13
add r8, rbp
mov r9, r12
mov rdx, r14
mov rcx, r15
call fcn.140043ea0
test al, al
je 0x1400490b8
mov r8d, dword [rdi + 0x28]
add r8, rbx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140049490
test al, al
je 0x1400490b8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x1400490e9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r15
call fcn.1400440c0
jmp 0x1400490e7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret