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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41734b
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], 0x80004005
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
push 0x206
lea ecx, [esp + 0x9a]
push esi
mov dword [esp + 0x2b8], esi
push ecx
mov word [esp + 0xa0], si
call sub.MSVCR80.dll_memset
add esp, 0xc
test edi, edi
mov dword [esp + 0x38], ebx
je 0x414f33
cmp dword [esp + 0x3c], ebx
je 0x414f33
mov eax, dword [esp + 0x30]
test eax, eax
je 0x414f33
mov edi, dword [esp + 0x48]
test edi, edi
je 0x414f33
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
mov esi, dword [esp + 0x30]
je 0x414ce2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x414ce2
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x414ce2
lea esi, [esp + 0x20]
call fcn.004151f0
mov eax, 0x80030005
jmp 0x41502e
push 0x104
push edi
lea edx, [esp + 0x9c]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x12
mov edx, esi
call fcn.00414730
add esp, 0x14
test eax, eax
mov dword [esp + 0x10], eax
jge 0x414d48
cmp eax, 0x80030050
jne 0x414d2c
push esi
call ebx
test eax, eax
je 0x414d2c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x12
push esi
call dword [sym.imp.ole32.dll_StgCreateDocfile]
test eax, eax
mov dword [esp + 0x10], eax
jl 0x414f13
mov esi, 0x5c
cmp word [esp + 0x94], si
lea ebx, [esp + 0x94]
jne 0x414d65
lea ebx, [esp + 0x96]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d70
sub eax, edx
sar eax, 1
je 0x414d8d
cmp word [ebx + eax*2 - 2], si
jne 0x414d8d
mov word [ebx + eax*2 - 2], cx
push 0x419e10
push ebx
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x414daa
mov word [edi], 0
add edi, 2
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x414f13
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x12
push 0
push ebx
push esi
call ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x414df4
mov edx, dword [esi]
mov ecx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x12
push ebx
push esi
call ecx
test eax, eax
mov dword [esp + 0x10], eax
jl 0x414f13
lea ebx, [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.00415270
test edi, edi
mov esi, dword [esp + 0x18]
je 0x414e36
cmp word [edi], 0
je 0x414e36
push 0x419e10
push edi
mov ebx, edi
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x414e2e
mov word [edi], 0
add edi, 2
test ebx, ebx
jne 0x414dae
lea eax, [esp + 0x20]
call fcn.00415220
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
je 0x414f13
mov esi, dword [esp + 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x12
push 0
push esi
push eax
call edx
test eax, eax
jge 0x414e8d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x12
push esi
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov dword [esp + 0x10], eax
jl 0x414f13
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
mov dword [esp + 0x10], eax
jl 0x414f13
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 0
push 0
xor ecx, ecx
push ecx
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
test eax, eax
mov dword [esp + 0x10], eax
jl 0x414f13
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov esi, dword [esp + 0x40]
mov dword [esi], 0
je 0x414efd
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword [eax]
push esi
push edi
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
cmp eax, 0x80030109
mov dword [esp + 0x10], eax
jne 0x414efd
mov dword [esp + 0x38], 1
jmp 0x414f13
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
mov edx, dword [ecx]
xor eax, eax
push eax
mov eax, dword [edx + 0x18]
push esi
push ecx
call eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414f2b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x414feb
mov eax, esi
sub eax, ebx
sar eax, 2
je 0x414feb
cmp ebx, esi
mov edi, esi
jbe 0x414f5c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], eax
lea eax, [edi - 4]
cmp eax, esi
mov dword [esp + 0x44], edi
ja 0x414f73
cmp eax, ebx
jae 0x414f81
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
add edi, 0xfffffffc
cmp edi, dword [ecx + 8]
jb 0x414f9b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x18], eax
je 0x414fce
test ebx, ebx
je 0x414fb9
mov edx, esi
sub edx, ebx
sar edx, 2
je 0x414fb9
sub esi, 4
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], 0
jmp 0x414f2b
test ebx, ebx
je 0x414feb
mov eax, esi
sub eax, ebx
sar eax, 2
je 0x414f33
sub esi, 4
mov dword [esp + 0x28], esi
jmp 0x414f33
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415007
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x38], 0
je 0x41501d
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x41502a
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004158da
mov esp, ebp
pop ebp
ret 0x10