Function at 0x410ae0
Capabilities:
Access pe header

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
jmp 0x410b23
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
add rax, 0x20
cmp qword [rsp + 0x40], rax
je 0x410f1d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x51]
test eax, eax
je 0x410b53
jmp 0x410b16
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0xd0]
test eax, eax
jne 0x410b99
movzx r9d, byte [rsp + 0xd8]
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x10]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.00410680
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x410bba
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x98], eax
jmp 0x410bc9
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
je 0x410ca3
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x410bf8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x9c], eax
jmp 0x410c07
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x70], rax
movzx eax, byte [0x00445b98]
test eax, eax
jne 0x410c34
mov dword [rsp + 0xa0], 1
jmp 0x410c3f
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0xc8]
movzx ecx, byte [rsp + 0xa0]
call fcn.00412db0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [0x004459f0], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov qword [0x004459f8], rax
cmp dword [rsp + 0x50], 0
je 0x410cb4
mov eax, 0xc000010a
jmp 0x410f1f
mov rax, qword [rsp + 0x68]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x410ce4
mov rax, qword [rsp + 0x68]
add rax, 0xf8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
jmp 0x410cfe
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x58], rax
jae 0x410e0e
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x410d34
jmp 0x410cf0
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4c]
and eax, 0x10
test eax, eax
je 0x410d82
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.00431d40
jmp 0x410e09
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
call fcn.0042b330
test eax, eax
jl 0x410dc2
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.00431d40
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
call fcn.0042b330
mov r9d, 0x4000
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
jmp 0x410cf0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4c]
and eax, 4
test eax, eax
je 0x410f0f
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x410e42
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0xa4], eax
jmp 0x410e51
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4c]
and eax, 0x10
test eax, eax
je 0x410e8c
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.00431d40
jmp 0x410f0f
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call fcn.0042b330
test eax, eax
jl 0x410f0f
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.00431d40
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call fcn.0042b330
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x51], 1
jmp 0x410b16
xor eax, eax
add rsp, 0xb8
ret