Function at 0x14012f840
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov r13, rcx
test byte [0x14023e9b0], 1
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
jne 0x14012f9c5
lock bts qword [0x14023e9b0], 0x1f
jae 0x14012f8b2
test byte [0x14023e9b0], 1
jne 0x14012f9c5
xor edx, edx
lea rcx, [0x14023e9b0]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14012f9c5
xor edx, edx
lea rcx, str.cfgmgr32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14012f8f2
xor edx, edx
lea rcx, str.cfgmgr32.dll
mov r8d, 0xa00
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14012f9b4
movzx ecx, word [rdi]
mov esi, 0x5a4d
cmp cx, si
jne 0x14012f953
mov edx, dword [rdi + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14012f953
cmp dword [rdx + rdi], 0x4550
jne 0x14012f953
add rdx, 0x88
add rdx, rdi
mov eax, dword [rdx]
test eax, eax
je 0x14012f94a
cmp dword [rdx + 4], ebx
je 0x14012f94a
lea r8, ds:[rdi + rax]
mov word [rsp + 0x20], bx
lea r9, str.DevGetObjects
mov rcx, rdi
call fcn.1400fa1a0
movzx ecx, word [rdi]
jmp 0x14012f956
mov qword [0x140244e08], rbx
jmp 0x14012f965
mov rax, rbx
mov qword [0x140244e08], rax
nop dword [rax]
cmp cx, si
jne 0x14012f9aa
mov ecx, dword [rdi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14012f9aa
cmp dword [rcx + rdi], 0x4550
jne 0x14012f9aa
lea rdx, [rdi + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14012f9aa
cmp dword [rdx + 4], ebx
je 0x14012f9aa
lea r8, [rdi + rax]
mov word [rsp + 0x20], bx
lea r9, str.DevFreeObjects
mov rcx, rdi
call fcn.1400fa1a0
jmp 0x14012f9ad
mov rax, rbx
mov qword [0x140245668], rax
lea rcx, [0x14023e9b0]
nop dword [rax + rax]
call sym.ProcessHacker.exe_PhfSetEvent
mov r10, qword [0x140244e08]
test r10, r10
je 0x14012fde2
cmp qword [0x140245668], rbx
nop dword [rax]
je 0x14012fde2
mov eax, dword [0x1401b7908]
lea r9, [rbp - 0x10]
movups xmm1, xmmword [0x1401b78e0]
mov dword [rbp], eax
xor edx, edx
mov eax, dword [0x1401b78d8]
movups xmm0, xmmword [0x1401b78f8]
mov dword [rbp + 0x20], eax
mov eax, dword [0x1401b78f0]
lea ecx, [rdx + 3]
mov dword [rbp - 0x70], eax
lea r8d, [rdx + 2]
mov eax, dword [r13]
add eax, 2
movaps xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [0x1401b78c8]
mov dword [rbp - 0x3c], eax
mov rax, qword [r13 + 8]
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
movaps xmmword [rbp + 0x10], xmm0
mov qword [rsp + 0x28], rax
mov rax, r10
mov dword [rbp - 0x6c], ebx
mov qword [rbp - 0x68], rbx
movups xmm0, xmmword [rbp - 0x70]
mov dword [rbp - 0x40], 0x12
mov qword [rbp + 8], rbx
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x28], rbx
movups xmmword [rbp + 0x48], xmm0
mov dword [rbp + 4], ebx
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp + 0x24], ebx
movups xmmword [rbp - 0x80], xmm1
mov qword [rbp + 0x30], 0x20002
movups xmmword [rbp - 0x60], xmm1
mov dword [rsp + 0x20], 1
movups xmmword [rbp + 0x38], xmm1
movups xmmword [rbp + 0x58], xmm0
call qword [case.0x1400f654f.0]
test eax, eax
js 0x14012fddd
nop word [rax + rax]
cmp dword [rsp + 0x50], ebx
jbe 0x14012fdc7
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x2b0], r12
mov edx, 0x3b
mov qword [rsp + 0x2b8], r14
xor r8d, r8d
mov qword [rsp + 0x2c0], r15
movups xmm1, xmmword [rax + 0x10]
psrldq xmm1, 8
movq rax, xmm1
mov edi, dword [rax + 0x24]
mov r15, qword [rax + 0x28]
mov r14d, dword [rax + 0x54]
mov r12, qword [rax + 0x58]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x14012fb43
add rax, rax
add r15, 2
add r15, rax
sub rdi, rax
sub rdi, 2
jmp 0x14012fb46
test rdi, rdi
jne 0x14012fb52
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rsi, rax
jmp 0x14012fb8b
mov rdx, qword [0x1402418e8]
lea rcx, ds:[rdi + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rsi + 8], rax
mov word [rax + rdi], bx
test r15, r15
je 0x14012fb8b
mov rcx, qword [rsi + 8]
mov r8, rdi
mov rdx, r15
call fcn.140188690
mov edx, 0x3b
lea rcx, [rsp + 0x70]
xor r8d, r8d
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
nop dword [rax]
cmp rax, 0xffffffffffffffff
je 0x14012fbf4
add rax, rax
lea r15, [r12 + 2]
add r15, rax
sub r14, rax
sub r14, 2
jne 0x14012fbc7
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
jmp 0x14012fc3a
mov rdx, qword [0x1402418e8]
lea rcx, [r14 + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rax], r14
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + r14], bx
test r15, r15
je 0x14012fc3a
mov rdx, r15
jmp 0x14012fc2e
test r14, r14
jne 0x14012fc03
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rdi, rax
jmp 0x14012fc3a
mov rdx, qword [0x1402418e8]
lea rcx, [r14 + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rax], r14
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + r14], bx
test r12, r12
je 0x14012fc3a
mov rdx, r12
mov rcx, qword [rdi + 8]
mov r8, r14
call fcn.140188690
mov r15, qword [rsp + 0x2c0]
mov r14d, 0xffffffff
mov r12, qword [rsp + 0x2b0]
test rdi, rdi
je 0x14012fcf2
nop dword [rax]
cmp qword [rdi], rbx
je 0x14012fcf2
movups xmm0, xmmword [rdi]
lea rax, str._PDO:
mov dword [rbp + 0x70], 1
mov qword [rbp + 0xa8], rax
lea r8d, [r14 + 0x51]
mov eax, 0x29
movaps xmmword [rbp + 0x80], xmm0
movups xmm0, xmmword [r13]
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x90], 1
mov qword [rbp + 0xa0], 0xc
lea edx, [rax - 0x25]
movaps xmmword [rbp + 0xc0], xmm0
mov dword [rbp + 0xb0], 1
mov dword [rbp + 0xd0], ebx
mov word [rbp + 0xe0], ax
call sym.ProcessHacker.exe_PhFormat
mov rbx, rax
test rax, rax
je 0x14012fd8e
lock inc dword [rax - 8]
jmp 0x14012fd8e
test rsi, rsi
je 0x14012fd89
nop dword [rax + rax]
cmp qword [rsi], rbx
je 0x14012fd89
movups xmm0, xmmword [rsi]
lea rax, str._PDO:
mov dword [rbp + 0xf0], 1
mov qword [rbp + 0x128], rax
lea rcx, [rbp + 0xf0]
mov eax, 0x29
movaps xmmword [rbp + 0x100], xmm0
movups xmm0, xmmword [r13]
mov dword [rbp + 0x110], 1
mov qword [rbp + 0x120], 0xc
lea edx, [rax - 0x25]
movaps xmmword [rbp + 0x140], xmm0
lea r8d, [rax + 0x27]
mov dword [rbp + 0x130], 1
mov dword [rbp + 0x150], ebx
mov word [rbp + 0x160], ax
call sym.ProcessHacker.exe_PhFormat
mov rbx, rax
test rax, rax
je 0x14012fd89
lock inc dword [rax - 8]
test rdi, rdi
je 0x14012fda5
lea rcx, [rdi - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012fda5
nop
call fcn.1400fbcc0
test rsi, rsi
je 0x14012fdbf
lea rcx, [rsi - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x14012fdbf
call fcn.1400fbcc0
mov r14, qword [rsp + 0x2b8]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [0x140245668]
call qword [case.0x1400f654f.0]
mov rax, rbx
jmp 0x14012fde4
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x280
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret