Function at 0x61b244
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xef
push 0
push 0
dec ecx
jne 0x61b24d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x61b61e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x74c]
xor ecx, ecx
mov edx, 0x114
call fcn.00403bd8
mov dword [ebp - 0x74c], 0x114
lea eax, [ebp - 0x74c]
push eax
call sub.kernel32.dll_GetVersionExW
mov eax, dword [ebp - 0x73c]
test eax, eax
jne 0x61b2b2
push 0x32
call sub.kernel32.dll_SetLastError
jmp 0x61b5f3
cmp eax, 2
jne 0x61b352
cmp edi, 1
jne 0x61b32f
lea eax, [ebp - 0x750]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov eax, dword [ebp - 0x750]
call fcn.00471a2c
test al, al
je 0x61b317
lea eax, [ebp - 0x754]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov eax, dword [ebp - 0x754]
lea edx, [ebp - 0x10]
call fcn.0061af70
push ebp
lea eax, [ebp - 0x758]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov edx, dword [ebp - 0x758]
mov eax, dword [ebp - 0x10]
call fcn.0061b1b8
pop ecx
push 5
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x61b5f3
cmp edi, 2
jne 0x61b5f3
push 5
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x61b5f3
mov dl, 1
mov eax, dword [0x48b8c0]
call fcn.00491c08
mov esi, eax
push 0x105
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
lea eax, [ebp - 8]
lea edx, [ebp - 0x220]
mov ecx, 0x106
call fcn.00406db8
mov eax, dword [ebp - 8]
test eax, eax
je 0x61b390
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0x5c
je 0x61b3a8
lea eax, [ebp - 8]
mov edx, 0x61b63c
call fcn.00406f0c
lea eax, [ebp - 8]
mov edx, 0x61b64c
call fcn.00406f0c
mov eax, dword [ebp - 8]
call fcn.00471a2c
test al, al
je 0x61b3cb
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x61b670
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x61b3e6
mov edx, 0x61b670
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp edi, 1
jne 0x61b442
lea eax, [ebp - 0x75c]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov eax, dword [ebp - 0x75c]
call fcn.00471a2c
test al, al
je 0x61b442
lea eax, [ebp - 0x760]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov eax, dword [ebp - 0x760]
lea edx, [ebp - 0x10]
call fcn.0061af70
push ebp
lea eax, [ebp - 0x764]
mov edx, dword [ebp - 4]
call fcn.00406d64
mov edx, dword [ebp - 0x764]
mov eax, dword [ebp - 0x10]
call fcn.0061b1b8
pop ecx
push 0x105
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetShortPathNameW
lea eax, [ebp - 0x768]
mov edx, dword [ebp - 0x14]
call fcn.00406d64
mov eax, dword [ebp - 0x768]
call fcn.00471a2c
test al, al
je 0x61b48e
push 0x105
lea eax, [ebp - 0x638]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetShortPathNameW
jmp 0x61b52d
lea eax, [ebp - 0x76c]
mov edx, dword [ebp - 0x14]
call fcn.00406d64
mov eax, dword [ebp - 0x76c]
lea edx, [ebp - 0xc]
call fcn.0047221c
mov edx, dword [ebp - 0xc]
mov eax, 0x61b690
call fcn.0040757c
test eax, eax
jne 0x61b51f
mov ecx, dword [ebp - 0xc]
mov edx, ecx
test edx, edx
je 0x61b4c9
sub edx, 4
mov edx, dword [edx]
cmp edx, 8
jle 0x61b4e6
mov ecx, 0x61b6a0
mov dl, 1
mov eax, dword [0x46ec48]
call fcn.00478e00
call fcn.00405328
jmp 0x61b51f
mov edx, eax
dec edx
cmp edx, 8
jle 0x61b4f2
mov al, 1
jmp 0x61b505
mov edx, ecx
test edx, edx
je 0x61b4fd
sub edx, 4
mov edx, dword [edx]
sub edx, eax
cmp edx, 3
setg al
test al, al
je 0x61b51f
mov ecx, 0x61b6a0
mov dl, 1
mov eax, dword [0x46ec48]
call fcn.00478e00
call fcn.00405328
lea eax, [ebp - 0x638]
mov edx, dword [ebp - 0x14]
call fcn.00472494
cmp edi, 1
jne 0x61b57c
mov edx, 0x61b670
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
push eax
lea eax, [ebp - 0x774]
lea edx, [ebp - 0x42c]
mov ecx, 0x106
call fcn.00406db8
mov ecx, dword [ebp - 0x774]
lea eax, [ebp - 0x770]
mov edx, 0x61b6c8
call fcn.00406f8c
mov ecx, dword [ebp - 0x770]
mov eax, esi
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x61b5ea
cmp edi, 2
jne 0x61b5ea
mov edx, 0x61b670
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
push eax
lea eax, [ebp - 0x77c]
lea edx, [ebp - 0x638]
mov ecx, 0x106
call fcn.00406db8
push dword [ebp - 0x77c]
push 0x61b6e0
lea eax, [ebp - 0x780]
lea edx, [ebp - 0x42c]
mov ecx, 0x106
call fcn.00406db8
push dword [ebp - 0x780]
lea eax, [ebp - 0x778]
mov edx, 3
call fcn.0040705c
mov ecx, dword [ebp - 0x778]
mov eax, esi
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov bl, 1
mov eax, esi
call fcn.00404490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61b625
lea eax, [ebp - 0x780]
mov edx, 0xd
call fcn.00406ba0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00406ba0
ret