Function at 0x442900
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.00441810
xor eax, eax
push ebp
push 0x442af4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x442938
call fcn.00406744
jmp 0x442afb
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 5
jae 0x442adc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x48a698]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x4429a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00407a40
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x442996
test byte [ebp - 0x24], 1
je 0x442996
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00407a40
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, 0x203
call fcn.004346c0
mov dword [ebp - 0x10], eax
mov eax, dword [0x48a698]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x4429d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00434410
test al, al
jne 0x4429d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, 0x200
call fcn.004346c0
mov dword [ebp - 0x10], eax
mov eax, dword [0x48a698]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
je 0x442abf
push 0
push 0
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.00417ca8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0xffffffff
jne 0x442a1c
cmp dword [eax + 0x20], 0xffffffff
jne 0x442a1c
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 0x442a4c
cmp dword [ebp - 0x20], 0
jne 0x442a4c
cmp dword [ebp - 0xc], 0
je 0x442a7f
mov eax, dword [ebp - 0xc]
call fcn.0040741c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407810
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.00417c70
jmp 0x442a7f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
cmp edx, dword [ebp - 0x1c]
jne 0x442a60
cmp eax, dword [ebp - 0x20]
jae 0x442a7f
jmp 0x442a62
jge 0x442a7f
mov eax, dword [0x48a698]
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.004425a0
jmp 0x442ad2
cmp dword [ebp - 8], 0
je 0x442aa1
mov eax, dword [ebp - 8]
call fcn.0040741c
push eax
mov eax, dword [ebp - 8]
call fcn.00407810
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.00417c70
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x442ab5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
jmp 0x442adc
mov eax, dword [ebp - 0x10]
call fcn.00417cf8
jmp 0x442adc
mov eax, 0xa
call fcn.004052d0
push eax
call sub.kernel32.dll_Sleep
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 5
jb 0x442949
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442afb
mov eax, dword [ebp - 4]
call fcn.00442210
pop eax
jmp eax
mov esp, ebp
pop ebp
ret