Function at 0x1008bd6
Capabilities:
Check if file exists

Disassembly:
push 0x80
mov eax, 0x100a13b
call fcn.010095b8
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x74], ebx
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
call fcn.01008872
mov dword [ebp - 4], ebx
call fcn.0100721f
cmp esi, ebx
je 0x1008ea1
cmp byte [ebp + 0xc], bl
jne 0x1008c35
cmp byte [ebp + 0x10], bl
je 0x1008ea1
mov eax, dword [ebp - 0x40]
mov edi, 0x1001c64
cmp eax, ebx
je 0x1008c46
cmp word [eax], bx
jne 0x1008c49
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call sub.ADVAPI32.dll_AuditQueryGlobalSaclW
test al, al
jne 0x1008c72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1008c72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
jmp 0x1008ea8
cmp dword [ebp - 0x30], ebx
je 0x1008ca9
push 2
push 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x1008c98
mov dword [ebp - 0x38], 0x538
jmp 0x1008ea8
cmp dword [ebp - 0x74], ebx
jne 0x1008ca9
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], ebx
push esi
push dword [ebp - 0x30]
call fcn.01007f50
push 1
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor eax, eax
cmp dword [ebp - 0x30], ebx
push ebx
push dword [ebp - 0x30]
setne al
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
push 8
push 1
lea eax, [ebp - 0x8c]
push eax
call sub.ADVAPI32.dll_ConvertSecurityDescriptorToStringSecurityDescriptorW
cmp dword [ebp - 0x30], ebx
je 0x1008d04
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.01008b7d
cmp dword [ebp - 0x18], ebx
jne 0x1008d21
push 0x1001c5c
lea ecx, [ebp - 0x2c]
call fcn.01008b7d
cmp dword [ebp - 0x34], ebx
je 0x1008d32
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push esi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp al, bl
je 0x1008c64
push 0x1001c50
lea ecx, [ebp - 0x2c]
call fcn.01008ad8
cmp byte [ebp + 0xc], bl
je 0x1008d63
push 0x1001c48
lea ecx, [ebp - 0x2c]
call fcn.01008ad8
cmp byte [ebp + 0x10], bl
je 0x1008d71
push edi
lea ecx, [ebp - 0x2c]
call fcn.01008ad8
push 0x1001c44
lea ecx, [ebp - 0x68]
call fcn.01008baa
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.01008907
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.010086ba
push dword [ebp - 0x40]
lea ecx, [ebp - 0x68]
call fcn.01008baa
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.01008907
push ebx
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.010086ba
push 0x1001c3c
lea ecx, [ebp - 0x68]
call fcn.01008baa
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.01008907
push ebx
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.010086ba
push dword [ebp - 0x34]
lea ecx, [ebp - 0x68]
call fcn.01008baa
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.01008907
push ebx
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.010086ba
push 0x1001c38
lea ecx, [ebp - 0x68]
call fcn.01008baa
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.01008907
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.010086ba
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1008e49
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push esi
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test al, al
je 0x1008c64
cmp dword [ebp - 0x3c], ebx
je 0x1008e8a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test al, al
je 0x1008c64
cmp dword [ebp - 0x4c], ebx
jne 0x1008e8a
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x30]
push dword [ebp - 0x44]
call sub.ADVAPI32.dll_AuditSetGlobalSaclW
mov dword [ebp - 0x30], ebx
cmp al, bl
jne 0x1008eb6
jmp 0x1008c64
mov dword [ebp - 0x38], 0x57
cmp dword [ebp - 0x30], ebx
je 0x1008eb6
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x34], ebx
je 0x1008ec4
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x3c], ebx
je 0x1008ed5
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x3c], ebx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.010086ba
mov eax, dword [ebp - 0x38]
call fcn.0100964a
ret 0x14