Function at 0x18012f6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x178
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x160], rax
jmp 0x18012f752
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x28], rax
je 0x18012f9d6
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov dword [rsp + 0xf8], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0xfc], eax
mov rax, qword [rsp + 0x28]
add rax, 8
lea rcx, [rsp + 0x100]
mov rdx, rax
call fcn.18000f690
nop
lea rax, [rsp + 0x100]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x138], rax
jmp 0x18012f7e0
mov rax, qword [rsp + 0x38]
add rax, 0xc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x138]
cmp qword [rsp + 0x38], rax
je 0x18012f88a
lea rax, [rsp + 0xd8]
mov rdi, rax
mov rsi, qword [rsp + 0x38]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0xd8], 1
jne 0x18012f885
mov eax, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xdc]
lea rax, [rax + rcx + 4]
mov rcx, qword [0x18020e330]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xdc]
mov edx, dword [rsp + 0x58]
cmp dword [rax + rcx], edx
jne 0x18012f879
movzx eax, byte [rsp + 0x20]
and eax, 1
mov byte [rsp + 0x20], al
jmp 0x18012f885
movzx eax, byte [rsp + 0x20]
and eax, 0
mov byte [rsp + 0x20], al
jmp 0x18012f7d2
lea rax, [rsp + 0x100]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x140], rax
jmp 0x18012f8ce
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x140]
cmp qword [rsp + 0x40], rax
je 0x18012f9c1
lea rax, [rsp + 0x88]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x88], 2
jne 0x18012f958
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x148], rax
mov eax, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x8c]
mov edx, dword [rsp + 0x148]
cmp dword [rax + rcx], edx
jne 0x18012f94c
movzx eax, byte [rsp + 0x20]
and eax, 1
mov byte [rsp + 0x20], al
jmp 0x18012f958
movzx eax, byte [rsp + 0x20]
and eax, 0
mov byte [rsp + 0x20], al
cmp dword [rsp + 0x88], 3
jne 0x18012f9bc
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x150], rax
mov eax, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x8c]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0x150]
cmp eax, ecx
jne 0x18012f9b0
movzx eax, byte [rsp + 0x20]
and eax, 1
mov byte [rsp + 0x20], al
jmp 0x18012f9bc
movzx eax, byte [rsp + 0x20]
and eax, 0
mov byte [rsp + 0x20], al
jmp 0x18012f8c0
lea rax, [rsp + 0x100]
mov rcx, rax
call fcn.18000ff90
jmp 0x18012f744
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18012f9e6
xor al, al
jmp 0x18012fd13
cmp qword [0x18020e330], 0
jne 0x18012f9f7
xor al, al
jmp 0x18012fd13
mov rcx, qword [rsp + 0x1a0]
call fcn.18000a3b0
mov r8, rax
mov edx, 0x104
mov rcx, qword [0x18020e330]
call fcn.1800feb9c
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x158], rax
jmp 0x18012fa5c
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x158]
cmp qword [rsp + 0x30], rax
je 0x18012fd0f
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x30]
add rax, 8
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.18000f690
nop
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call fcn.18012ea90
movzx eax, al
test eax, eax
jne 0x18012facd
lea rax, [rsp + 0x70]
mov rcx, rax
call fcn.18000ff90
jmp 0x18012fa4e
lea rcx, [rsp + 0x70]
call fcn.18000a080
movzx eax, al
test eax, eax
je 0x18012faf0
lea rax, [rsp + 0x70]
mov rcx, rax
call fcn.18000ff90
jmp 0x18012fa4e
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x5c]
mov r8d, 0x40
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18012fb39
lea rax, [rsp + 0x70]
mov rcx, rax
call fcn.18000ff90
jmp 0x18012fa4e
lea rax, [rsp + 0x70]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x118], rax
jmp 0x18012fb7a
mov rax, qword [rsp + 0x48]
add rax, 0xc
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x118]
cmp qword [rsp + 0x48], rax
je 0x18012fc03
lea rax, [rsp + 0xe8]
mov rdi, rax
mov rsi, qword [rsp + 0x48]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0xe8], 1
jne 0x18012fbfe
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xec]
lea rax, [rax + rcx + 4]
mov rcx, qword [0x18020e330]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xec]
mov edx, dword [rsp + 0x60]
mov dword [rax + rcx], edx
jmp 0x18012fb6c
jmp 0x18012fb6c
lea rax, [rsp + 0x70]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x120], rax
jmp 0x18012fc44
mov rax, qword [rsp + 0x50]
add rax, 0xc
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x120]
cmp qword [rsp + 0x50], rax
je 0x18012fcfd
lea rax, [rsp + 0x98]
mov rdi, rax
mov rsi, qword [rsp + 0x50]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x98], 2
jne 0x18012fcb1
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x9c]
mov edx, dword [rsp + 0x128]
mov dword [rax + rcx], edx
jmp 0x18012fc36
cmp dword [rsp + 0x98], 3
jne 0x18012fcf8
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x9c]
movzx edx, byte [rsp + 0x130]
mov byte [rax + rcx], dl
jmp 0x18012fc36
jmp 0x18012fc36
lea rax, [rsp + 0x70]
mov rcx, rax
call fcn.18000ff90
jmp 0x18012fa4e
jmp 0x18012fd11
mov al, 1
add rsp, 0x178
pop rdi
pop rsi
ret