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

Disassembly:
sub esp, 0x4a0
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
push edi
cmp eax, 0xffffffff
jne 0x45f2b3
mov eax, dword [esi + 0x44]
test eax, eax
je 0x45f2b3
cmp eax, 1
je 0x45f2b3
mov eax, dword [esi + 0x28]
jmp 0x45f2b7
mov eax, dword [esi + eax*4 + 0x28]
push 0x4bfc48
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea edi, [eax + 4]
push 0
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push 0x40b
push eax
call ebx
cmp dword [esi + 0x94], 0
mov ebp, eax
mov dword [esp + 0x14], ebp
je 0x45f30a
cmp dword [esi + 0x7c], 0
jne 0x45f30a
mov ecx, dword [esi + 8]
push 0
push 0xe104
push 0x111
push ecx
call ebx
jmp 0x45f5ff
cmp dword [esi + 0x80], 0
jne 0x45f333
mov edx, dword [edi]
push 0
push 0
push 0x415
push edx
call ebx
cmp eax, 1
je 0x45f333
cmp byte [0x4d938c], 0
je 0x45f497
cmp dword [0x4d6678], 3
jne 0x45f3d3
mov eax, dword [edi]
push 0
push 0x211
push 0x41d
push eax
call ebx
test eax, eax
je 0x45f3d3
mov edx, dword [0x5144c8]
push 0x40
lea ecx, [esp + 0x20]
push ecx
push 0x3b6a
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x70]
push 0
push 0
push 0x24
lea eax, [esp + 0x28]
push eax
call fcn.00481520
cmp eax, 6
jne 0x45f497
mov ecx, dword [edi]
push 0
push 0
push 0x40b
push ecx
call ebx
mov ebp, eax
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f3cf
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0x11
mov ecx, edi
call fcn.0042ec80
lea ecx, [esi + 0xa0]
call fcn.00457490
mov ebp, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [esi + 0x70]
lea eax, [esp + 0x18]
push eax
push 3
mov dword [esp + 0x20], edx
call fcn.004816f0
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45f444
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0045ec20
mov ebp, eax
cmp ebp, 6
jne 0x45f43d
push 0
push 0
mov dword [esi + 0x80], 0
mov edx, dword [edi]
push 0x40b
push edx
call ebx
mov ecx, dword [esi + 0x70]
push eax
call fcn.0046f1e0
mov ecx, eax
call fcn.00417050
mov ecx, dword [esi + 0x70]
lea eax, [esp + 0x18]
push eax
push 4
call fcn.004816f0
mov eax, ebp
jmp 0x45f5ff
mov ecx, dword [edi]
push 0
push ebp
push 0x40a
push ecx
call ebx
test eax, eax
je 0x45f4a1
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x45f462
push ebp
call fcn.0045d540
mov edx, dword [esi + 0x70]
push 0
push 0xb57
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], 0
mov eax, dword [edx + 8]
push 0x111
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x70]
push 4
call fcn.004816f0
mov eax, 6
jmp 0x45f5ff
cmp dword [0x4d6678], 3
jne 0x45f575
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f575
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x45f571
push 0x3b6a
lea ecx, [esp + 0x20]
call fcn.00401a60
mov ecx, dword [esi + 0x70]
push 0
push 0
push 0x24
lea edx, [esp + 0x28]
push edx
call fcn.00481520
cmp eax, 6
jne 0x45f497
and ebx, 0xfffffffe
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0x11
mov ecx, edi
call fcn.0042ec80
push 0
push ebx
mov ecx, edi
call fcn.00457d10
test al, al
je 0x45f571
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x45f52e
mov eax, ebx
push eax
call fcn.0045d540
mov ecx, dword [esi + 0x70]
push 0
push 0xb57
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], 0
mov edx, dword [ecx + 8]
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x70]
lea eax, [esp + 0x18]
push eax
push 4
call fcn.004816f0
mov eax, 6
jmp 0x45f5ff
mov ebp, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x514540]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
call eax
lea ecx, [esp + 0x10]
push ecx
add eax, 0x10
push edi
mov dword [esp + 0x18], eax
call fcn.00437920
mov eax, dword [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0xac]
xor edx, edx
push 0x3b66
push ecx
mov word [esp + 0xb4], dx
call fcn.0042f7e0
mov ecx, dword [esi + 0x70]
add esp, 0x18
push 0
push 0
push 0x30
lea edx, [esp + 0xa8]
push edx
call fcn.00481520
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f5fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x4a0
ret 0x10