Function at 0x10039120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.100705ff
test eax, eax
jne 0x1003916b
xor eax, eax
jmp 0x10039337
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 0
mov byte [ebp - 0x7e], 0
mov byte [ebp - 0x7d], 0
mov byte [ebp - 0x7c], 0
mov byte [ebp - 0x7b], 1
mov esi, esp
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.100705ff
test eax, eax
jne 0x100391d6
jmp 0x100392e9
push 0x20
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.1006ff30
add esp, 0xc
mov eax, 0x20
imul ecx, eax, 0
mov dword [ebp + ecx - 0x70], 0x1f01ff
mov eax, 0x20
imul ecx, eax, 0
mov dword [ebp + ecx - 0x6c], 2
mov eax, 0x20
imul ecx, eax, 0
mov dword [ebp + ecx - 0x68], 3
mov eax, 0x20
imul ecx, eax, 0
mov dword [ebp + ecx - 0x5c], 0
mov eax, 0x20
imul ecx, eax, 0
mov dword [ebp + ecx - 0x58], 5
mov eax, 0x20
imul ecx, eax, 0
mov edx, dword [ebp - 0x30]
mov dword [ebp + ecx - 0x54], edx
mov esi, esp
lea eax, [ebp - 0x3c]
push eax
push 0
lea ecx, [ebp - 0x70]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp esi, esp
call fcn.100705ff
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1003926d
jmp 0x100392e9
mov esi, esp
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp esi, esp
call fcn.100705ff
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1003928d
jmp 0x100392e9
mov esi, esp
push 1
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp esi, esp
call fcn.100705ff
test eax, eax
jne 0x100392aa
jmp 0x100392e9
mov esi, esp
push 0
mov eax, dword [ebp - 0x3c]
push eax
push 1
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp esi, esp
call fcn.100705ff
test eax, eax
jne 0x100392cd
jmp 0x100392e9
mov esi, esp
mov eax, dword [ebp - 0x48]
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp esi, esp
call fcn.100705ff
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x30], 0
je 0x10039302
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, esp
call fcn.100705ff
cmp dword [ebp - 0x3c], 0
je 0x1003931b
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.100705ff
cmp dword [ebp - 0x48], 0
je 0x10039334
mov esi, esp
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.100705ff
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x10039368]
call fcn.100705a7
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
add esp, 0x144
cmp ebp, esp
call fcn.100705ff
mov esp, ebp
pop ebp
ret 4