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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0043fe10
xor eax, eax
push ebp
push 0x4410f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x440f38
call fcn.00406630
jmp 0x4410fb
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 5
jae 0x4410dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4823f8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x440fa9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x440f96
test byte [ebp - 0x24], 1
je 0x440f96
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040792c
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, 0x203
call fcn.00432df0
mov dword [ebp - 0x10], eax
mov eax, dword [0x4823f8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x440fd7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00432b40
test al, al
jne 0x440fd7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, 0x200
call fcn.00432df0
mov dword [ebp - 0x10], eax
mov eax, dword [0x4823f8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
je 0x4410bf
push 0
push 0
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.0041796c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0xffffffff
jne 0x44101c
cmp dword [eax + 0x20], 0xffffffff
jne 0x44101c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x24], edx
cmp dword [ebp - 0x1c], 0
jne 0x44104c
cmp dword [ebp - 0x20], 0
jne 0x44104c
cmp dword [ebp - 0xc], 0
je 0x44107f
mov eax, dword [ebp - 0xc]
call fcn.00407308
push eax
mov eax, dword [ebp - 0xc]
call fcn.004076fc
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.00417934
jmp 0x44107f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
cmp edx, dword [ebp - 0x1c]
jne 0x441060
cmp eax, dword [ebp - 0x20]
jae 0x44107f
jmp 0x441062
jge 0x44107f
mov eax, dword [0x4823f8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00440ba0
jmp 0x4410d2
cmp dword [ebp - 8], 0
je 0x4410a1
mov eax, dword [ebp - 8]
call fcn.00407308
push eax
mov eax, dword [ebp - 8]
call fcn.004076fc
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.00417934
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x4410b5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
jmp 0x4410dc
mov eax, dword [ebp - 0x10]
call fcn.004179bc
jmp 0x4410dc
mov eax, 0xa
call fcn.004051bc
push eax
call sub.KERNEL32.DLL_Sleep
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 5
jb 0x440f49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4410fb
mov eax, dword [ebp - 4]
call fcn.00440810
pop eax
jmp eax
mov esp, ebp
pop ebp
ret