Function at 0x1400a3810
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rsi, qword [0x14023b438]
lea rcx, [rbp - 0x40]
xorps xmm0, xmm0
mov r15, rdx
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x70]
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400a3942
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400a3942
movsxd rdx, dword [rbp - 0x74]
lea rax, [rbp - 0x70]
add rdx, r15
mov qword [rsp + 0x20], rax
mov r9d, 0x108
lea r8, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400a3942
cmp dword [rbp - 0x40], 0x4550
jne 0x1400a3942
mov edi, dword [rbp + 0x48]
test edi, edi
je 0x1400a3942
mov eax, dword [rbp + 0x4c]
test eax, eax
je 0x1400a3942
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400a3942
lea rax, [rdi + r15]
mov qword [rsp + 0x48], rdi
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rcx
mov r9d, r13d
mov rcx, rsi
mov r8, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400a3949
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400a3a1b
mov eax, dword [rbx + 0x24]
mov rsi, rbx
sub rsi, rdi
mov qword [rsp + 0x210], r12
mov r12d, dword [rbx + 0x20]
add rax, rsi
mov qword [rsp + 0x30], rax
add r12, rsi
mov eax, dword [rbx + 0x1c]
add rax, rsi
mov qword [rsp + 0x220], r14
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, eax
cmp dword [rbx + 0x18], eax
jbe 0x1400a39f8
nop word [rax + rax]
mov r14d, edi
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov edx, dword [r12 + r14*4]
add rdx, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x1400a39b1
lea rcx, [rbp - 0x68]
call fcn.14000b840
cmp qword [rbp - 0x50], 0x10
lea rcx, [rbp - 0x68]
lea rdx, str.SetWindowDisplayAffinity
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400a3a41
lea rcx, [rbp - 0x68]
call fcn.14000b7e0
inc edi
mov eax, 0
cmp edi, dword [rbx + 0x18]
jb 0x1400a3990
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r12, qword [rsp + 0x210]
mov r14, qword [rsp + 0x220]
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140154010
mov rbx, qword [rsp + 0x228]
add rsp, 0x1e0
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rax + r14*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1400a3a87
lea rdi, [r15 + rcx]
cmp rdi, qword [rsp + 0x40]
jb 0x1400a3a99
mov rax, qword [rsp + 0x48]
add rax, r13
add rax, r15
cmp rdi, rax
ja 0x1400a3a99
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
lea rcx, [rbp - 0x68]
call fcn.14000b7e0
mov eax, edi
jmp 0x1400a3a0b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rbp - 0x68]
call fcn.14000b7e0
mov rax, rdi
jmp 0x1400a3a0b