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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b74e6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xe8]
sub ecx, dword [esi + 0xe4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
mov dword [ebp - 0x114], esi
je 0x41b889
mov dword [ebp - 0x10c], ebx
jmp 0x41b5b6
mov esi, dword [ebp - 0x114]
mov edi, dword [esi + 0xe4]
add edi, dword [ebp - 0x10c]
cmp dword [edi + 0x14], 8
jb 0x41b5cc
mov eax, dword [edi]
jmp 0x41b5ce
mov eax, edi
push eax
lea esi, [ebp - 0x108]
call fcn.004093f0
add esp, 4
xor esi, esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00478277
xor ecx, ecx
mov word [ebp - 0x64], cx
mov ecx, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 7
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41b600
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x64]
call fcn.00403870
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.0043d9a3
xor edx, edx
push 0x10
mov eax, str.pro_rollback_dds
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00403870
mov byte [ebp - 4], 3
test byte [0x4e494c], 1
jne 0x41b688
or dword [0x4e494c], 1
lea eax, [ebp - 0x10d]
push eax
mov byte [ebp - 4], 4
call fcn.00401e10
mov byte [ebp - 4], 5
call fcn.004013f0
push 0x4b86b0
call fcn.004793ba
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x2c]
mov ecx, 0x4e48fc
call fcn.00401890
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
mov edx, 8
cmp dword [ebp - 0x50], edx
jae 0x41b6ad
lea ecx, [ebp - 0x64]
cmp dword [eax + 0x14], edx
jb 0x41b6b6
mov esi, dword [eax]
jmp 0x41b6b8
mov esi, eax
mov eax, dword [ebp - 0x114]
push ecx
mov ecx, dword [eax + 0xe8]
sub ecx, dword [eax + 0xe4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
inc ebx
push ebx
push esi
mov dword [ebp - 0x118], ebx
call fcn.00405300
mov ebx, 8
add esp, 0x10
cmp dword [ebp - 0x6c], ebx
jb 0x41b706
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004790ec
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], ebx
jb 0x41b72f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004790ec
add esp, 4
cmp dword [edi + 0x2c], 0
jne 0x41b7a9
cmp dword [edi + 0x14], ebx
jb 0x41b73e
mov eax, dword [edi]
jmp 0x41b740
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b82f
push str..tmp
lea ecx, [ebp - 0x2c]
push edi
push ecx
call fcn.004078b0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jae 0x41b76c
lea eax, [ebp - 0x2c]
cmp dword [edi + 0x14], ebx
jb 0x41b773
mov edi, dword [edi]
push 0xb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x41b788
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], ebx
jb 0x41b82f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004790ec
add esp, 4
jmp 0x41b82f
push str..tmp
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004078b0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x34], ebx
jae 0x41b7c6
lea ecx, [ebp - 0x48]
cmp dword [edi + 0x14], ebx
jb 0x41b7cf
mov eax, dword [edi]
jmp 0x41b7d1
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call esi
cmp dword [edi + 0x14], ebx
jb 0x41b7e6
mov ecx, dword [edi]
jmp 0x41b7e8
mov ecx, edi
cmp dword [edi + 0x30], ebx
lea eax, [edi + 0x1c]
jb 0x41b7f2
mov eax, dword [eax]
push 0xb
push ecx
push eax
call esi
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x41b803
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], ebx
jb 0x41b81b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004790ec
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], ebx
jb 0x41b84f
mov eax, dword [ebp - 0x64]
push eax
call fcn.004790ec
add esp, 4
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xe8]
sub ecx, dword [eax + 0xe4]
mov ebx, dword [ebp - 0x118]
add dword [ebp - 0x10c], 0x38
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x41b5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret