Function at 0x40c9c0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45646d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x899ce9], 0
jne 0x40ca14
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040aa30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x30]
mov ebx, eax
call fcn.0044824b
add esp, 4
jmp 0x40ca1d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ca3b
test bl, 0x10
je 0x40ca3b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ebx, word [esi]
cmp ebx, 0x5c
je 0x40ca48
cmp ebx, 0x2f
jne 0x40ca6f
movzx eax, word [esi + 2]
cmp eax, 0x5c
je 0x40ca56
cmp eax, 0x2f
jne 0x40ca6f
cmp word [esi + 4], 0x3f
jne 0x40ca6f
movzx eax, word [esi + 6]
cmp eax, 0x5c
je 0x40ca6b
cmp eax, 0x2f
jne 0x40ca6f
mov al, 1
jmp 0x40ca71
xor al, al
test al, al
lea ecx, [esi + 8]
cmove ecx, esi
movzx eax, word [ecx]
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x40cab7
cmp word [ecx + 2], 0x3a
jne 0x40cab7
movzx eax, word [ecx + 4]
cmp eax, 0x5c
je 0x40ca9c
cmp eax, 0x2f
jne 0x40cab7
cmp word [ecx + 6], 0
jne 0x40cab7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040e9d0
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test bx, bx
je 0x40cadb
nop dword [eax + eax]
inc edi
cmp word [esi + edi*2], 0
jne 0x40cad0
mov dword [ebp - 0x14], edi
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448381
add esp, 4
mov dword [ebp - 0x20], edi
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x1c], edi
mov ebx, eax
mov dword [ebp - 0x24], ebx
push ecx
push esi
push ebx
call fcn.00449190
add esp, 0xc
lea eax, [ebx + edi*2]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x40cb62
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
je 0x40cb39
cmp ecx, 0x2f
je 0x40cb39
cmp eax, ebx
jne 0x40cb22
jmp 0x40cb62
sub eax, ebx
sar eax, 1
js 0x40cb62
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x40cb62
cmp edi, 1
jne 0x40cb54
mov byte [ebp - 0xd], 1
jmp 0x40ce1a
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov word [ebx + ecx*2], ax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448381
add esp, 4
mov dword [ebp - 0x30], eax
lea ecx, [esi + esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push ecx
push ebx
push eax
call fcn.00449190
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, edi
nop dword [eax]
cmp byte [0x899ce9], 0
jne 0x40cbd7
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040aa30
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.0044824b
add esp, 4
test edi, edi
jne 0x40cd10
mov edi, dword [ebp - 0x14]
jmp 0x40cbe8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cc9f
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
push 8
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov word [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00448381
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
add esp, 4
mov dword [ebp - 0x48], 3
mov word [eax], cx
push ecx
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0040d4f0
test al, al
jne 0x40cc82
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
call fcn.0044824b
add esp, 4
jmp 0x40cc9f
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
shr ebx, 4
call fcn.0044824b
add esp, 4
and bl, 1
mov ebx, dword [ebp - 0x24]
jne 0x40cd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ccc8
lea esi, [ebx + edi*2]
cmp esi, ebx
je 0x40ccc8
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
je 0x40ccd1
cmp eax, 0x2f
je 0x40ccd1
cmp esi, ebx
jne 0x40ccb3
mov byte [ebp - 0xd], 0
jmp 0x40ce0f
sub esi, ebx
sar esi, 1
js 0x40ccc8
test esi, esi
je 0x40ccc8
cmp esi, 1
jne 0x40cced
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x40ccc8
cmp eax, 0x2f
je 0x40ccc8
lea eax, [esi + 1]
cmp dword [ebp - 0x18], eax
jae 0x40ccc8
cmp esi, edi
jae 0x40cba0
mov edi, esi
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov word [ebx + esi*2], ax
jmp 0x40cba0
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jge 0x40ce0b
nop dword [eax + eax]
mov edx, dword [ebp - 0x30]
add edx, 2
movzx eax, word [edx + esi*2]
lea edx, [edx + esi*2]
mov ecx, edx
test ax, ax
je 0x40cd54
cmp ax, 0x5c
je 0x40cde0
cmp ax, 0x2f
je 0x40cde0
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40cd34
mov esi, edi
cmp esi, dword [ebp - 0x1c]
jbe 0x40cd8d
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448381
add esp, 4
mov edi, eax
push ebx
call fcn.0044824b
mov ebx, edi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x24], ebx
test esi, esi
je 0x40cda1
lea eax, [esi + esi]
push eax
push dword [ebp - 0x30]
push ebx
call fcn.00449190
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x20], esi
mov word [ebx + esi*2], ax
cmp byte [0x899ce9], al
jne 0x40cdf2
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040aa30
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.0044824b
add esp, 4
test edi, edi
je 0x40ccc8
mov edi, dword [ebp - 0x2c]
jmp 0x40ce03
sub ecx, edx
sar ecx, 1
js 0x40cd54
inc esi
add esi, ecx
jmp 0x40cd56
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ccc8
cmp esi, edi
jl 0x40cd20
mov byte [ebp - 0xd], 1
push dword [ebp - 0x30]
call fcn.0044824b
add esp, 4
push ebx
call fcn.0044824b
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret