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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x40cc
call fcn.10115600
mov eax, dword [0x10182f40]
xor eax, esp
mov dword [esp + 0x40c8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0xb0], 0x10111920
mov dword [esp + 0xb4], 0x10111980
mov dword [esp + 0xb8], 0x10111990
mov dword [esp + 0xbc], 0x101119e0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
call fcn.10111a00
lea ecx, [esp + 0x60]
call fcn.1010f010
lea eax, [esp + 0x58]
mov dword [esp + 0x10], 0x10111870
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x10111890
push eax
lea edx, [esp + 0xb8]
mov dword [esp + 0x60], 0x10111870
mov dword [esp + 0x64], 0x10111890
call fcn.10111120
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x1010e8fc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.1010f080
xor ebx, ebx
mov dword [esp + 0x38], ebx
test esi, esi
jne 0x1010ec5f
xor ecx, ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x7c], ecx
jbe 0x1010ec4f
mov eax, dword [esp + 0x70]
add eax, 0x1d
mov dword [esp + 0x18], eax
nop word [eax + eax]
mov eax, dword [esp + 0xa0]
push edi
mov esi, dword [eax + ecx*4 + 4]
sub esi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, edi
cmp esi, dword [esp + 0x38]
jbe 0x1010e98d
push ebx
call fcn.1011cd46
lea eax, [esi + 1]
mov dword [esp + 0x3c], esi
lea eax, [edi + eax*2]
add esp, 4
test eax, eax
je 0x1010ec3b
push eax
call fcn.1011cfc7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1010ec3d
mov esi, dword [esp + 0x2c]
push edi
push esi
push ebx
call fcn.10118e40
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push esi
call edi
mov ecx, 0x5c
push esi
mov word [ebx + eax*2], cx
call edi
mov edi, dword [esp + 0x28]
inc eax
mov edx, dword [esp + 0xa0]
lea ecx, [ebx + eax*2]
mov eax, dword [edx + edi*4]
mov edx, dword [edx + edi*4 + 4]
sub edx, eax
test ecx, ecx
je 0x1010e9f0
mov esi, dword [esp + 0xa4]
lea esi, [esi + eax*2]
test edx, edx
je 0x1010e9f0
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x1010e9e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
cmp byte [eax - 4], 0
jne 0x1010ea52
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
push eax
push edi
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x80]
call fcn.101114e0
mov esi, eax
add esp, 0x20
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x1010ec4f
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 1]
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
je 0x1010ea96
nop dword [eax]
cmp word [esi], 0x2f
jne 0x1010ea8b
xor eax, eax
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x1010ea70
mov edi, dword [esp + 0x18]
add edi, 0xffffffe3
mov dword [esp + 0x20], edi
cmp byte [edi + 0x19], 0
je 0x1010eab5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1010ec1e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1010ead6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1010ead6
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 0xffffffff
je 0x1010eb05
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x1010eb88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x1010eb84
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1010eb7c
lea edx, [esp + 0x50]
mov dword [esp + 0x50], edi
mov dword [esp + 0x34], ebx
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x38]
push edx
call dword [eax + 8]
test eax, eax
jne 0x1010eb73
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 0xffffffff
je 0x1010eb65
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x1010eb84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x1010eb7c
cmp eax, 1
je 0x1010ec1e
test edi, edi
jne 0x1010ec44
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea edx, [edx + ecx]
lea ecx, [esp + 0x44]
call fcn.10111760
add esp, 4
test eax, eax
jne 0x1010ec44
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], eax
jne 0x1010ec44
mov eax, dword [esp + 0x18]
cmp byte [eax - 1], 0
je 0x1010ebd8
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x1010ebf2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1010ebf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1010ec44
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x1010ec05
push dword [eax - 9]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1010ec1e
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 0x20
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x7c]
jae 0x1010ec4b
mov edi, dword [esp + 0x2c]
jmp 0x1010e940
xor ebx, ebx
mov esi, 2
jmp 0x1010ec4f
mov esi, 0xb
jmp 0x1010ec4f
mov esi, dword [esp + 0x1c]
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
add esp, 8
push dword [esp + 0x90]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x9c]
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x24]
push dword [esp + 0xa8]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x2c]
push dword [esp + 0xb4]
lea eax, [esp + 0x2c]
push eax
call dword [esp + 0x34]
push dword [esp + 0xc0]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x3c]
push dword [esp + 0xcc]
lea eax, [esp + 0x3c]
push eax
call dword [esp + 0x44]
lea edx, [esp + 0x40]
mov dword [esp + 0xd4], 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xd8], 0
call fcn.1010ef70
lea ecx, [esp + 0x90]
call fcn.1010f010
push ebx
call fcn.1011cd46
mov ecx, dword [esp + 0x4108]
add esp, 0x34
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101149a0
mov esp, ebp
pop ebp
ret