Function at 0x422c16
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x457b1c
call fcn.004324bc
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
jne 0x422c2f
push 3
pop eax
mov dword [esi + 0x18], eax
jmp 0x422e6b
lea edi, [esi + 0x28]
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, 0x474888
call fcn.0041ac30
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00448374
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00448287
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004218ea
add esp, 0xc
test byte [esi + 0x6c], 0x64
mov dword [ebp - 4], 1
je 0x422c8e
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00447ffc
call fcn.00410810
pop ecx
pop ecx
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x422e57
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x422cb5
xor edi, edi
jmp 0x422d2e
push 5
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x422cc7
cmp eax, 0x20
jne 0x422d2e
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00447ffc
call fcn.0040b3e4
cmp eax, ebx
pop ecx
je 0x422d2b
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00447ffc
call fcn.0040c9ca
push 2
lea eax, [ebp - 0x10]
pop edi
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x18]
push eax
call fcn.0040f656
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00445c02
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00448287
jmp 0x422d2e
push 4
pop edi
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x422e5a
cmp edi, ebx
je 0x422d42
cmp edi, 4
jne 0x422d6a
push ecx
lea eax, [ebp - 0x10]
mov ebx, esp
mov dword [ebp + 8], esp
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
push ebx
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040c18a
pop ecx
jmp 0x422e5a
cmp eax, ebx
je 0x422e5a
cmp edi, 2
jne 0x422e5a
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 8]
push eax
call fcn.0040b60c
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040b6a8
pop ecx
pop ecx
mov byte [ebp - 4], 4
push ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 5
call fcn.00447ffc
mov byte [ebp - 4], 4
call fcn.0040f1f4
add esp, 0xc
cmp eax, ebx
je 0x422df2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
jne 0x422e3d
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00447ffc
call fcn.0040c9ca
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b60c
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00448287
jmp 0x422db7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00448287
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00448287
jmp 0x422e5a
push 6
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x18], edi
call fcn.00448287
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4