Function at 0x40c8e0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4589cd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x46c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x46e2d1], 0
jne 0x40c934
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.0040a940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x30]
mov ebx, eax
call fcn.0044a6fb
add esp, 4
jmp 0x40c93d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c95b
test bl, 0x10
je 0x40c95b
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 0x40c968
cmp ebx, 0x2f
jne 0x40c98f
movzx eax, word [esi + 2]
cmp eax, 0x5c
je 0x40c976
cmp eax, 0x2f
jne 0x40c98f
cmp word [esi + 4], 0x3f
jne 0x40c98f
movzx eax, word [esi + 6]
cmp eax, 0x5c
je 0x40c98b
cmp eax, 0x2f
jne 0x40c98f
mov al, 1
jmp 0x40c991
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 0x40c9d7
cmp word [ecx + 2], 0x3a
jne 0x40c9d7
movzx eax, word [ecx + 4]
cmp eax, 0x5c
je 0x40c9bc
cmp eax, 0x2f
jne 0x40c9d7
cmp word [ecx + 6], 0
jne 0x40c9d7
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.0040e8f0
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test bx, bx
je 0x40c9fb
nop dword [eax + eax]
inc edi
cmp word [esi + edi*2], 0
jne 0x40c9f0
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.0044a831
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.0044b640
add esp, 0xc
lea eax, [ebx + edi*2]
mov dword [ebp - 4], 0
cmp eax, ebx
je 0x40ca82
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
je 0x40ca59
cmp ecx, 0x2f
je 0x40ca59
cmp eax, ebx
jne 0x40ca42
jmp 0x40ca82
sub eax, ebx
sar eax, 1
js 0x40ca82
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x40ca82
cmp edi, 1
jne 0x40ca74
mov byte [ebp - 0xd], 1
jmp 0x40cd3a
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.0044a831
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.0044b640
add esp, 0xc
mov byte [ebp - 4], 1
mov esi, edi
nop dword [eax]
cmp byte [0x46e2d1], 0
jne 0x40caf7
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a940
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.0044a6fb
add esp, 4
test edi, edi
jne 0x40cc30
mov edi, dword [ebp - 0x14]
jmp 0x40cb08
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cc30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cbbf
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.0044a831
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.0040d410
test al, al
jne 0x40cba2
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
call fcn.0044a6fb
add esp, 4
jmp 0x40cbbf
mov ebx, dword [ebp - 0x58]
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
shr ebx, 4
call fcn.0044a6fb
add esp, 4
and bl, 1
mov ebx, dword [ebp - 0x24]
jne 0x40cc30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40cbe8
lea esi, [ebx + edi*2]
cmp esi, ebx
je 0x40cbe8
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
je 0x40cbf1
cmp eax, 0x2f
je 0x40cbf1
cmp esi, ebx
jne 0x40cbd3
mov byte [ebp - 0xd], 0
jmp 0x40cd2f
sub esi, ebx
sar esi, 1
js 0x40cbe8
test esi, esi
je 0x40cbe8
cmp esi, 1
jne 0x40cc0d
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x40cbe8
cmp eax, 0x2f
je 0x40cbe8
lea eax, [esi + 1]
cmp dword [ebp - 0x18], eax
jae 0x40cbe8
cmp esi, edi
jae 0x40cac0
mov edi, esi
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov word [ebx + esi*2], ax
jmp 0x40cac0
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jge 0x40cd2b
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 0x40cc74
cmp ax, 0x5c
je 0x40cd00
cmp ax, 0x2f
je 0x40cd00
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40cc54
mov esi, edi
cmp esi, dword [ebp - 0x1c]
jbe 0x40ccad
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a831
add esp, 4
mov edi, eax
push ebx
call fcn.0044a6fb
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 0x40ccc1
lea eax, [esi + esi]
push eax
push dword [ebp - 0x30]
push ebx
call fcn.0044b640
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x20], esi
mov word [ebx + esi*2], ax
cmp byte [0x46e2d1], al
jne 0x40cd12
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0040a940
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x3c]
mov edi, eax
call fcn.0044a6fb
add esp, 4
test edi, edi
je 0x40cbe8
mov edi, dword [ebp - 0x2c]
jmp 0x40cd23
sub ecx, edx
sar ecx, 1
js 0x40cc74
inc esi
add esi, ecx
jmp 0x40cc76
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cbe8
cmp esi, edi
jl 0x40cc40
mov byte [ebp - 0xd], 1
push dword [ebp - 0x30]
call fcn.0044a6fb
add esp, 4
push ebx
call fcn.0044a6fb
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