Function at 0x4095e0
Capabilities:
Access pe header

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x110]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x28]
mov r8w, 1
mov dl, 1
mov rcx, qword [rsp + 0x110]
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x40964a
xor eax, eax
jmp 0x409b11
jmp 0x40965a
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0xc], 0
je 0x409b0d
cmp dword [rsp + 0x38], 0
jl 0x409b0d
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x40968e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 0xa0], eax
jmp 0x40969d
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov word [rsp + 0x68], 0
lea rax, [rsp + 0x6a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x80], 0
lea rax, [rsp + 0x82]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x58], 0
lea rax, [rsp + 0x5a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x58]
call sub.ntoskrnl.exe_RtlInitAnsiString
mov r8b, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call sub.ntoskrnl.exe_RtlAnsiStringToUnicodeString
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.00409060
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.00409220
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x409789
mov eax, 0xc0000225
jmp 0x409b11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4097ab
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
jmp 0x4097ba
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x409b08
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4097eb
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
jmp 0x4097fa
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409846
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
jmp 0x409855
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409879
movabs rax, 0x8000000000000000
mov qword [rsp + 0xc0], rax
jmp 0x409886
mov eax, 0x80000000
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0xb8], rax
jae 0x4098bb
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 2]
test eax, eax
je 0x4098bb
mov rax, qword [rsp + 0x98]
add rax, 2
mov qword [rsp + 0x48], rax
jmp 0x4098ff
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4098dd
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
jmp 0x4098ec
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
and rax, 0xffff
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x40991e
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xd0], rax
jmp 0x40992b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
call fcn.00409310
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x409968
mov dword [rsp + 0x38], 0xc0000225
jmp 0x409b08
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409a06
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
je 0x4099af
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x90]
mov qword [rax + rcx], rdx
jmp 0x409a01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4099d1
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
jmp 0x4099e0
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
jmp 0x409a87
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x10], 0
je 0x409a37
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x90]
mov dword [rax + rcx], edx
jmp 0x409a87
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409a59
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
jmp 0x409a68
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409aa5
mov qword [rsp + 0xe8], 8
jmp 0x409ab1
mov qword [rsp + 0xe8], 4
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409ae7
mov qword [rsp + 0xf0], 8
jmp 0x409af3
mov qword [rsp + 0xf0], 4
mov eax, dword [rsp + 0x50]
add rax, qword [rsp + 0xf0]
mov dword [rsp + 0x50], eax
jmp 0x409789
jmp 0x40964c
mov eax, dword [rsp + 0x38]
add rsp, 0x100
pop rdi
ret