Function at 0x10038910
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x158]
mov ecx, 0x56
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
je 0x1003895b
xor eax, eax
jmp 0x10038b69
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 0x100389c6
jmp 0x10038afd
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 0x10038a63
jmp 0x10038afd
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 0x10038a83
jmp 0x10038afd
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 0x10038aa0
jmp 0x10038afd
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 0x10038ac3
jmp 0x10038afd
mov dword [ebp - 0x94], 0xc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0
mov esi, esp
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.100705ff
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x30], 0
je 0x10038b16
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 0x10038b2f
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 0x10038b48
mov esi, esp
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.100705ff
cmp dword [ebp - 0x18], 0
jne 0x10038b66
mov esi, esp
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.100705ff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x10038b9c]
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, 0x158
cmp ebp, esp
call fcn.100705ff
mov esp, ebp
pop ebp
ret 4