Function at 0x46e960
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520bbe
mov eax, dword fs:[0]
push eax
sub esp, 0x270
push ebx
push esi
push edi
mov eax, dword [0x589560]
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 0x46e9a3
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x10], 0
jne 0x46ea95
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x46e9cb
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46ed08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov edi, eax
jne 0x46e9fa
mov ecx, esi
call fcn.0046e2f0
test al, al
je 0x46ed08
cmp byte [esi + 0x11c], 0
je 0x46ea08
add esi, 0xc
jmp 0x46ea0b
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.0046a7f0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x288], 1
call fcn.00470820
mov esi, eax
call fcn.00471650
mov ecx, ebx
call fcn.00470820
lea ecx, [esp + 0x34]
push ecx
push 0x562c2c
mov ecx, eax
call fcn.00471790
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x46ea7b
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x46ea7b
push eax
call fcn.004fdda1
add esp, 4
xor al, al
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
jne 0x46eaaa
mov ecx, esi
call fcn.0046e2f0
test al, al
je 0x46ed08
mov ebx, dword [esi + 4]
add ebx, 2
lea eax, [ebx + ebx]
push eax
mov dword [esp + 0x14], eax
call fcn.004fdc99
mov edi, eax
add esp, 4
test edi, edi
jne 0x46eb34
cmp byte [esi + 0x11c], al
je 0x46ead3
add esi, 0xc
jmp 0x46ead6
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.0046a7f0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
push 0x562c3c
mov dword [esp + 0x290], 3
call fcn.00470820
mov ecx, eax
call fcn.00471790
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x46ea7b
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
jmp 0x46ea70
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x46eb43
mov eax, dword [esi + 8]
add eax, 4
push eax
push ebx
push edi
call fcn.004fe07f
mov edx, dword [esp + 0x1c]
xor eax, eax
mov word [edx + edi - 2], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 3
mov word [esp + 0x28], 0x454
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov ebx, eax
call fcn.004fdda1
add esp, 4
test ebx, ebx
je 0x46ed08
cmp ebx, 0x402
jne 0x46ec73
cmp byte [esi + 0x11c], 0
je 0x46ebcc
add esi, 0xc
jmp 0x46ebcf
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.0046a7f0
push 0x562c54
lea ecx, [esp + 0x15c]
mov dword [esp + 0x28c], 5
call fcn.0046a770
mov esi, eax
push 0x402
push 0x553b3c
push esi
mov byte [esp + 0x294], 6
call fcn.0046adf0
add esp, 0xc
push 0x554000
push 0x551604
push esi
call fcn.0046adf0
add esp, 0xc
cmp byte [esi + 0x11c], 0
je 0x46ec3e
add esi, 0xc
jmp 0x46ec41
mov esi, dword [esi + 8]
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
add esi, 4
push esi
call fcn.00471620
mov ecx, eax
call fcn.00471790
lea ecx, [esp + 0x158]
call fcn.0046dfd0
lea ecx, [esp + 0x34]
call fcn.0046dfd0
jmp 0x46ea7b
cmp byte [esi + 0x11c], 0
je 0x46ec81
add esi, 0xc
jmp 0x46ec84
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.0046a7f0
push 0x562c54
lea ecx, [esp + 0x15c]
mov dword [esp + 0x28c], 8
call fcn.0046a770
mov esi, eax
push ebx
push 0x553b3c
push esi
mov byte [esp + 0x294], 9
call fcn.0046adf0
add esp, 0xc
push 0x554000
push 0x551604
push esi
call fcn.0046adf0
add esp, 0xc
cmp byte [esi + 0x11c], 0
je 0x46ecef
add esi, 0xc
jmp 0x46ecf2
mov esi, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
add esi, 4
push esi
call fcn.00470820
jmp 0x46ec52
mov al, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc