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

Disassembly:
push 0xffffffffffffffff
push 0x4c866e
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42a7fe
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esp + 0x298], 0
jne 0x42a8e8
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42a82a
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ab93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esp + 0x294], 0
mov edi, eax
jne 0x42a85d
mov ecx, esi
call fcn.0042a1b0
test al, al
je 0x42ab93
cmp byte [esi + 0x11c], 0
je 0x42a86b
add esi, 0xc
jmp 0x42a86e
mov esi, dword [esi + 8]
lea ecx, [esp + 0x38]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0x38]
call fcn.00430b00
mov ebx, dword [esp + 0x290]
mov ecx, ebx
mov dword [esp + 0x288], 1
call fcn.0042c990
mov esi, eax
call fcn.0042cad0
mov ecx, ebx
call fcn.0042c990
mov edi, eax
push 0x4f1284
lea eax, [esp + 0x3c]
call fcn.0042cc40
cmp byte [esp + 0x154], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x42a8e1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
cmp eax, ecx
je 0x42a8e1
push eax
call fcn.004a4a7f
add esp, 4
xor al, al
jmp 0x42ab95
cmp byte [esp + 0x294], 0
jne 0x42a921
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42a901
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ab93
shr eax, 4
not al
and al, 1
je 0x42ab93
mov eax, dword [esi + 4]
lea ebp, [eax + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.004a4b5c
mov edi, eax
add esp, 4
test edi, edi
jne 0x42a9ab
cmp byte [esi + 0x11c], al
je 0x42a947
add esi, 0xc
jmp 0x42a94a
mov esi, dword [esi + 8]
lea ecx, [esp + 0x38]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0x38]
call fcn.00430b00
mov ecx, dword [esp + 0x290]
push 0x4f1294
mov dword [esp + 0x28c], 3
call fcn.0042c990
mov edi, eax
lea eax, [esp + 0x3c]
call fcn.0042cc40
cmp byte [esp + 0x154], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x42a8e1
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
cmp eax, edx
jmp 0x42a8d6
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x42a9ba
mov eax, dword [esi + 8]
add eax, 4
push eax
push ebp
push edi
call fcn.004a575e
xor eax, eax
mov word [ebx + edi - 2], ax
add esp, 0xc
lea edx, [esp + 0x18]
xor ebx, ebx
mov ecx, 0x454
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 3
mov word [esp + 0x2c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov ebp, eax
call fcn.004a4a7f
add esp, 4
cmp ebp, ebx
je 0x42ab93
cmp ebp, 0x402
jne 0x42aaee
cmp byte [esi + 0x11c], bl
je 0x42aa43
add esi, 0xc
jmp 0x42aa46
mov esi, dword [esi + 8]
lea ecx, [esp + 0x38]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0x38]
call fcn.00430b00
push 0x4f12ac
lea ecx, [esp + 0x160]
mov dword [esp + 0x28c], 5
call fcn.00430a60
mov esi, eax
push 0x402
push 0x4eef9c
mov edx, esi
mov byte [esp + 0x290], 6
call fcn.00430eb0
push 0x4f12c8
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
add esp, 0x10
cmp byte [esi + 0x11c], 0
je 0x42aab4
add esi, 0xc
jmp 0x42aab7
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x290]
add esi, 4
push esi
call fcn.0042caa0
mov edi, eax
lea eax, [esp + 0x3c]
call fcn.0042cc40
lea ecx, [esp + 0x15c]
call fcn.00430ad0
lea ecx, [esp + 0x38]
call fcn.00430ad0
xor al, al
jmp 0x42ab95
cmp byte [esi + 0x11c], bl
je 0x42aafb
add esi, 0xc
jmp 0x42aafe
mov esi, dword [esi + 8]
lea ecx, [esp + 0x38]
call fcn.00430920
lea eax, [esi + 4]
lea edx, [esp + 0x38]
call fcn.00430b00
push 0x4f12ac
lea ecx, [esp + 0x160]
mov dword [esp + 0x28c], 8
call fcn.00430a60
mov esi, eax
push ebp
push 0x4eef9c
mov edx, esi
mov byte [esp + 0x290], 9
call fcn.00430eb0
push 0x4f12c8
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
add esp, 0x10
cmp byte [esi + 0x11c], 0
je 0x42ab7b
mov ecx, dword [esp + 0x290]
add esi, 0xc
add esi, 4
push esi
call fcn.0042c990
jmp 0x42aac7
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x290]
add esi, 4
push esi
call fcn.0042c990
jmp 0x42aac7
mov al, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x278
ret 0xc