Function at 0x40c8d0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba1c
mov eax, dword fs:[0]
push eax
mov eax, 0x41d4
call fcn.00418560
mov eax, dword [0x42c0a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x4188]
mov dword [ebp - 0x4170], ecx
push eax
mov dword [ebp - 0x417c], ebx
mov dword [ebp - 0x4154], esi
mov dword [ebp - 0x4150], fcn.0040dd30
mov dword [ebp - 0x414c], fcn.0040dd70
mov dword [ebp - 0x4184], 0x40dd50
mov dword [ebp - 0x4180], 0x40dd90
call fcn.00402210
add esp, 8
test eax, eax
je 0x40c982
lea eax, [ebp - 0x98]
push 0x1d
push eax
call fcn.0040e570
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.0040dea0
lea ecx, [ebp - 0x98]
jmp 0x40cd26
lea eax, [ebp - 0x4190]
push eax
call fcn.00401e90
lea eax, [ebp - 0x413c]
push 0
push eax
call fcn.00404a60
lea eax, [ebp - 0x4190]
mov dword [ebp - 0x412c], eax
lea eax, [ebp - 0x413c]
push eax
call fcn.00404a90
add esp, 0x10
call fcn.004011b0
lea eax, [ebp - 0x41e0]
push eax
call fcn.004027a0
lea eax, [ebp - 0x4184]
push eax
lea eax, [ebp - 0x4150]
push eax
lea eax, [ebp - 0x413c]
push eax
lea eax, [ebp - 0x41e0]
push eax
call fcn.004027e0
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x4144], edi
test edi, edi
jne 0x40cc44
mov ecx, dword [ebp - 0x41c4]
xor ebx, ebx
mov dword [ebp - 0x4178], 0xffffffff
mov dword [ebp - 0x4148], esi
mov dword [ebp - 0x4174], esi
mov dword [ebp - 0x4168], ebx
test ecx, ecx
je 0x40cc28
mov dword [ebp - 0x416c], edi
nop
mov edx, dword [ebp - 0x4170]
test edx, edx
je 0x40ca4b
lea eax, [ecx - 1]
push eax
push ebx
push 0x47b
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x41d0]
add eax, edi
mov dword [ebp - 0x415c], 0
push 0
mov dword [ebp - 0x4158], eax
lea eax, [ebp - 0x41e0]
push ebx
push eax
mov dword [ebp - 0x4140], 0
call fcn.00402680
mov edi, eax
add esp, 0xc
cmp edi, dword [ebp - 0x4154]
jbe 0x40caaf
push esi
push 0
call fcn.0040dd70
lea eax, [edi + edi]
mov dword [ebp - 0x4154], edi
push eax
push 0
call fcn.0040dd30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40cc7a
push esi
lea eax, [ebp - 0x41e0]
push ebx
push eax
call fcn.00402680
mov edi, dword [ebp - 0x4144]
add esp, 0xc
test edi, edi
jne 0x40cc28
mov eax, dword [ebp - 0x4158]
cmp byte [eax + 0x19], 0
jne 0x40cb32
lea eax, [ebp - 0x4184]
push eax
lea eax, [ebp - 0x4150]
push eax
lea eax, [ebp - 0x4140]
push eax
lea eax, [ebp - 0x415c]
push eax
lea eax, [ebp - 0x4174]
push eax
lea eax, [ebp - 0x4148]
push eax
lea eax, [ebp - 0x4178]
push eax
push ebx
lea eax, [ebp - 0x413c]
push eax
lea eax, [ebp - 0x41e0]
push eax
call fcn.00402270
mov edi, eax
add esp, 0x28
mov dword [ebp - 0x4144], edi
test edi, edi
jne 0x40cc28
movzx eax, word [esi]
xor ebx, ebx
mov ecx, eax
test ax, ax
je 0x40cb6a
mov edi, esi
cmp cx, 0x2f
jne 0x40cb5b
xor eax, eax
push eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [edi], ax
inc ebx
movzx eax, word [esi + ebx*2]
lea edi, [esi + ebx*2]
mov ecx, eax
test ax, ax
jne 0x40cb40
mov ebx, dword [ebp - 0x4158]
cmp byte [ebx + 0x19], 0
je 0x40cb81
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40cbf8
lea eax, [ebp - 0x4164]
push esi
push eax
call fcn.00402250
add esp, 8
test eax, eax
jne 0x40cbf8
mov eax, dword [ebp - 0x4140]
mov dword [ebp - 0x4160], eax
lea eax, [ebp - 0x4160]
push eax
mov eax, dword [ebp - 0x415c]
add eax, dword [ebp - 0x4148]
push eax
lea eax, [ebp - 0x4164]
push eax
call fcn.00402180
add esp, 0xc
test eax, eax
jne 0x40cbf8
mov eax, dword [ebp - 0x4160]
cmp eax, dword [ebp - 0x4140]
jne 0x40cbf8
lea eax, [ebp - 0x4164]
push eax
call fcn.00401f60
add esp, 4
test eax, eax
jne 0x40cbf8
cmp byte [ebx + 0x1d], al
je 0x40cbf8
push dword [ebx + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [ebp - 0x4168]
mov edi, dword [ebp - 0x416c]
inc ebx
mov ecx, dword [ebp - 0x41c4]
add edi, 0x20
mov dword [ebp - 0x4168], ebx
mov dword [ebp - 0x416c], edi
cmp ebx, ecx
jb 0x40ca30
mov edi, dword [ebp - 0x4144]
push dword [ebp - 0x4148]
lea eax, [ebp - 0x4150]
push eax
call dword [ebp - 0x414c]
mov ebx, dword [ebp - 0x417c]
add esp, 8
lea eax, [ebp - 0x4150]
push eax
lea eax, [ebp - 0x41e0]
push eax
call fcn.00402620
push esi
push 0
call fcn.0040dd70
lea eax, [ebp - 0x4188]
push eax
call fcn.00401f60
add esp, 0x14
test edi, edi
jne 0x40cc81
lea eax, [edi + 1]
jmp 0x40cd2d
mov edi, 2
jmp 0x40cc28
cmp edi, 4
jne 0x40ccae
lea eax, [ebp - 0x98]
push 0x1e
push eax
call fcn.0040e570
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0040dea0
lea ecx, [ebp - 0x98]
jmp 0x40cd26
cmp edi, 2
jne 0x40ccd7
lea eax, [ebp - 0x98]
push 0x1f
push eax
call fcn.0040e570
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0040dea0
lea ecx, [ebp - 0x98]
jmp 0x40cd26
cmp edi, 3
jne 0x40cd00
lea eax, [ebp - 0x98]
push 0x20
push eax
call fcn.0040e570
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0040dea0
lea ecx, [ebp - 0x98]
jmp 0x40cd26
lea eax, [ebp - 0x120]
push 0x21
push eax
call fcn.0040e570
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.0040dea0
lea ecx, [ebp - 0x120]
call fcn.0040de80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418138
mov esp, ebp
pop ebp
ret