Function at 0x14004b0f0
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
sub rsp, 0x50
mov r12, rdx
mov r13, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004b196
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14004b196
mov eax, 0x20b
cmp word [rsi + 0x18], ax
jne 0x14004b196
mov ebx, dword [rsi + 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 0x14004b196
movzx ecx, word [rsi + 0x14]
mov eax, dword [rcx + rsi + 0x24]
mov dword [rsp + 0xb0], eax
sub ebx, eax
mov edx, ebx
mov qword [rsp + 0xa8], rdx
jne 0x14004b1b0
xor r14d, r14d
mov rdi, r14
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rdi
mov rcx, r13
call fcn.140047d60
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
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 [0x1401a4c54], eax
jle 0x14004b2aa
lea rcx, [0x1401a4c54]
call fcn.14004d434
cmp dword [0x1401a4c54], 0xffffffff
jne 0x14004b2a2
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14004d6f4
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm1
mov ecx, dword [0x140132d78]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140132d7c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rsp + 0x30]
mov rdx, qword [0x1401a4688]
mov rcx, r13
call fcn.140047e80
mov qword [0x1401a4cb8], rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14004b296
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b290
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b290
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004d314
nop
lea rcx, [0x1401a4c54]
call fcn.14004d3c8
mov rdx, qword [rsp + 0xa8]
xor r14d, r14d
cmp qword [0x1401a4cb8], r14
je 0x14004b177
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0xa0]
mov rcx, r13
call fcn.140049ee0
test al, al
je 0x14004b177
mov rdi, qword [rsp + 0xa0]
test rdi, rdi
je 0x14004b17a
mov r8d, dword [rsi + 0x54]
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x24
mov ebp, r14d
cmp r14w, word [rsi + 6]
jae 0x14004b33f
add rbx, rsi
test dword [rbx + 0x18], 0x80
ja 0x14004b331
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 ebp
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp ebp, eax
jl 0x14004b314
mov r12d, dword [rsp + 0xb0]
mov rbp, rdi
sub rbp, r12
mov rbx, rbp
sub rbx, qword [rsi + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14004bb90
mov rdx, rbx
mov rcx, rax
call fcn.14004b400
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14004bcc0
mov rdx, rax
mov rcx, r13
call fcn.14004b500
test al, al
je 0x14004b17a
lea r8, [r12 + r15]
mov r9, qword [rsp + 0xa8]
mov rdx, rdi
mov rcx, r13
call fcn.140047b30
test al, al
je 0x14004b17a
mov r8d, dword [rsi + 0x28]
add r8, rbp
mov dword [rsp + 0xb0], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rsp + 0xb0]
mov rcx, r13
call fcn.14004b740
test al, al
je 0x14004b17a
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14004b198