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

Disassembly:
sub esp, 0x6c8
push ebx
push ebp
or ecx, 0xffffffff
mov eax, 0xfffffffe
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov ecx, 0x154
xor eax, eax
lea edi, [esp + 0x185]
mov byte [esp + 0x184], bl
mov ebp, 1
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000d588]
mov esi, 2
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x184]
push ebp
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebx
call dword [ecx + 0x770]
mov eax, dword [0x1000d588]
lea edx, [eax + 0x44]
lea ecx, [eax + 0x5d4]
mov dword [0x1000d2a4], edx
lea edx, [eax + 0xc8]
mov dword [0x1000d2a0], ecx
mov dword [0x1000d29c], edx
lea ecx, [eax + 0x20]
lea edx, [eax + 0x5a8]
mov dword [0x1000d298], ecx
mov dword [0x1000d294], edx
lea ecx, [eax + 0xec]
lea edx, [eax + 0x518]
mov dword [0x1000d290], ecx
mov dword [0x1000d28c], edx
mov dword [eax + 0x1b4], 0x10006450
mov eax, dword [0x1000d588]
mov dword [eax + 0x648], 8
mov ecx, dword [0x1000d588]
mov dword [ecx + 0x64c], ebp
mov edx, dword [0x1000d588]
mov dword [edx + 0x650], ebp
mov eax, dword [0x1000d588]
lea edx, [esp + 0x18]
mov dword [eax + 0x654], ebp
mov ecx, dword [0x1000d588]
push edx
mov dword [ecx + 0x658], esi
mov eax, dword [0x1000d588]
call dword [eax + 0x9e0]
lea edi, [esp + 0x2e8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x58]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
mov edi, str.Task
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10001747
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea edi, [esp + 0x2dc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Profile
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100017bb
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea edi, [esp + 0x2dc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.gTask
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or esi, 0xffffffff
cmp eax, esi
jne 0x10001831
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
mov edx, dword [0x1002f5ac]
mov eax, dword [0x1000d588]
push edx
call dword [eax + 0x6c8]
mov edi, eax
mov ecx, 0x5f
xor eax, eax
mov dword [0x1000d58c], edi
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000d588]
add esp, 4
mov edx, dword [ecx + 0x738]
mov ecx, dword [0x1000d58c]
mov al, byte [edx + 0x1674]
mov dword [ecx + 0x168], eax
mov edx, dword [0x1000d58c]
mov dword [edx + 0x16c], ebp
mov eax, dword [0x1000d58c]
mov dword [eax + 0x170], ebp
mov ecx, dword [0x1000d58c]
mov dword [ecx + 0x174], 0x10
mov edx, dword [0x1000d58c]
mov word [edx + 0x164], si
mov eax, dword [0x1000d58c]
mov word [eax], bx
call fcn.10001560
call fcn.10001490
mov ecx, dword [0x1002f5a8]
push 0x1002f5b0
push ecx
mov dword [0x1002f5b0], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [0x1002f5b8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
mov dword [0x1002f5b4], eax
mov byte [0x1000d428], 1
mov dword [0x1000d450], esi
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
mov ecx, 0x2710
div ecx
push edx
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call fcn.10009d20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c8
ret