Function at 0x140004300
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, r8
mov r14, rdx
mov rbx, rcx
test rdx, rdx
je 0x140004646
xor eax, eax
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rbp + 0x60], rax
mov r8d, 0x108
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
call fcn.14001ec00
mov rdx, r14
mov rcx, rbx
call fcn.140003560
test rax, rax
je 0x140004646
lea r9, [rbp + 0x60]
mov r8d, 0x40
mov rdx, rax
mov rcx, rbx
call fcn.140003780
test eax, eax
je 0x140004646
mov eax, 0x5a4d
cmp word [rbp + 0x60], ax
jne 0x140004646
movsxd rdx, dword [rbp + 0x9c]
mov rcx, rbx
add rdx, r14
call fcn.140003560
test rax, rax
je 0x140004646
lea r9, [rsp + 0x50]
mov r8d, 0x108
mov rdx, rax
mov rcx, rbx
call fcn.140003780
test eax, eax
je 0x140004646
cmp dword [rsp + 0x50], 0x4550
jne 0x140004646
mov esi, dword [rbp - 0x28]
test esi, esi
je 0x140004646
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x140004646
mov qword [rsp + 0x208], rdi
mov r9d, 4
mov qword [rsp + 0x1b8], r12
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r12d
mov rcx, rbx
mov rdi, rax
lea rax, [rsi + r14]
mov rdx, rax
mov qword [rsp + 0x30], rax
mov r8, rdi
call fcn.140003920
test eax, eax
jne 0x14000447e
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000457f
mov eax, dword [rdi + 0x24]
mov r12, rdi
sub r12, rsi
mov qword [rsp + 0x1b0], r13
mov r13d, dword [rdi + 0x20]
add rax, r12
mov qword [rsp + 0x20], rax
add r13, r12
mov eax, dword [rdi + 0x1c]
xor ebx, ebx
add rax, r12
mov qword [rsp + 0x28], rax
cmp dword [rdi + 0x18], ebx
jbe 0x140004564
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r13 + rbx*4]
mov r8, 0xffffffffffffffff
add rdx, r12
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
inc r8
cmp byte [rdx + r8], 0
jne 0x1400044e3
lea rcx, [rbp + 0x60]
call fcn.140008fa0
cmp qword [r15 + 0x18], 0x10
mov rdx, r15
jb 0x140004503
mov rdx, qword [r15]
cmp qword [rbp + 0x78], 0x10
lea rcx, [rbp + 0x60]
cmovae rcx, qword [rbp + 0x60]
call fcn.140023144
test eax, eax
je 0x1400045ad
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140004559
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004554
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000464d
call fcn.1400187f4
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x1400044c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r13, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x208]
mov r12, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400187d0
add rsp, 0x1c0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rbx*2]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1400045f2
lea rbx, [r14 + rcx]
cmp rbx, qword [rsp + 0x30]
jb 0x140004633
mov rax, rsi
add rax, qword [rsp + 0x40]
add rax, r14
cmp rbx, rax
ja 0x140004633
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x14000462b
mov rcx, qword [rbp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004626
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000464d
call fcn.1400187f4
mov rax, rbx
jmp 0x140004577
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400045f4
xor eax, eax
jmp 0x14000458f
call fcn.140023b54
int3