Function at 0x140045e90
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 - 7]
sub rsp, 0xa0
mov rax, qword [0x1400fd0c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, rdx
mov r13, rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x31], rax
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rsi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400461da
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400461da
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400461da
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 r14, rax
test rax, rax
je 0x1400461da
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x69], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x59], rdx
je 0x1400461c9
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1401052b4], eax
jle 0x140046035
lea rcx, [0x1401052b4]
call fcn.1400d34a0
cmp dword [0x1401052b4], 0xffffffff
jne 0x140046031
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
lea ecx, [rsi + 0x20]
call fcn.1400d3518
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 0x39], Ordinal_32
movups xmm0, xmmword [0x1400e7b38]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400e7b48]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400e7b4c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], sil
lea r8, [rbp - 0x51]
mov rdx, qword [0x140105258]
mov rcx, r13
call fcn.140041c40
mov qword [0x140105318], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x140046025
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004601f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004601f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d33f0
nop
lea rcx, [0x1401052b4]
call fcn.1400d3434
mov rdx, qword [rbp - 0x59]
cmp qword [0x140105318], 0
je 0x1400461c9
mov qword [rbp - 0x61], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x61]
mov rcx, r13
call fcn.140044c80
test al, al
je 0x1400461c9
mov r15, qword [rbp - 0x61]
test r15, r15
je 0x1400461c9
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x1400460bb
add rbx, rdi
nop
test dword [rbx + 0x14], 0x80
ja 0x1400460ad
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140046090
mov r12d, dword [rbp - 0x69]
mov rsi, r15
sub rsi, r12
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140047050
mov rdx, rbx
mov rcx, rax
call fcn.140046210
mov rdx, rsi
mov rcx, r14
call fcn.140046310
test al, al
je 0x1400461da
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.1400471a0
mov rdx, rax
mov rcx, r13
call fcn.1400463c0
test al, al
je 0x1400461ab
lea r8, [r12 + r14]
mov r12, qword [rbp - 0x59]
mov r9, r12
mov rdx, r15
mov rcx, r13
call fcn.1400418f0
test al, al
je 0x1400461ab
mov ebx, dword [rdi + 0x28]
add rbx, rsi
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, r15
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140048cd0
test al, al
je 0x1400461ab
mov dword [rbp - 0x69], edi
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.140046790
test al, al
je 0x1400461ab
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x140046184
mov eax, dword [rbp - 0x69]
mov dword [rdx], eax
cmp byte [rbp + 0x67], dil
je 0x140046195
mov rdx, r15
mov rcx, r13
call fcn.140041b10
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x1400461dc
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r15
mov rcx, r13
call fcn.140041b10
jmp 0x1400461da
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400d33d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret