Function at 0x40c900
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a39be
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x616780]
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.00442659
mov byte [ebp - 4], 1
call fcn.00432dfe
mov ecx, eax
test ecx, ecx
je 0x40ccab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
mov eax, 0x5b6730
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x40c985
movzx eax, ax
lea ecx, [ebp - 0x154]
push eax
call fcn.00402d00
jmp 0x40ca0c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x5b6730
push 0
push 3
call edi
lea esi, [eax - 1]
test esi, esi
jle 0x40ca01
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 0x40c9d0
push esi
lea ecx, [ebp - 0x154]
call fcn.00402e50
mov ecx, dword [ebp - 0x154]
push 0
push 0
push esi
push ecx
push 0xffffffffffffffff
push 0x5b6730
push 0
push 3
call edi
mov eax, dword [ebp - 0x154]
cmp esi, dword [eax - 8]
jg 0x40ccb5
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x154]
mov byte [esi + eax], 0
jmp 0x40ca0c
lea ecx, [ebp - 0x154]
call fcn.00402bd0
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 0x40ca42
test byte [ebp - 0x150], 0x10
je 0x40ca42
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x40cc3f
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x16c]
call fcn.004429b8
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], esi
jle 0x40cb37
nop
test esi, esi
js 0x40ccb5
cmp esi, dword [eax - 0xc]
jg 0x40ccb5
mov bl, byte [esi + eax]
cmp bl, 0x5c
je 0x40cadd
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x170], ecx
lea edi, [ecx + 1]
test edi, edi
js 0x40ccb5
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40cab6
push edi
lea ecx, [ebp - 0x154]
call fcn.00402e50
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 0x40ccb5
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x154]
mov byte [edi + eax], 0
jmp 0x40cb07
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
call fcn.0044291c
push 1
push 0x5ba3b0
lea ecx, [ebp - 0x154]
call fcn.00404a20
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
dec ecx
cmp esi, ecx
jne 0x40cb2d
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
call fcn.0044291c
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x40ca60
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 0x40cc0c
test esi, esi
js 0x40ccbf
cmp esi, eax
jge 0x40ccbf
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 0x40cbd9
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40cbc4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40cbc4
push edx
call fcn.00402b40
add esp, 4
mov dword [ebp - 0x158], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40cbb9
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 0x40cbd9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x154]
call fcn.00402ef0
mov eax, dword [ebp - 0x154]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40cbf7
push 0x80
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x164]
inc esi
cmp esi, eax
jl 0x40cb58
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x16c]
call fcn.004429b8
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 0x40cc3b
call ebx
mov bl, 1
jmp 0x40cc3f
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 0x40cc63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x16c]
call fcn.00442670
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 0x40cc8d
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.0057837f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401ec0
push 0x80070057
call fcn.00401ec0
call fcn.00431650
int3