Function at 0x41ed80
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f8de
mov eax, dword fs:[0]
push eax
sub esp, 0x270
push ebx
push esi
push edi
mov eax, dword [0x56957c]
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 0x41edc3
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 0x41eeb4
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41edeb
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41f12a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov edi, eax
jne 0x41ee1a
mov ecx, esi
call fcn.0041e4d0
test al, al
je 0x41f12a
cmp byte [esi + 0x11c], 0
je 0x41ee28
add esi, 0xc
jmp 0x41ee2b
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.004174b0
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.00417710
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x288], 1
call fcn.00416430
mov esi, eax
call fcn.004170f0
mov ecx, ebx
call fcn.00416430
mov esi, eax
push 0x54ac38
lea eax, [esp + 0x38]
call fcn.004172c0
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x41ee9a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x41ee9a
push eax
call fcn.004ed7b6
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 0x41eec9
mov ecx, esi
call fcn.0041e4d0
test al, al
je 0x41f12a
mov ebx, dword [esi + 4]
add ebx, 2
lea eax, [ebx + ebx]
push eax
mov dword [esp + 0x14], eax
call fcn.004ed893
mov edi, eax
add esp, 4
test edi, edi
jne 0x41ef52
cmp byte [esi + 0x11c], al
je 0x41eef2
add esi, 0xc
jmp 0x41eef5
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.004174b0
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.00417710
mov ecx, dword [ebp + 8]
push 0x54ac48
mov dword [esp + 0x28c], 3
call fcn.00416430
mov esi, eax
lea eax, [esp + 0x38]
call fcn.004172c0
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x41ee9a
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
jmp 0x41ee8f
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41ef61
mov eax, dword [esi + 8]
add eax, 4
push eax
push ebx
push edi
call fcn.004ee6af
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov word [ecx + 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]
mov edx, 0x454
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 3
mov word [esp + 0x28], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov ebx, eax
call fcn.004ed7b6
add esp, 4
test ebx, ebx
je 0x41f12a
cmp ebx, 0x402
jne 0x41f08f
cmp byte [esi + 0x11c], 0
je 0x41efed
add esi, 0xc
jmp 0x41eff0
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.004174b0
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.00417710
push 0x54ac60
lea ecx, [esp + 0x15c]
mov dword [esp + 0x28c], 5
call fcn.004175e0
mov esi, eax
push 0x402
push 0x544fb4
mov edx, esi
mov byte [esp + 0x290], 6
call fcn.00417ed0
add esp, 8
push 0x54ac7c
mov ecx, esi
call fcn.00417d40
add eax, 8
cmp byte [eax + 0x114], 0
je 0x41f05c
add eax, 4
jmp 0x41f05e
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
add eax, 4
push eax
call fcn.004170c0
mov esi, eax
lea eax, [esp + 0x38]
call fcn.004172c0
lea ecx, [esp + 0x158]
call fcn.00417650
lea ecx, [esp + 0x34]
call fcn.00417650
jmp 0x41ee9a
cmp byte [esi + 0x11c], 0
je 0x41f09d
add esi, 0xc
jmp 0x41f0a0
mov esi, dword [esi + 8]
lea ecx, [esp + 0x34]
call fcn.004174b0
lea eax, [esi + 4]
lea edx, [esp + 0x34]
call fcn.00417710
push 0x54ac60
lea ecx, [esp + 0x15c]
mov dword [esp + 0x28c], 8
call fcn.004175e0
mov esi, eax
push ebx
push 0x544fb4
mov edx, esi
mov byte [esp + 0x290], 9
call fcn.00417ed0
add esp, 8
push 0x54ac7c
mov ecx, esi
call fcn.00417d40
add eax, 8
cmp byte [eax + 0x114], 0
je 0x41f117
mov ecx, dword [ebp + 8]
add eax, 4
add eax, 4
push eax
call fcn.00416430
jmp 0x41f06a
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
add eax, 4
push eax
call fcn.00416430
jmp 0x41f06a
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