Function at 0x5aed30
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc3e7
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x558], ecx
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5af086
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5cc], esp
lea eax, [ebp + 0x20]
push eax
call fcn.00408747
mov ecx, dword [ebp - 0x558]
call fcn.005adb70
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x5aede8
mov dword [ebp - 0x590], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x590]
jmp 0x5af359
lea ecx, [ebp - 0x554]
call fcn.004bdcc0
mov byte [ebp - 4], 2
push 0x5f8204
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0xc0]
push edx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x5a8], eax
mov eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5ac], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5ac]
call fcn.00403f32
push eax
lea ecx, [ebp - 0x554]
call fcn.004bdee0
mov dword [ebp - 0x5b4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.00403fae
cmp dword [ebp - 0x5b4], 0
je 0x5af072
lea ecx, [ebp - 0x554]
call fcn.004bde30
test eax, eax
jne 0x5af05f
lea ecx, [ebp - 0x56c]
push ecx
lea ecx, [ebp - 0x554]
call fcn.004bdd50
mov dword [ebp - 0x5b8], eax
mov edx, dword [ebp - 0x5b8]
mov dword [ebp - 0x5c0], edx
mov byte [ebp - 4], 4
push 0x5f8200
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x5bc], eax
mov edx, dword [ebp - 0x5bc]
mov dword [ebp - 0x568], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c0]
call fcn.0041f757
push eax
mov eax, dword [ebp - 0x568]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0044a32b
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd8]
call fcn.00403fae
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x56c]
call fcn.0040b035
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5d0], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00408747
mov dword [ebp - 0x5d4], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x584]
push eax
lea ecx, [ebp - 0x554]
call fcn.004bdd50
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp - 0x570]
mov dword [ebp - 0x578], ecx
mov byte [ebp - 4], 0xa
push 0x5f8214
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x574], eax
mov ecx, dword [ebp - 0x574]
mov dword [ebp - 0x57c], ecx
mov byte [ebp - 4], 0xb
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5d8], esp
mov ecx, dword [ebp - 0x578]
call fcn.0041f757
push eax
mov edx, dword [ebp - 0x57c]
push edx
push esi
call fcn.0044a32b
add esp, 0xc
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x558]
call fcn.005aed30
mov dword [ebp - 0x580], eax
cmp dword [ebp - 0x580], 0
jne 0x5aefc9
mov dword [ebp - 0x560], 1
jmp 0x5aefd3
mov dword [ebp - 0x560], 0
mov al, byte [ebp - 0x560]
mov byte [ebp - 0x559], al
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xf0]
call fcn.00403fae
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x584]
call fcn.0040b035
movzx ecx, byte [ebp - 0x559]
test ecx, ecx
je 0x5af053
mov dword [ebp - 0x588], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x554]
call fcn.004bdd00
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x588]
jmp 0x5af359
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403fae
lea ecx, [ebp - 0x554]
call fcn.004be040
test eax, eax
jne 0x5aee5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x554]
call fcn.004bdd00
jmp 0x5af32e
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5af1b7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5dc], esp
lea edx, [ebp + 0x20]
push edx
call fcn.00408747
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x558]
call fcn.005af380
mov dword [ebp - 0x5e0], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.00403f32
push eax
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x5af14e
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x558]
add ecx, 0x2c
call fcn.00454940
mov edx, dword [ebp - 0x558]
cmp dword [edx], 0
je 0x5af14c
lea ecx, [ebp - 0x74]
call fcn.004be0f0
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
call fcn.004065d3
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004065d3
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 0x20
call fcn.004be3d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x74]
call fcn.004be120
jmp 0x5af1ab
lea eax, [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x558]
add ecx, 8
call fcn.004065d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x558]
mov dword [ecx + 4], eax
mov dword [ebp - 0x58c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x58c]
jmp 0x5af359
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403fae
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x5e8], esp
mov dword [ebp - 0x5b0], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c4], esp
lea eax, [ebp + 0x20]
push eax
call fcn.00408747
mov ecx, dword [ebp - 0x5b0]
push ecx
call fcn.005afa80
add esp, 0x1c
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x558]
call fcn.005adb70
mov dword [ebp - 0x594], eax
cmp dword [ebp - 0x594], 0
jne 0x5af25c
lea edx, [ebp + 0x20]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 8
call fcn.004065d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x558]
mov dword [ecx + 4], eax
mov dword [ebp - 0x598], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x598]
jmp 0x5af359
push 0
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x564], eax
cmp dword [ebp - 0x564], 0
jne 0x5af2a8
lea edx, [ebp + 0x20]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 8
call fcn.004065d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x558]
mov dword [ecx + 4], eax
jmp 0x5af2ff
mov edx, dword [ebp - 0x558]
cmp dword [edx], 0
je 0x5af2ff
lea ecx, [ebp - 0xa8]
call fcn.004be0f0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xa8], 2
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004065d3
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x558]
add ecx, 0x20
call fcn.004be3d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004be120
mov edx, dword [ebp - 0x564]
mov dword [ebp - 0x59c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x59c]
jmp 0x5af359
mov dword [ebp - 0x5a0], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403fae
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov eax, dword [ebp - 0x5a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542347
mov esp, ebp
pop ebp
ret 0x30