Function at 0x1400c5de0
Capabilities:
Parse pe header
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push rbp
push r13
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
xor r13d, r13d
mov r14, rcx
mov r15d, r13d
mov qword [rbp - 0x11], r13
mov qword [rbp - 0x19], r13
mov qword [rbp + 0x7f], r13
call fcn.1400c5320
mov rcx, rax
test rax, rax
jne 0x1400c5e25
add rsp, 0xa8
pop r15
pop r14
pop r13
pop rbp
ret
mov eax, 0x5a4d
mov qword [rsp + 0xd0], rbx
cmp word [rcx], ax
jne 0x1400c5eee
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0xffffffe
ja 0x1400c5eee
cmp dword [rdx + rcx], 0x4550
jne 0x1400c5eee
lea r8, [rcx + 0x88]
add r8, rdx
mov eax, dword [r8]
test eax, eax
je 0x1400c5eee
cmp dword [r8 + 4], r13d
je 0x1400c5eee
lea r9, [rcx + rax]
mov word [rsp + 0x28], r13w
lea rax, str.DllGetClassObject
mov qword [rsp + 0x20], rax
call fcn.140104bd0
test rax, rax
je 0x1400c5eee
lea r8, [rbp - 9]
lea rdx, [0x140187ac0]
lea rcx, [0x140187980]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c623d
mov rcx, qword [rbp - 9]
lea r9, [rbp - 0x11]
lea r8, [0x140187990]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140101f48.0]
mov rcx, qword ds:[rbp - 9]
mov ebx, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
test ebx, ebx
js 0x1400c623d
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r13
lea rdx, str.rootCIMV2
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov rax, qword [rcx]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov rax, qword [rax + 0x18]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c623d
mov qword [rsp + 0xa0], rsi
lea rcx, str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x90], r12
call sym.ProcessHacker.exe_PhCountStringZ
mov rsi, rax
lea rcx, [r14 + 0xf8]
add rsi, rsi
call sym.ProcessHacker.exe_PhCountStringZ
mov rdx, qword [0x140213b58]
mov rdi, rax
add rdi, rdi
lea rbx, [rdi + rsi]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r12, rax
lea rdx, str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
mov r8, rsi
mov qword [rax], rbx
add rax, 0x10
mov qword [r12 + 8], rax
mov word [rax + rbx], r13w
mov rcx, qword [r12 + 8]
call fcn.140165120
mov rcx, qword ds:[r12 + 8]
lea rdx, [r14 + 0xf8]
add rcx, rsi
mov r8, rdi
call fcn.140165120
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp + 0x7f]
mov r8, qword [r12 + 8]
mov r9d, 0x30
mov qword [rsp + 0x28], rdx
lea rdx, [0x1401c4c38]
mov qword [rsp + 0x20], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [case.0x140101f48.0]
mov rsi, qword [rsp + 0xa0]
mov edi, 0xffffffff
test eax, eax
js 0x1400c6219
mov rdx, qword [0x140213b60]
lea ecx, [rdi + 0x11]
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140213cd0]
lea edx, [rdi + 5]
lea r8d, [rdi + 9]
mov r15, rax
mov dword [rax], r13d
mov dword [rax + 4], 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rbp + 0x6f], r13d
lea rdx, [rbp + 0x6f]
mov qword [r15 + 8], rax
lea r9, [rbp + 0x77]
mov rcx, qword [rbp + 0x7f]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c6219
cmp dword [rbp + 0x6f], r13d
je 0x1400c6219
mov rcx, qword [0x140213cd0]
mov edx, 4
lea r8d, [rdx + 0x1c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xorps xmm0, xmm0
mov qword [rsp + 0x28], r13
mov rbx, rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 7]
xor r8d, r8d
movups xmmword [rax], xmm0
lea rdx, str.Namespace
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c60e6
mov rcx, qword [rbp + 0xf]
call sym.ProcessHacker.exe_PhCreateString
lea rcx, ds:[rbp + 7]
mov qword [rbx + 8], rax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x77]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r13
lea rdx, str.Provider
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c6129
mov rcx, qword [rbp + 0xf]
call sym.ProcessHacker.exe_PhCreateString
lea rcx, [rbp + 7]
mov qword [rbx], rax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x77]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r13
lea rdx, str.User
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
js 0x1400c616d
mov rcx, qword [rbp + 0xf]
call sym.ProcessHacker.exe_PhCreateString
lea rcx, [rbp + 7]
mov qword [rbx + 0x18], rax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400c61a4
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400c61a4
lea r8, [rbp - 1]
call fcn.1400c59e0
test eax, eax
js 0x1400c61a4
mov rax, qword [rbp - 1]
mov qword [rbx + 0x10], rax
mov eax, dword [r15]
mov ecx, dword [r15 + 4]
cmp eax, ecx
jne 0x1400c61da
mov r8, qword [r15 + 8]
lea eax, [rcx + rcx]
mov rcx, qword [0x140213cd0]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [r15 + 4], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [r15 + 8], rax
mov eax, dword [r15]
mov ecx, eax
lea rdx, [rbp + 0x6f]
mov rax, qword [r15 + 8]
lea r9, [rbp + 0x77]
mov qword [rsp + 0x20], rdx
mov r8d, 1
mov edx, edi
mov qword [rax + rcx*8], rbx
inc dword [r15]
mov rcx, qword [rbp + 0x7f]
mov dword [rbp + 0x6f], r13d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140101f48.0]
test eax, eax
jns 0x1400c6072
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], edi
mov r12, qword [rsp + 0x90]
cmp edi, 1
mov rdi, qword [rsp + 0x98]
jne 0x1400c623d
call fcn.140106290
mov rcx, qword [rbp + 0x7f]
mov rbx, qword [rsp + 0xd0]
test rcx, rcx
je 0x1400c625b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword ds:[rbp - 0x19]
test rcx, rcx
je 0x1400c6272
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400c6288
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x140101f48.0]
mov rax, r15
add rsp, 0xa8
pop r15
pop r14
pop r13
pop rbp
ret