Function at 0x116c6b00
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x840
push ebx
push ebp
mov ebp, dword [esp + 0x84c]
push esi
xor esi, esi
push edi
cmp ebp, esi
je 0x116c6e97
mov ebx, dword [esp + 0x858]
cmp ebx, esi
je 0x116c6e97
push 0x5c
push ebp
call fcn.116d0c75
mov edx, eax
add esp, 8
cmp edx, esi
je 0x116c6e97
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], si
rep stosd dword es:[edi], eax
add edx, 2
push edx
push ebx
stosw word es:[edi], ax
push 0x117a01ec
lea eax, [esp + 0x3c]
push 0x207
push eax
call fcn.116d0db0
lea ecx, [esp + 0x44]
add esp, 0x14
xor ebx, ebx
mov edi, 0x57
test ecx, ecx
jne 0x116c6bc4
push edi
mov dword [0x117d0c94], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor ecx, ecx
cmp eax, esi
je 0x116c6c2a
mov al, byte [esp + 0x85c]
test al, 1
je 0x116c6c03
push 0xb7
mov dword [0x117d0c94], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x840
ret
push esi
push esi
push esi
push esi
lea edx, [esp + 0x20]
push esi
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x2c], esi
call fcn.116aea40
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
add esp, 0x1c
test ecx, ecx
je 0x116c6bed
mov ebx, eax
cmp eax, 0xffffffff
je 0x116c6b8b
test al, 0x10
je 0x116c6b8b
mov eax, 1
test al, bl
je 0x116c6b8d
mov ecx, eax
jmp 0x116c6b97
cmp ecx, esi
je 0x116c6c2a
test al, 2
je 0x116c6c2a
push 5
mov dword [0x117d0c94], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x840
ret
lea edx, [esp + 0x30]
test edx, edx
je 0x116c6e9c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x116c6c69
test al, 0x10
jne 0x116c6e27
lea ecx, [esp + 0x30]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x30]
push esi
push eax
call ebx
test eax, eax
jne 0x116c6e27
mov ecx, 0x103
lea edi, [esp + 0x442]
mov word [esp + 0x440], si
push 0x207
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x444]
push ecx
push edx
mov ebp, 1
stosw word es:[edi], ax
call fcn.116d0d04
lea eax, [esp + 0x44c]
push 0x5c
push eax
call fcn.116d1610
lea ecx, [esp + 0x454]
mov esi, eax
push ecx
call fcn.116d0747
add esp, 0x18
cmp eax, 2
jbe 0x116c6d1a
mov edi, 0x5c
cmp word [esp + 0x440], di
jne 0x116c6d1a
cmp word [esp + 0x442], di
jne 0x116c6d1a
lea edx, [esp + 0x444]
push edi
push edx
call fcn.116d1610
add esp, 8
test eax, eax
je 0x116c6db5
add eax, 2
push edi
push eax
call fcn.116d1610
add esp, 8
mov esi, eax
test esi, esi
je 0x116c6db5
lea eax, [esp + 0x440]
mov word [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x116c6d6f
test bl, 1
je 0x116c6d57
mov ecx, ebx
lea edx, [esp + 0x440]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x116c6df9
cmp ebx, 0xffffffff
je 0x116c6d78
test edi, edi
jne 0x116c6d8a
lea ecx, [esp + 0x440]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x116c6df9
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.116d1610
mov esi, eax
add esp, 8
test esi, esi
jne 0x116c6d22
test ebp, ebp
je 0x116c6df9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x116c6dea
test al, 0x10
jne 0x116c6df5
test al, 1
je 0x116c6ddb
and al, 0xfe
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x116c6df9
lea eax, [esp + 0x30]
push 0
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x116c6e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x117d0c94], eax
je 0x116c6ea9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x840
ret
mov ebp, dword [esp + 0x854]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
push ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x860]
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebp
call fcn.116d0747
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
lea edx, [esp + 0x34]
push eax
mov dword [esp + 0x30], edx
call fcn.116d0747
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push ecx
push 0x116c6ec0
push 0x10
push ebp
call fcn.116c4510
mov eax, dword [esp + 0x34]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
mov edi, 0x57
push edi
mov dword [0x117d0c94], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x840
ret