Function at 0x1400526f0
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, 0xe0
mov rax, qword [0x140097010]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x79], rax
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x19], r13
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140052aa9
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x140052aa9
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x140052aa9
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [r13 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x140052aa9
movzx ecx, word [r15 + 0x14]
mov r14d, dword [rcx + r15 + 0x24]
sub ebx, r14d
mov qword [rsp + 0x40], r13
mov eax, ebx
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, rdi
call fcn.140052340
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x71], rax
test rax, rax
je 0x140052a89
mov r8d, dword [r15 + 0x54]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
mov edi, r13d
cmp r13w, word [r15 + 6]
jae 0x14005281c
add rbx, r15
test dword [rbx + 0x18], 0x80
ja 0x14005280d
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x1400527f0
mov rdi, qword [rsp + 0x30]
mov r13, rdi
mov qword [rsp + 0x50], rdi
mov rbx, r14
mov qword [rsp + 0x38], rbx
sub rdi, r14
mov qword [rsp + 0x30], rdi
mov rsi, rdi
sub rsi, qword [r15 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x1400529d4
movsxd rax, dword [r12 + 0x3c]
cmp dword [rax + r12], 0x4550
jne 0x1400529d4
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
xor r14d, r14d
mov qword [rbp - 0x39], r14
mov ecx, dword [rax + r12 + 0xb0]
test ecx, ecx
jne 0x140052883
jmp 0x1400529d4
lea rbx, [r12 + rcx]
mov edi, dword [rax + r12 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x41]
cmp rbx, rdi
jae 0x140052907
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140052907
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x61], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x59], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x51], eax
cmp r10, r14
je 0x1400528e4
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [r10 + 0x10], xmm1
add r10, 0x18
mov qword [rbp - 0x41], r10
jmp 0x1400528fc
lea r8, [rbp - 0x61]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.140053d80
mov r14, qword [rbp - 0x39]
mov r10, qword [rbp - 0x41]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x1400528a0
mov r11, qword [rbp - 0x49]
cmp r11, r10
je 0x14005296f
lea r8, [r11 + 0x10]
mov ebx, 0xf000
mov edi, 0xa000
xor r13d, r13d
mov edx, r13d
cmp dword [r8], r13d
jbe 0x14005295d
nop dword [rax]
mov ecx, edx
mov rax, qword [r8 - 8]
movzx r9d, word [rax + rcx*2]
movzx eax, r9w
and ax, bx
cmp ax, di
jne 0x140052956
and r9d, 0xfff
mov rax, qword [r8 - 0x10]
add qword [r9 + rax], rsi
inc edx
cmp edx, dword [r8]
jb 0x140052930
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r10
jne 0x140052921
mov r13, qword [rsp + 0x50]
test r11, r11
je 0x1400529ca
sub r14, r11
movabs rax, 0x2aaaaaaaaaaaaaab
imul r14
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r11
cmp rdx, 0x1000
jb 0x1400529c2
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400529c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.14005b934
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x61]
call fcn.140053770
mov rdx, rax
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140052ae0
test al, al
je 0x140052a8c
lea r8, [rbx + r12]
mov r14, qword [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, rsi
call fcn.14004d640
test al, al
je 0x140052a8c
mov ebx, dword [r15 + 0x28]
add rbx, rdi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8, r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14004c890
test al, al
je 0x140052a8c
mov dword [rsp + 0x30], 0
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140052eb0
test al, al
je 0x140052a8c
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x140052a73
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x140052aab
mov rsi, rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x71]
mov rcx, rsi
call fcn.14004daa0
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14005b8b0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret