Function at 0x140007110
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, 0x60
mov r14, rdx
mov r12, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400073c5
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400073c5
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400073c5
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 0x1400073c5
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov r13d, ebx
je 0x1400073b4
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400eec24], eax
jle 0x14000725e
lea rcx, [0x1400eec24]
call fcn.14007c720
cmp dword [0x1400eec24], 0xffffffff
jne 0x14000725e
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x1400907e8]
lea rcx, [rsp + 0x40]
call fcn.140006c20
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x1400ee878]
mov rcx, r12
call fcn.140003170
mov qword [0x1400eec90], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140007252
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000724c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000724c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c670
nop
lea rcx, [0x1400eec24]
call fcn.14007c6b4
cmp qword [0x1400eec90], 0
je 0x1400073b4
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.140005e60
test al, al
je 0x1400073b4
mov r15, qword [rsp + 0x38]
test r15, r15
je 0x1400073b4
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x1400072eb
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x1400072dd
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 0x1400072c0
mov r14d, dword [rsp + 0x30]
mov rsi, r15
sub rsi, r14
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140017d30
mov rdx, rbx
mov rcx, rax
call fcn.1400073e0
mov rdx, rsi
mov rcx, rbp
call fcn.1400074e0
test al, al
je 0x1400073c5
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140017e80
mov rdx, rax
mov rcx, r12
call fcn.140007590
test al, al
je 0x140007396
lea r8, [r14 + rbp]
mov r9, r13
mov rdx, r15
mov rcx, r12
call fcn.140002e30
test al, al
je 0x140007396
mov r8d, dword [rdi + 0x28]
add r8, rsi
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1400078c0
test al, al
je 0x140007396
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x1400073c7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r15
mov rcx, r12
call fcn.140003050
jmp 0x1400073c5
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret