Function at 0x414530
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b920
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44dc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x414743
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414572
sub eax, edx
sar eax, 1
je 0x414743
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4145cc
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4145c0
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x4145a6
mov dword [ebp - 0x14], 0
jmp 0x4146fb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x414706
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x414706
push ebx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x414636
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41462a
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x414610
mov dword [ebp - 0x14], 0
jmp 0x4146fb
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x414706
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414650
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415a30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x414703
mov edi, dword [ebp + 8]
push edi
push esi
push ebx
call fcn.004245b9
add esp, 0xc
mov ecx, ebx
call fcn.004147a0
test eax, eax
jne 0x4146ef
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4146e6
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4146dd
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x4146c0
mov dword [ebp - 0x14], 0
jmp 0x4146ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.00415a35
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x414706
jmp 0x414727
mov ebx, dword [ebp + 8]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41471e
mov dword [ebp - 0x14], 0
jmp 0x414727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret