Function at 0x40ca20
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a289e
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x615780]
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
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0
call fcn.0044170d
mov byte [ebp - 4], 1
call fcn.00431eae
mov ecx, eax
test ecx, ecx
je 0x40cdcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
mov eax, 0x5b5730
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x40caa5
movzx eax, ax
lea ecx, [ebp - 0x154]
push eax
call fcn.00402e20
jmp 0x40cb2c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x5b5730
push 0
push 3
call edi
lea esi, [eax - 1]
test esi, esi
jle 0x40cb21
mov ecx, dword [ebp - 0x154]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40caf0
push esi
lea ecx, [ebp - 0x154]
call fcn.00402f70
mov ecx, dword [ebp - 0x154]
push 0
push 0
push esi
push ecx
push 0xffffffffffffffff
push 0x5b5730
push 0
push 3
call edi
mov eax, dword [ebp - 0x154]
cmp esi, dword [eax - 8]
jg 0x40cdd5
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x154]
mov byte [esi + eax], 0
jmp 0x40cb2c
lea ecx, [ebp - 0x154]
call fcn.00402cf0
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 3
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x158], eax
cmp eax, 0xffffffff
je 0x40cb62
test byte [ebp - 0x150], 0x10
je 0x40cb62
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x40cd5f
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x16c]
call fcn.00441a6c
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], esi
jle 0x40cc57
nop
test esi, esi
js 0x40cdd5
cmp esi, dword [eax - 0xc]
jg 0x40cdd5
mov bl, byte [esi + eax]
cmp bl, 0x5c
je 0x40cbfd
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x170], ecx
lea edi, [ecx + 1]
test edi, edi
js 0x40cdd5
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40cbd6
push edi
lea ecx, [ebp - 0x154]
call fcn.00402f70
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x170]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x154]
cmp edi, dword [eax - 8]
jg 0x40cdd5
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x154]
mov byte [edi + eax], 0
jmp 0x40cc27
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
call fcn.004419d0
push 1
push 0x5b93b0
lea ecx, [ebp - 0x154]
call fcn.00404b40
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
dec ecx
cmp esi, ecx
jne 0x40cc4d
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
call fcn.004419d0
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x40cb80
push dword [ebp - 0x158]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
mov eax, dword [ebp - 0x164]
mov esi, 1
cmp eax, esi
jle 0x40cd2c
test esi, esi
js 0x40cddf
cmp esi, eax
jge 0x40cddf
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 0x154]
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x40ccf9
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40cce4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40cce4
push edx
call fcn.00402c60
add esp, 4
mov dword [ebp - 0x158], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40ccd9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x158]
add eax, 0x10
mov dword [ebp - 0x154], eax
jmp 0x40ccf9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x154]
call fcn.00403010
mov eax, dword [ebp - 0x154]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40cd17
push 0x80
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x164]
inc esi
cmp esi, eax
jl 0x40cc78
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x16c]
call fcn.00441a6c
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test byte [ebp - 0x150], 0x10
push eax
je 0x40cd5b
call ebx
mov bl, 1
jmp 0x40cd5f
call ebx
xor bl, bl
mov edx, dword [ebp - 0x154]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x16c]
call fcn.00441724
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40cdad
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0057742f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401ec0
push 0x80070057
call fcn.00401ec0
call fcn.00430700
int3