Function at 0x40ce99
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x40cdd9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x40d0f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov al, byte [ebp - 1]
cmp eax, 5
ja case.default.0x40ce0d
jmp dword [eax*4 + 0x40ce14]
cmp dword [ebx + 0x2c], 0
je 0x40ce3d
lea eax, [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
call fcn.00401aa4
lea eax, [ebx + 0x20]
mov edx, dword [esi + 4]
call fcn.00401b94
cmp dword [ebx + 0x20], 0
je 0x40ce80
lea eax, [ebp - 0x20]
mov edx, dword [esi + 0xc]
call fcn.00401b94
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, 1
call fcn.0040c968
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x20]
call fcn.00401aa4
lea eax, [ebx + 0x24]
mov edx, dword [esi + 8]
call fcn.00401b94
xor edi, edi
jmp 0x40d0c6
xor edi, edi
jmp 0x40d0c6
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov edx, dword [esi + 4]
call fcn.00401b94
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 8]
mov edx, 1
call fcn.0040c968
cmp word [ebx + 0x12], 0
je 0x40cefc
mov eax, dword [esi]
push eax
mov ax, word [esi + 0x18]
push eax
mov ax, word [esi + 0x1a]
push eax
mov ax, word [esi + 0x1c]
push eax
mov ax, word [esi + 0x22]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [esi + 4]
call fcn.00401b94
mov ecx, dword [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
cmp byte [ebp - 0xd], 0
je 0x40cf0a
or edi, 0xffffffff
jmp 0x40d0c6
cmp dword [ebp - 8], 0
jne 0x40cf17
xor edi, edi
jmp 0x40d0c6
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.00404068
mov eax, dword [ebp - 0x2c]
call fcn.004040e4
mov eax, dword [ebp - 8]
call fcn.004091e8
test al, al
je 0x40cf60
mov eax, dword [ebp - 8]
call fcn.00401dd4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
test edi, 1
je 0x40cf60
and edi, 0xfffffffe
push edi
mov eax, dword [ebp - 8]
call fcn.00401dd4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.00401dd4
mov ecx, 0x180
mov edx, 0x8121
call fcn.0040ca88
mov edi, eax
cmp edi, 0xffffffff
je 0x40d0c6
lea eax, [ebp - 0x30]
mov edx, dword [esi + 4]
call fcn.00401b94
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x40]
call fcn.0040b3f8
mov eax, dword [ebx + 0x44]
mov edx, dword [ebp - 8]
call fcn.0040b3f8
jmp 0x40d0c6
mov eax, dword [esi + 0x14]
call fcn.0040cb40
lea eax, [ebp - 0x34]
mov edx, dword [esi + 4]
call fcn.00401b94
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x40]
call fcn.0040b4d0
mov edi, eax
test edi, edi
jl 0x40d009
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x44]
mov edx, edi
call fcn.0040b464
mov eax, dword [ebx + 0x40]
mov edx, edi
call fcn.0040b438
mov eax, dword [ebx + 0x44]
mov edx, edi
call fcn.0040b438
mov ax, word [esi + 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.00401dd4
mov cx, word [esi + 0x1a]
mov dx, word [esi + 0x18]
call fcn.0040cb6c
jmp 0x40d011
lea eax, [ebp - 8]
call fcn.00401a50
mov edi, 1
jmp 0x40d0c6
cmp word [ebx + 0x1a], 0
je 0x40d07d
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0xc]
call fcn.00401b94
lea eax, [ebp - 0x38]
mov edx, dword [esi + 8]
call fcn.00401b94
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [esi + 4]
call fcn.00401b94
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
cmp byte [ebp - 0xd], 0
je 0x40d065
or edi, 0xffffffff
jmp 0x40d07d
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00404040
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0xc]
call fcn.004090cc
xor edi, edi
lea eax, [ebp - 0x48]
mov edx, dword [esi + 0xc]
call fcn.00401b94
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 4]
call fcn.00401b94
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x44]
mov edx, 1
call fcn.0040c968
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x2c]
call fcn.00401aa4
mov byte [ebx + 0x30], 1
jmp 0x40d0c6
xor edi, edi
jmp 0x40d0c6
xor edi, edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0fd
lea eax, [ebp - 0x4c]
mov edx, 0xc
call fcn.00401a74
lea eax, [ebp - 0x14]
call fcn.00401a50
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00401a74
ret