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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, ecx
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 0x10], eax
push ebx
push esi
mov ecx, dword [eax + 0x24]
mov ebx, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 0x11
mov byte [ebp - 0x20], dl
mov dword [ebp - 0x1c], 0x12
mov byte [ebp - 0x18], dl
mov dword [ebp - 8], edx
push edi
mov edi, dword [eax + 8]
test ecx, ecx
je 0x1001cf1d
push edx
lea edx, [ebp - 8]
call fcn.10030a2b
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x24]
push 2
call fcn.10039af9
mov esi, eax
test esi, esi
jns 0x1001cf45
push esi
push 0x10e
mov ecx, 0x1000472c
call fcn.1003a254
jmp 0x1001d116
xor edx, edx
mov ecx, edi
push 0
inc edx
call fcn.1003670e
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001cf5a
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
test eax, eax
jne 0x1001cf67
push eax
push eax
jmp 0x1001cf6d
push eax
push 0x1001ce10
push 3
pop edx
call fcn.1008291e
test eax, eax
jne 0x1001d019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x1001d019
cmp esi, 0x4d3
je 0x1001d00a
cmp esi, 0x800704d3
je 0x1001d00a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10080e5a
test eax, eax
je 0x1001d019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1001cfca
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1001cfdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001cfe2
movzx eax, ax
or eax, edi
jmp 0x1001cfe2
mov eax, 0x80004005
mov edi, 0x1000472c
test eax, eax
jns 0x1001cff8
push eax
push 0x14d
mov ecx, edi
call fcn.1003a254
mov esi, 0xc1420117
mov ecx, edi
push esi
push 0x14e
jmp 0x1001d0d2
test esi, esi
jns 0x1001d019
push esi
push 0x13d
jmp 0x1001d0cd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001d05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1001d03c
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1001d051
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001d056
movzx esi, si
or esi, edi
jmp 0x1001d056
mov esi, 0x80004005
push esi
push 0x156
jmp 0x1001d0cd
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push 0
mov edx, edi
mov ecx, dword [ecx + 0x24]
call fcn.10034ed3
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
js 0x1001d0d7
mov ecx, ebx
call fcn.10080e5a
test eax, eax
je 0x1001d0d7
push 0
push 0
push 2
pop edx
mov ecx, ebx
call fcn.1008291e
test eax, eax
jne 0x1001d0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1001d0ad
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1001d0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001d0c7
movzx esi, si
or esi, edi
jmp 0x1001d0c7
mov esi, 0x80004005
push esi
push 0x166
mov ecx, 0x1000472c
call fcn.1003a254
test dword [ebp - 8], 0x20000
jne 0x1001d0eb
push 2
pop edx
lea ecx, [ebp - 0x24]
call fcn.10039c22
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001d102
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1001d116
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret