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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc338
mov eax, dword fs:[0]
push eax
sub esp, 0x5e0
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 - 0x5c4], 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 0x5aea2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5d0], 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 0x5ae768
mov dword [ebp - 0x594], 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 - 0x594]
jmp 0x5aed0c
lea ecx, [ebp - 0x554]
call fcn.004bdcc0
mov byte [ebp - 4], 2
push 0x5f81fc
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 0x5ae9f2
lea ecx, [ebp - 0x554]
call fcn.004bde30
test eax, eax
jne 0x5ae9df
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 0x5f820c
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 - 0x5d4], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00408747
mov dword [ebp - 0x5d8], 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 0x5f8208
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 - 0x5dc], 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.005ae6b0
mov dword [ebp - 0x580], eax
cmp dword [ebp - 0x580], 0
jne 0x5ae949
mov dword [ebp - 0x560], 1
jmp 0x5ae953
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 0x5ae9d3
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 0x5aed0c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403fae
lea ecx, [ebp - 0x554]
call fcn.004be040
test eax, eax
jne 0x5ae7de
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5e0], esp
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
mov ecx, esi
call fcn.0040921d
mov ecx, dword [ebp - 0x558]
call fcn.005ae320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x554]
call fcn.004bdd00
jmp 0x5aece1
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5aeb5d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5e4], 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 - 0x5e8], 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 0x5aeaf4
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 0x5aeaf2
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 0x5aeb51
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 0x5aed0c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403fae
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x5ec], esp
mov dword [ebp - 0x590], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c8], esp
lea eax, [ebp + 0x20]
push eax
call fcn.00408747
mov ecx, dword [ebp - 0x590]
push ecx
call fcn.005afa80
add esp, 0x1c
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x558]
call fcn.005adb70
mov dword [ebp - 0x5b0], eax
cmp dword [ebp - 0x5b0], 0
jne 0x5aec02
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 0x5aed0c
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x564], eax
cmp dword [ebp - 0x564], 0
jne 0x5aec4c
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 0x5aecb2
mov edx, dword [ebp - 0x558]
cmp dword [edx], 0
je 0x5aecb2
lea ecx, [ebp - 0xa8]
call fcn.004be0f0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0xa8], 1
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004065d3
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004065d3
lea edx, [ebp - 0xa8]
push edx
mov ecx, dword [ebp - 0x558]
add ecx, 0x20
call fcn.004be3d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004be120
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x59c], eax
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 0x5aed0c
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.00542357
mov esp, ebp
pop ebp
ret 0x30