Function at 0x1003ecf
Capabilities:
Create directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1006110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], edi
cmp esi, ebx
je 0x1004196
cmp word [esi], bx
je 0x1004196
lea eax, [ebp - 0x440]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003f3f
test byte [ebp - 0x440], 0x10
je 0x1003f32
mov eax, 0xb7
jmp 0x10041ad
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10041ab
push edi
push esi
cmp dword [ebp + 0x10], ebx
je 0x1003f58
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1003f6f
xor eax, eax
inc eax
jmp 0x10041ad
call fcn.01003d57
test eax, eax
je 0x1003f6f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1003f50
push esi
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.0100246b
cmp eax, ebx
jge 0x1003fa5
cmp dword [0x1006138], ebx
je 0x10041ab
push eax
push 0x1001f08
push ebx
call fcn.01003510
add esp, 0xc
jmp 0x10041ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp word [ebp - 0x412], 0x3a
lea esi, [ebp - 0x414]
jne 0x1003fcd
lea esi, [ebp - 0x40e]
sub edi, 3
jmp 0x1004053
push 0x5c
pop edx
cmp word [ebp - 0x412], dx
jne 0x1004043
push 2
pop ecx
sub edi, ecx
lea esi, [ebp - 0x410]
je 0x1004150
cmp word [ebp - 0x410], bx
je 0x10041ab
movzx eax, word [ebp - 0x410]
cmp ax, dx
je 0x100400e
add esi, ecx
movzx eax, word [esi]
dec edi
cmp ax, bx
jne 0x1003ffe
cmp word [esi], bx
je 0x10041ab
add esi, ecx
movzx eax, word [esi]
dec edi
cmp ax, bx
je 0x10041ab
cmp ax, dx
je 0x1004036
add esi, ecx
movzx eax, word [esi]
dec edi
cmp ax, bx
jne 0x1004026
cmp word [esi], bx
je 0x10041ab
add esi, ecx
jmp 0x1004052
cmp word [ebp - 0x414], dx
jne 0x1004059
lea esi, [ebp - 0x412]
dec edi
je 0x1004150
cmp word [esi], bx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jne 0x10040ad
cmp dword [ebp + 0x10], 0
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
je 0x100415f
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1003f50
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, 0xb7
cmp eax, ecx
jne 0x100417e
mov eax, ecx
jmp 0x10041ad
cmp word [esi], 0x5c
je 0x10040b3
inc esi
inc esi
dec edi
cmp word [esi], 0
jne 0x10040a4
test edi, edi
je 0x100414e
cmp word [esi], 0x5c
jne 0x100413f
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x440]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1004134
cmp dword [ebp + 0x10], 0
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
je 0x100411d
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004134
cmp dword [0x1006138], 0
je 0x10041ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001e98
push 0
jmp 0x1003f98
call fcn.01003d57
test eax, eax
je 0x10040fd
push 0x80
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
dec edi
je 0x100414e
cmp word [esi], 0
jne 0x10040a4
jmp 0x1004064
xor ebx, ebx
cmp dword [0x1006138], ebx
je 0x10041ab
push 0x1001e48
jmp 0x10041a3
call fcn.01003d57
test eax, eax
je 0x1004088
push 0x80
push dword [ebp - 0x41c]
call ebx
jmp 0x1003f50
cmp dword [0x1006138], 0
je 0x10041ab
call esi
push eax
push 0x1001db8
push 2
jmp 0x1003f98
cmp dword [0x1006138], ebx
je 0x10041ab
push 0x1001d50
push ebx
call fcn.01003510
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004780
leave
ret 0xc