Function at 0x40cdd0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x240
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebp
push esi
push 0x12c
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.00438f40
push esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00415da0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40d074
cmp dword [ebp], 1
je 0x40ce26
mov dword [0x46e17c], 0x80000
jmp 0x40ce39
mov ecx, dword [ebp + 4]
push 0xffffffffffffffff
lea edx, [esp + 0x18]
call fcn.00415470
mov dword [0x46e17c], eax
mov eax, dword [esp + 0x14]
push ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
test eax, eax
jle 0x40cfeb
push edi
cmp dword [ebp], 1
je 0x40ce63
mov dword [0x46e17c], 0x80000
jmp 0x40ce75
mov ecx, dword [ebp + 4]
push ebx
lea edx, [esp + 0x20]
call fcn.00415470
mov dword [0x46e17c], eax
lea ecx, [esp + 0x20]
push 0x2f
push ecx
call fcn.0043752a
add esp, 8
test eax, eax
je 0x40cf12
lea edx, [esp + 0x20]
push 0x2f
push edx
call fcn.0043752a
add esp, 8
cmp byte [eax + 1], 0
jne 0x40cf12
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x148]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ceb1
lea eax, [esp + 0x20]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cec1
lea edi, [esp + 0x148]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ced2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x148]
and ecx, 3
push 0x2f
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0043752a
add esp, 8
push 0
lea ecx, [esp + 0x14c]
push ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40cfdb
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x148]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40cf22
lea eax, [esp + 0x20]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cf32
lea edi, [esp + 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40cf43
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp], 1
rep movsb byte es:[edi], byte [esi]
je 0x40cf6d
mov dword [0x46e17c], 0x80000
jmp 0x40cf8b
mov esi, dword [ebp + 4]
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x14]
lea eax, [esp + 0x24]
call fcn.00415930
mov ebx, dword [esp + 0x14]
mov dword [0x46e17c], eax
cmp dword [ebp], 1
je 0x40cf9d
mov dword [0x46e17c], 0x80000
jmp 0x40cfb7
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x148]
push ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.00415aa0
mov dword [0x46e17c], eax
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40cfdb
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc ebx
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
jl 0x40ce51
pop edi
mov eax, dword [ebp]
cmp eax, 2
sete cl
pop ebx
test cl, cl
je 0x40d03b
cmp eax, 2
je 0x40d00f
mov dword [0x46e180], 0x80000
mov eax, 1
jmp 0x40d076
mov esi, dword [ebp + 4]
mov eax, esi
call fcn.004164b0
mov dword [0x46e180], eax
test esi, esi
je 0x40d02b
push esi
call fcn.00416620
add esp, 4
push ebp
call fcn.00416620
add esp, 4
mov eax, 1
jmp 0x40d076
cmp eax, 1
je 0x40d051
mov dword [0x46e17c], 0x80000
mov eax, 1
jmp 0x40d076
mov esi, dword [ebp + 4]
call fcn.00415d40
push esi
mov dword [0x46e17c], eax
call fcn.00416620
push ebp
call fcn.00416620
add esp, 8
mov eax, 1
jmp 0x40d076
xor eax, eax
mov ecx, dword [esp + 0x244]
pop esi
pop ebp
xor ecx, esp
call fcn.004366ef
add esp, 0x240
ret 4