Function at 0x417d90
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e860
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.00418350
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0041ae10
add esp, 4
mov byte [ebp - 4], 1
cmp dword [0x43e538], 0
je 0x417e04
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41802c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x1c], 1
je 0x418015
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call ebx
mov esi, dword [esi + 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, ecx
test esi, esi
je 0x417fe8
cmp word [esi], 0
je 0x417fe8
test ecx, ecx
je 0x417fe8
cmp word [ecx], 0
je 0x417fe8
push esi
call fcn.00401010
add esp, 4
test eax, eax
jne 0x417e96
mov dword [ebp - 0x18], vtable.CBindStatusCallback.0
push edi
mov byte [ebp - 4], 2
call ebx
lea edx, [ebp - 0x18]
push edx
push 0
push edi
push esi
push 0
call dword [0x43c2c0]
test eax, eax
jne 0x417fe5
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417fe5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041a1a0
add esp, 4
push eax
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.0041aed0
mov bl, al
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x417ffe
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ecx
push edx
call esi
test eax, eax
jne 0x417f6a
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 3
push eax
push edi
push str._s._d
lea edi, [ebp - 0x18]
call fcn.004040d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push 1
push edi
push eax
call esi
test eax, eax
je 0x417f41
push 4
push 0
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 1
push ecx
push edx
call esi
test eax, eax
jne 0x417f5e
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004038d0
mov edi, dword [ebp + 8]
add edi, 0x30
lea eax, [ebp - 0x14]
call fcn.004032d0
push 0x3ef
call fcn.00407610
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417fa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417fce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41802c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3f0
call fcn.00407610
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41805e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4