Function at 0x428990
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x944
mov al, byte [0x481910]
push ebx
push ebp
mov ebp, ecx
push edi
mov byte [esp + 0x48], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x49]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 5
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 1
call fcn.0042b620
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4289ff
push ebx
call fcn.0042b5e0
add esp, 4
push esi
lea ecx, [esp + 0x4c]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x4b]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x428a36
lea eax, [esp + 0x4c]
push 0x4695f4
push eax
call esi
lea ecx, [esp + 0x4c]
push 0x474f00
push ecx
call esi
call fcn.004455e0
test eax, eax
je 0x428a72
mov ecx, ebp
call fcn.00428860
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428a72
and al, 0xfe
or al, 2
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 2
lea ecx, [esp + 0x158]
push 0x800
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea edx, [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push 1
push eax
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov ebp, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp eax, ebx
je 0x428ad6
push eax
push 0x10000000
lea ecx, [esp + 0x15c]
push 2
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x428aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x474ffc
call fcn.00446e00
add esp, 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
push ecx
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x428b28
push eax
push 0x10000000
lea edx, [esp + 0x15c]
push 2
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x428b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x474fd0
call fcn.00446e00
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xb
push 1
push edx
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x428b7a
push eax
push 0x10000000
lea eax, [esp + 0x15c]
push 2
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
jmp 0x428b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x474f98
call fcn.00446e00
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push eax
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x428bd0
push eax
push 0x10000000
lea ecx, [esp + 0x15c]
push 2
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x428be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x474f64
call fcn.00446e00
add esp, 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
push ecx
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x428c30
push eax
push 0x10000000
lea edx, [esp + 0x15c]
push 2
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], ebx
jmp 0x428c46
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x474f38
call fcn.00446e00
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_GetAce]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x158]
push ebx
push edx
call esi
test eax, eax
je 0x428c68
mov eax, dword [esp + 0x14]
or byte [eax + 1], 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x154]
push eax
push 1
push ecx
call esi
test eax, eax
je 0x428c85
mov eax, dword [esp + 0x14]
or byte [eax + 1], 1
lea edx, [esp + 0x14]
lea eax, [esp + 0x154]
push edx
push 2
push eax
call esi
test eax, eax
je 0x428ca2
mov eax, dword [esp + 0x14]
or byte [eax + 1], 1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x154]
push ecx
push 3
push edx
call esi
test eax, eax
je 0x428cbf
mov eax, dword [esp + 0x14]
or byte [eax + 1], 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x154]
push eax
push 4
push ecx
call esi
test eax, eax
pop esi
je 0x428cdd
mov eax, dword [esp + 0x10]
or byte [eax + 1], 1
lea edx, [esp + 0x34]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea eax, [esp + 0x150]
push ebx
push eax
lea ecx, [esp + 0x3c]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push ebx
push ebx
lea edx, [esp + 0x3c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x34]
push ecx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], eax
call fcn.0042b3e0
add esp, 4
test eax, eax
je 0x428d67
lea edx, [esp + 0x34]
lea eax, [esp + 0x48]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x428dc6
call edi
push eax
push 0x474f0c
call fcn.00446e00
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x944
ret
lea ecx, [esp + 0x28]
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x428d96
call fcn.00445b80
test eax, eax
je 0x428db6
call edi
push eax
push 0x474ee0
call fcn.00446e00
add esp, 8
jmp 0x428db6
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428db6
and al, 0xfe
lea ecx, [esp + 0x48]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x24], ebx
je 0x428dc6
push 1
call fcn.0042b5e0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x944
ret