Function at 0x4088a0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x43300c]
mov ebx, ecx
mov esi, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4088c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [0x42b420]
mov edi, dword [ebp + 8]
movsd xmm0, qword [0x42b418]
movsd xmm1, qword [str._s.bak_u]
mov dword [esi + 8], 0xffffffff
mov dword [ebp - 0x34], esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
push 3
push dword [ebx + 4]
push eax
push esi
call fcn.004099f0
add esp, 0x10
mov ecx, ebx
test eax, eax
jne 0x408973
mov edx, dword [ebp - 0x34]
call fcn.00409a70
mov esi, eax
test edi, edi
je 0x408948
test esi, esi
js 0x408948
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x408948
mov word [eax], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
test eax, eax
je 0x40895f
push eax
call fcn.0040d9b7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
inc ebx
push 0
push dword [ecx + 4]
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
mov dword [ebp - 0x30], ecx
call fcn.00409a30
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x408924
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4089c4
mov ecx, dword [ebp + 8]
mov edx, esi
xor esi, esi
test ecx, ecx
je 0x408948
mov eax, dword [ecx + 4]
mov dword [ecx + 4], edi
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
mov dword [ecx], edx
jmp 0x408948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
cmp eax, 2
mov esi, edx
lea edx, [ebp - 0x24]
je 0x408af4
cmp eax, 5
je 0x4089f1
cmp eax, 0xb7
jne 0x408924
push 1
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.00409a30
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x408924
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4089a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
cmp eax, 2
mov esi, edx
lea edx, [ebp - 0x24]
je 0x408af4
cmp eax, 0xb7
je 0x408a4d
cmp eax, 5
jne 0x408924
push 2
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.00409a30
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x408924
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4089a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
cmp eax, 2
mov esi, edx
lea edx, [ebp - 0x24]
je 0x408af4
cmp eax, 0xb7
je 0x408aa9
cmp eax, 5
jne 0x408924
push 3
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.00409a30
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x408924
mov edi, dword [ebp - 0x28]
push 1
push edi
push dword [ecx + 4]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4089a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
cmp eax, 2
mov ecx, ebx
jne 0x408924
xor esi, esi
test edi, edi
jne 0x408936
jmp 0x408948