Function at 0x140003cb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov qword [rsp + 0x20], r8
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140003eb2
mov ebx, 0x40
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140016b30
mov edi, 0x108
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140016b30
mov r9d, ebx
mov r8, rsi
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400035e0
test al, al
je 0x140003eb2
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x140003eb2
movsxd r8, dword [rbp - 0x54]
add r8, rsi
mov r9d, edi
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.1400035e0
test al, al
je 0x140003eb2
cmp dword [rbp - 0x50], 0x4550
jne 0x140003eb2
mov edi, dword [rbp + 0x38]
test edi, edi
je 0x140003eb2
mov eax, dword [rbp + 0x3c]
test eax, eax
je 0x140003eb2
mov r12d, eax
mov qword [rsp + 0x40], rax
lea r9d, [rbx - 0x3c]
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r15d, edi
mov qword [rsp + 0x38], rdi
lea rax, [rdi + rsi]
mov qword [rsp + 0x30], rax
mov r9d, r12d
mov r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.1400035e0
test al, al
je 0x140003ea1
mov rdi, rbx
sub rdi, r15
mov eax, dword [rbx + 0x20]
add rax, rdi
mov qword [rsp + 0x28], rax
mov r15d, dword [rbx + 0x24]
add r15, rdi
mov r12d, dword [rbx + 0x1c]
add r12, rdi
xor r14d, r14d
cmp dword [rbx + 0x18], r14d
jbe 0x140003ea1
mov edx, dword [rax + r14*4]
add rdx, rdi
and qword [rsp + 0x48], 0
and qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
lea rcx, [rsp + 0x48]
call fcn.140007954
mov rax, qword [rsp + 0x20]
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140003e34
mov rdx, qword [rax]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call fcn.14001dd2c
test eax, eax
je 0x140003ede
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003e8f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003f72
call fcn.140013f30
inc r14d
cmp r14d, dword [rbx + 0x18]
mov rax, qword [rsp + 0x28]
jb 0x140003dfc
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140013f10
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [r15 + r14*2]
mov r14d, 0x1000
cmp dword [r12 + rax*4], r14d
jbe 0x140003f20
mov edi, dword [r12 + rax*4]
add rdi, rsi
cmp rdi, qword [rsp + 0x30]
jb 0x140003f5f
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x40]
add rax, rsi
cmp rdi, rax
ja 0x140003f5f
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003f57
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r14
jb 0x140003f52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003f72
call fcn.140013f30
mov rax, rdi
jmp 0x140003eb4
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140003f22
call fcn.14001eb9c
int3