Function at 0x101178d9
Capabilities:
Check if file exists

Disassembly:
push 0x28
mov eax, 0x1017b656
call fcn.1012b67a
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
je 0x10117b47
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x10117b47
cmp dword [esi + 0x14], ebx
je 0x10117b47
cmp dword [esi + 0x18], ebx
je 0x10117b47
cmp dword [esi + 0x1c], ebx
je 0x10117b47
cmp dword [esi + 0x10], 1
jne 0x1011792f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10117b47
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10117953
mov esi, ebx
jmp 0x10117b30
push 1
push str.SeSecurityPrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
push 1
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x24]
mov ebx, eax
call fcn.10117b4f
push 1
push str.SeRestorePrivilege
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
call fcn.10117b4f
and dword [ebp - 0x34], 0
add esp, 0x24
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
and dword [ebp - 0x14], 0
call fcn.10007945
push eax
lea ecx, [ebp - 0x10]
call fcn.10008bfd
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
cmp dword [esi + 4], eax
je 0x10117a60
call fcn.1012998f
cmp dword [eax + 4], 0
je 0x10117a60
cmp dword [esi + 0x10], 4
jne 0x10117a52
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10117bcf
add esp, 0xc
test eax, eax
je 0x10117a03
lea eax, [ebp - 0x34]
push eax
push 0x80100
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10117a60
test ebx, ebx
je 0x10117a19
push 0
push str.SeSecurityPrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x10117a31
push 0
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10117af4
push 0
push str.SeRestorePrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
jmp 0x10117af4
cmp dword [esi + 0x10], 1
jne 0x10117a60
lea ecx, [ebp - 0x2c]
call fcn.1004c8fb
cmp dword [esi + 0x10], 4
jne 0x10117a8e
call fcn.1012998f
cmp dword [eax + 4], 0
je 0x10117a8e
push 0
push dword [esi + 0x18]
push 0
push dword [esi + 0x14]
push VariantClear
push dword [esi + 0x10]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
jmp 0x10117aa8
push 0
push dword [esi + 0x18]
push 0
push dword [esi + 0x14]
push VariantClear
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov edi, eax
test ebx, ebx
je 0x10117ac0
push 0
push str.SeSecurityPrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x10117ad8
push 0
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10117af0
push 0
push str.SeRestorePrivilege
push dword [ebp - 0x24]
call fcn.10117b4f
add esp, 0xc
test edi, edi
je 0x10117af8
xor esi, esi
jmp 0x10117afe
and dword [esi], 0
xor esi, esi
inc esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], 0
je 0x10117b14
lea ecx, [ebp - 0x2c]
call fcn.10054039
and dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 0
push dword [ebp - 0x34]
call fcn.10115ec4
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x10117b43
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10117b49
xor eax, eax
call fcn.1012b643
ret