Function at 0x140004a00
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r13
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140060060]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r15, r8
mov r13, rdx
mov rbx, rcx
test rdx, rdx
je 0x140004d0b
xorps xmm0, xmm0
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call fcn.14001b770
mov r9d, 0x40
lea rdx, [rsp + 0x70]
mov r8, r13
mov rcx, rbx
call fcn.140003f30
test al, al
je 0x140004d0b
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140004d0b
movsxd r8, dword [rbp - 0x54]
lea rdx, [rbp - 0x50]
add r8, r13
mov r9d, 0x108
mov rcx, rbx
call fcn.140003f30
test al, al
je 0x140004d0b
cmp dword [rbp - 0x50], 0x4550
jne 0x140004d0b
mov esi, dword [rbp + 0x38]
test esi, esi
je 0x140004d0b
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140004d0b
mov qword [rsp + 0x228], rdi
mov r9d, 4
mov qword [rsp + 0x1d0], r14
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r14d
mov qword [rsp + 0x40], rsi
mov rdi, rax
mov rcx, rbx
lea rax, [rsi + r13]
mov rdx, rdi
mov r8, rax
mov qword [rsp + 0x38], rax
call fcn.140003f30
test al, al
jne 0x140004b3d
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140004c48
mov ecx, dword [rdi + 0x24]
xor r14d, r14d
mov eax, dword [rdi + 0x20]
mov ebx, r14d
mov qword [rsp + 0x1d8], r12
mov r12, rdi
sub r12, rsi
add rcx, r12
add rax, r12
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdi + 0x1c]
add rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140004c2d
nop dword [rax + rax]
mov esi, ebx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov edx, dword [rax + rsi*4]
add rdx, r12
inc r8
cmp byte [rdx + r8], r14b
jne 0x140004ba2
lea rcx, [rsp + 0x50]
call fcn.140009390
cmp qword [r15 + 0x18], 0x10
mov rdx, r15
jb 0x140004bc2
mov rdx, qword [r15]
cmp qword [rsp + 0x68], 0x10
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
call fcn.140023f30
test eax, eax
je 0x140004c76
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140004c1d
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c18
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d12
call fcn.140018f00
mov rax, qword [rsp + 0x20]
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140004b80
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r12, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x228]
mov r14, qword [rsp + 0x1d0]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140018ee0
add rsp, 0x1e0
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, word [rax + rsi*2]
mov ebx, dword [rcx + rax*4]
add rbx, r13
cmp rbx, qword [rsp + 0x38]
jb 0x140004cb6
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x48]
add rax, r13
cmp rbx, rax
ja 0x140004cb6
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140004cca
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140004d03
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cfe
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d12
call fcn.140018f00
mov rax, r14
jmp 0x140004c40
xor eax, eax
jmp 0x140004c58
call fcn.1400226a0
int3