Function at 0x10537fe
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
push 1
push 0x11f4
push 0x100a090
lea ecx, [ebp - 0x28]
call fcn.01055826
xor ebx, ebx
mov eax, 0x1010420
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [eax + 4]
push 0x40
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xd8]
push ebx
push eax
mov dword [ebp - 0xdc], ebx
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
push 0x13dd
push 0x1077450
mov dword [ebp - 0x30], ebx
xor esi, esi
mov dword [ebp - 0x38], ebx
call fcn.01064977
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x120a
jge 0x10538ae
mov word [ebp - 0x22], ax
jmp 0x1053e00
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x98]
push 3
mov dword [ebp - 0xc4], eax
pop eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x1132
push dword [eax + 0x10]
mov dword [ebp - 0xdc], 0xffff0000
mov dword [ebp - 0xd8], 0xffff0002
mov dword [ebp - 0xd4], 0x27
mov dword [ebp - 0xb0], 1
call edi
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x1053929
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x1217
jmp 0x10538a5
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x113f
push dword [eax + 0x10]
mov ecx, 0x1217
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], cx
mov dword [ebp - 0x8c], 8
mov dword [ebp - 0x80], 0xf000
mov dword [ebp - 0x84], ebx
call edi
cmp dword [ebp - 4], ebx
je 0x105397e
cmp dword [ebp - 4], 0xffffffff
je 0x105397e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10539a7
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x1225
jmp 0x10538a5
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, 0x1225
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 1
push dword [ebp - 4]
mov dword [ebp - 0x28], ebx
call edi
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x10539e7
mov dword [ebp - 0x28], 0x8007000e
mov eax, 0x122a
jmp 0x10538a5
push dword [ebp - 0x30]
mov ecx, 0x122a
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], cx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push 1
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1053a27
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x122e
jmp 0x10538a5
mov eax, 0x122e
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x3c]
push ebx
lea edi, [eax + 0x5cc]
add eax, 0x5c8
push 0x157d
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0x13fd
push 0x1050ab6
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x44], edi
call fcn.0106704a
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x123a
jl 0x10538a5
mov ecx, dword [ebp - 0x2c]
mov word [ebp - 0x24], ax
mov eax, dword [edi]
mov edi, dword [ecx]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], ebx
cmp eax, ebx
jbe 0x1053cc3
add edi, 0xc
mov dword [ebp - 0x34], edi
cmp dword [edi - 8], ebx
jne 0x1053ad1
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1053cae
test dword [eax + 0x1c], 0x10000000
je 0x1053cae
push dword [edi - 4]
push 0x1007ee0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016f01
jmp 0x1053cae
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1053b16
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1053b16
test dword [eax + 0x1c], 0x10000000
je 0x1053b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
mov eax, dword [0x1075318]
push dword [edi - 4]
push 0x1007ee0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105aa25
push 0x20
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
mov eax, 0x1252
cmp esi, ebx
je 0x1053de8
push 8
mov word [ebp - 0x24], ax
pop ecx
xor eax, eax
mov dword [ebp - 0x28], ebx
mov edi, esi
push 8
rep stosd dword es:[edi], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esi + 0x1c], eax
cmp eax, ebx
mov eax, 0x1257
je 0x1053de8
mov word [ebp - 0x24], ax
mov dword [ebp - 0x28], ebx
mov edi, dword [esi + 0x1c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x34]
mov eax, dword [esi + 0x1c]
mov dword [esi], 3
mov dword [esi + 4], 2
push dword [edi + 4]
add eax, 4
push eax
call fcn.01055bde
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x125e
jl 0x10538a5
mov word [ebp - 0x24], ax
push dword [edi]
push dword [esi + 0x1c]
call fcn.01055bde
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x125f
jl 0x10538a5
mov word [ebp - 0x24], ax
push dword [edi - 4]
lea eax, [esi + 0x10]
push eax
call fcn.01055bde
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x1261
jl 0x10538a5
mov word [ebp - 0x24], ax
push dword [edi + 4]
lea eax, [ebp - 0x64]
push 0x13ed
push dword [0x1077408]
push eax
call fcn.01064856
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x1263
jl 0x10538a5
mov edi, dword [ebp + 8]
push ebx
push esi
push 3
push dword [ebp - 0x64]
mov word [ebp - 0x24], ax
push dword [ebp - 0x40]
push edi
call fcn.0104c343
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x1265
jl 0x10538a5
mov word [ebp - 0x24], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x88], eax
mov eax, 0x2000
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push 0x113f
push dword [edi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x8c], 8
call edi
mov eax, dword [ebp - 0x38]
push dword [eax]
mov eax, dword [ebp - 0x34]
push dword [eax - 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1053cab
mov eax, dword [esi + 0xc]
push 0x10
mov dword [ebp - 0x88], eax
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x113f
push dword [eax + 0x10]
mov dword [ebp - 0x8c], 8
call edi
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add edi, 0x20
mov dword [ebp - 0x34], edi
cmp eax, dword [ebp - 0x4c]
jb 0x1053a95
push 0x13e2
mov ecx, 0x1077450
call fcn.0106495c
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0106478e
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x1276
jl 0x10538a5
push 0x20
mov word [ebp - 0x24], ax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
mov eax, 0x1279
cmp esi, ebx
je 0x1053de8
mov word [ebp - 0x24], ax
push 8
pop ecx
mov dword [ebp - 0x28], ebx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], ebx
mov dword [esi], 2
cmp dword [ecx + 0x584], ebx
push ebx
sete al
push esi
push 3
inc eax
mov dword [esi + 4], eax
push dword [ebp - 0x58]
push dword [ebp - 0x40]
push edi
call fcn.0104c343
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x1282
jl 0x10538a5
mov word [ebp - 0x24], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x584]
neg ecx
sbb ecx, ecx
mov eax, 0x1000
and ecx, eax
add ecx, eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push 0x113f
push dword [edi + 0x10]
mov dword [ebp - 0x8c], 8
mov dword [ebp - 0x80], 0xf000
mov dword [ebp - 0x84], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor esi, esi
call fcn.01053030
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov eax, 0x128c
jl 0x10538a5
push dword [ebp - 0x40]
mov word [ebp - 0x24], ax
push 2
push 0x1102
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1053df4
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x128f
jmp 0x10538a5
mov dword [ebp - 0x28], 0x8007000e
jmp 0x10538a5
mov eax, 0x128f
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 8]
push esi
call fcn.01045ff1
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.010635b3
lea ecx, [ebp - 0x64]
call fcn.010635b3
cmp dword [ebp - 4], ebx
je 0x1053e3c
cmp dword [ebp - 4], 0xffffffff
je 0x1053e3c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x98]
call fcn.010635b3
lea ecx, [ebp - 0x28]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4