Function at 0x40a000
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 0x40a029
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [0x42b440]
mov edi, dword [ebp + 8]
movsd xmm0, qword [0x42b438]
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.0040b130
add esp, 0x10
mov ecx, ebx
test eax, eax
jne 0x40a0d3
mov edx, dword [ebp - 0x34]
call fcn.0040b1b0
mov esi, eax
test edi, edi
je 0x40a0a8
test esi, esi
js 0x40a0a8
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40a0a8
mov word [eax], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
test eax, eax
je 0x40a0bf
push eax
call fcn.0040da4a
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
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.0040b170
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x40a084
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a124
mov ecx, dword [ebp + 8]
mov edx, esi
xor esi, esi
test ecx, ecx
je 0x40a0a8
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 0x40a0a8
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 0x40a254
cmp eax, 5
je 0x40a151
cmp eax, 0xb7
jne 0x40a084
push 1
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.0040b170
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x40a084
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40a107
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 0x40a254
cmp eax, 0xb7
je 0x40a1ad
cmp eax, 5
jne 0x40a084
push 2
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.0040b170
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x40a084
mov edi, dword [ebp - 0x28]
push edi
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40a107
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 0x40a254
cmp eax, 0xb7
je 0x40a209
cmp eax, 5
jne 0x40a084
push 3
push dword [ecx + 4]
push edx
push ebx
push esi
call fcn.0040b170
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x40a084
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 0x40a107
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
cmp eax, 2
mov ecx, ebx
jne 0x40a084
xor esi, esi
test edi, edi
jne 0x40a096
jmp 0x40a0a8