Function at 0x40ce0d
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 0x40cd4d
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 0x40d06a
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.0x40cd81
jmp dword [eax*4 + 0x40cd88]
cmp dword [ebx + 0x2c], 0
je 0x40cdb1
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 0x40cdf4
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.0040c8dc
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 0x40d03a
xor edi, edi
jmp 0x40d03a
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.0040c8dc
cmp word [ebx + 0x12], 0
je 0x40ce70
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 0x40ce7e
or edi, 0xffffffff
jmp 0x40d03a
cmp dword [ebp - 8], 0
jne 0x40ce8b
xor edi, edi
jmp 0x40d03a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.00403fdc
mov eax, dword [ebp - 0x2c]
call fcn.00404058
mov eax, dword [ebp - 8]
call fcn.0040915c
test al, al
je 0x40ced4
mov eax, dword [ebp - 8]
call fcn.00401dd4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
test edi, 1
je 0x40ced4
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.0040c9fc
mov edi, eax
cmp edi, 0xffffffff
je 0x40d03a
lea eax, [ebp - 0x30]
mov edx, dword [esi + 4]
call fcn.00401b94
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x40]
call fcn.0040b36c
mov eax, dword [ebx + 0x44]
mov edx, dword [ebp - 8]
call fcn.0040b36c
jmp 0x40d03a
mov eax, dword [esi + 0x14]
call fcn.0040cab4
lea eax, [ebp - 0x34]
mov edx, dword [esi + 4]
call fcn.00401b94
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x40]
call fcn.0040b444
mov edi, eax
test edi, edi
jl 0x40cf7d
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x44]
mov edx, edi
call fcn.0040b3d8
mov eax, dword [ebx + 0x40]
mov edx, edi
call fcn.0040b3ac
mov eax, dword [ebx + 0x44]
mov edx, edi
call fcn.0040b3ac
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.0040cae0
jmp 0x40cf85
lea eax, [ebp - 8]
call fcn.00401a50
mov edi, 1
jmp 0x40d03a
cmp word [ebx + 0x1a], 0
je 0x40cff1
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 0x40cfd9
or edi, 0xffffffff
jmp 0x40cff1
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00403fb4
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0xc]
call fcn.00409040
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.0040c8dc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x2c]
call fcn.00401aa4
mov byte [ebx + 0x30], 1
jmp 0x40d03a
xor edi, edi
jmp 0x40d03a
xor edi, edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d071
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