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

Disassembly:
push 4
mov eax, 0x10085444
call fcn.10063f44
mov ebx, ecx
xor edi, edi
push 0x318
mov esi, edi
call fcn.1007cfaa
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x100227b1
mov ecx, eax
call fcn.1007b0e6
jmp 0x100227b3
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x58], eax
test eax, eax
jne 0x100227c3
mov esi, 0x8007000e
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100227de
and eax, 0xfffffffd
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test esi, esi
jne 0x100229f1
mov ecx, dword [ebx + 0x58]
call fcn.1007b15c
mov esi, eax
test esi, esi
jne 0x100229f1
mov ecx, dword [ebx + 0x58]
push edi
push dword [ebp + 0xc]
call fcn.1007cfaa
mov esi, eax
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10022835
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
jmp 0x10022837
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x1002285c
lea esi, [ebx + 0x54]
push esi
push dword [ebp + 8]
call fcn.1007cfaa
push dword [esi]
mov ecx, dword [ebx + 0x5c]
call fcn.1007cfaa
mov esi, eax
jmp 0x10022861
mov esi, 0x8007000e
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x10022890
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
jmp 0x10022892
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x60], eax
test eax, eax
je 0x100228ae
push dword [0x10097430]
mov ecx, eax
call fcn.1007cfaa
mov esi, eax
jmp 0x100228b3
mov esi, 0x8007000e
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x100228e2
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
jmp 0x100228e4
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x64], eax
test eax, eax
je 0x100228ff
push 0x1000959c
mov ecx, eax
call fcn.1007cfaa
mov esi, eax
jmp 0x10022904
mov esi, 0x8007000e
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x10022933
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
jmp 0x10022935
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x6c], eax
test eax, eax
je 0x10022950
push 0x10009648
mov ecx, eax
call fcn.1007cfaa
mov esi, eax
jmp 0x10022955
mov esi, 0x8007000e
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x10022984
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
jmp 0x10022986
mov eax, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x68], eax
test eax, eax
je 0x100229a1
push 0x10009628
mov ecx, eax
call fcn.1007cfaa
mov esi, eax
jmp 0x100229a6
mov esi, 0x8007000e
test esi, esi
jne 0x100229f1
push 0x428
call fcn.1007cfaa
pop ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x100229d1
push edi
push edi
push dword [ebx + 0x58]
mov ecx, eax
call fcn.1007cfaa
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x70], edi
test edi, edi
je 0x100229ec
push 0x10009608
mov ecx, edi
call fcn.1007cfaa
mov esi, eax
jmp 0x100229f1
mov esi, 0x8007000e
mov eax, esi
call fcn.1006401c
ret 8