Function at 0x41d038
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x41d041
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b28
mov edi, 0x4f51f0
xor eax, eax
push ebp
push 0x41d382
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f51ec], 0
jne 0x41d0a8
cmp byte [edi], 0
je 0x41d0a8
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.004048e4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
xor edx, edx
call fcn.0041cec8
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 0x41d39c
call fcn.0040498c
jmp 0x41d0b6
lea eax, [ebp - 0xc]
mov edx, dword [0x4f51ec]
call fcn.00404720
lea eax, [ebp - 0x10]
call fcn.00404688
cmp byte [0x4f5270], 0
je 0x41d12e
lea eax, [ebp - 0x10]
call fcn.0041cf7c
mov eax, dword [ebp - 0x10]
call fcn.00404940
cmp eax, 2
jle 0x41d0ed
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x41d113
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x41d113
lea edx, [ebp - 0x20]
mov eax, dword [0x4f8718]
call fcn.0041bb64
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041bc10
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0040498c
mov eax, dword [ebp - 0x10]
call fcn.00404b38
push eax
call fcn.00406fbc
cmp eax, 0xffffffff
jne 0x41d12e
lea eax, [ebp - 0x10]
call fcn.00404688
cmp byte [edi], 0
je 0x41d184
call fcn.0041dcd8
test al, al
je 0x41d184
cmp byte [0x4f5278], 0
je 0x41d184
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x19
lea eax, [ebp - 0x24]
mov edx, 0x4f523c
call fcn.004048e4
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, edi
call fcn.004048e4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0041f2cc
test al, al
jne 0x41d218
cmp byte [edi], 0
je 0x41d214
call fcn.0041dcd8
test al, al
je 0x41d214
cmp byte [0x4f527c], 0
je 0x41d214
cmp byte [0x4f5288], 0
je 0x41d214
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
mov edx, 0x4f5288
call fcn.004048e4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov edx, 0x4f52c0
call fcn.004048e4
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
mov edx, 0x4f52f4
call fcn.004048e4
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [0x4f52bc]
push eax
lea eax, [ebp - 0x38]
mov edx, 0x4f523c
call fcn.004048e4
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov edx, edi
call fcn.004048e4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0041f2cc
test al, al
jne 0x41d218
xor eax, eax
jmp 0x41d21a
mov al, 1
mov bl, al
test bl, bl
jne 0x41d2f9
cmp byte [0x4f5280], 0
je 0x41d25f
mov eax, dword [ebp - 0x10]
push eax
push esi
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0x40]
mov edx, 0x4f523c
call fcn.004048e4
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
mov edx, edi
call fcn.004048e4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
pop edx
call fcn.0041dd44
mov ebx, eax
test bl, bl
jne 0x41d2b9
cmp byte [0x4f5284], 0
je 0x41d2b9
cmp byte [ebp - 5], 0
jne 0x41d2b9
lea eax, [ebp - 0x10]
call fcn.00404688
test esi, esi
je 0x41d290
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call fcn.00407adc
lea eax, [ebp - 0x48]
mov edx, 0x4f523c
call fcn.004048e4
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
mov edx, edi
call fcn.004048e4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
pop edx
call fcn.0041e104
mov bl, al
test bl, bl
jne 0x41d333
cmp byte [ebp - 5], 0
jne 0x41d333
push 0x10
lea eax, [ebp - 0x50]
mov edx, 0x4f5778
call fcn.004048e4
mov eax, dword [ebp - 0x50]
call fcn.00404b38
push eax
lea eax, [ebp - 0x54]
mov edx, 0x4f540c
call fcn.004048e4
mov eax, dword [ebp - 0x54]
call fcn.00404b38
push eax
push esi
call fcn.0040798c
jmp 0x41d333
cmp byte [ebp - 5], 0
jne 0x41d333
push 0x40
lea eax, [ebp - 0x58]
mov edx, 0x4f5778
call fcn.004048e4
mov eax, dword [ebp - 0x58]
call fcn.00404b38
push eax
lea eax, [ebp - 0x5c]
mov edx, 0x4f5340
call fcn.004048e4
mov eax, dword [ebp - 0x5c]
call fcn.00404b38
push eax
push esi
call fcn.0040798c
cmp bl, 1
jne 0x41d35f
cmp dword [ebp - 0x10], 0
je 0x41d35f
cmp byte [0x4f5274], 0
je 0x41d35f
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404b38
mov esi, eax
push esi
call fcn.004071c4
push esi
call fcn.00406ec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d389
lea eax, [ebp - 0x5c]
mov edx, 0x15
call fcn.004046ac
lea eax, [ebp - 4]
call fcn.00404688
ret