Function at 0x5a2bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ac52
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x6fc0c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
push str.Unspecified_error.
call fcn.0059bf80
add esp, 4
cmp dword [ebp + 8], 0
jne 0x5a2c45
push str.Invalid_file_name_specified.
call fcn.0059bf80
add esp, 4
mov eax, 1
jmp 0x5a2feb
cmp dword [ebp + 0xc], 0
je 0x5a2cb4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0059e290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005af4f0
lea ecx, [ebp - 0x18]
call fcn.005af590
lea ecx, [ebp - 0x18]
call fcn.0059ed50
test eax, eax
jne 0x5a2ca5
push str.Invalid_destination_file_name_specified.
call fcn.0059bf80
add esp, 4
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0059e4d0
mov eax, dword [ebp - 0x4c]
jmp 0x5a2feb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0059e4d0
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
mov edx, dword [ebp + 8]
push edx
call fcn.0059e290
mov dword [ebp - 0x94], eax
call fcn.005b6c40
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x5a2ee0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x5a2d0b
mov edx, dword [ebp - 0x20]
and edx, 0x10
jne 0x5a2d0b
mov dword [ebp - 0x24], 1
jmp 0x5a2d12
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x5a2d3d
mov ecx, dword [ebp + 0x14]
and ecx, 2
jne 0x5a2d3d
push str.The_file_does_not_exists_or_not_a_regular_file.
call fcn.0059bf80
add esp, 4
mov eax, 1
jmp 0x5a2feb
lea ecx, [ebp - 0x48]
call fcn.005ad030
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x40]
call fcn.0059e5f0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0059e5f0
mov ecx, dword [ebp + 0x14]
and ecx, 1
je 0x5a2d75
mov dword [ebp - 0x28], 1
jmp 0x5a2d7c
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x5a2d93
mov dword [ebp - 0x2c], 1
jmp 0x5a2d9a
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 0xc], 0
je 0x5a2db7
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x44]
call fcn.0059e5f0
jmp 0x5a2e3d
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0059e290
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0xffffffff
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.005af340
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.005af3d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x5a2e25
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x10]
call fcn.005af200
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x10]
call fcn.005ad520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0059e4d0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x44]
call fcn.005ad520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0059e4d0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xd8
call fcn.005b5130
lea edx, [ebp - 0x98]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0xd8
call fcn.005b2eb0
push eax
lea ecx, [ebp - 0x68]
call fcn.005ad740
movzx eax, al
test eax, eax
je 0x5a2ea3
push str.A_file_with_such_a_destination_name_already_exists.
call fcn.0059bf80
add esp, 4
mov dword [ebp - 0x6c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.005ad4d0
mov eax, dword [ebp - 0x6c]
jmp 0x5a2feb
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0xd8
call fcn.005ad870
mov ecx, eax
call fcn.005ad5b0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.005a5550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.005ad4d0
jmp 0x5a2fdc
lea ecx, [ebp - 0x8c]
call fcn.005ad030
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0059e5f0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0059e5f0
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0059e290
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.005b6980
add esp, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x88]
call fcn.005ad520
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.0059e4d0
mov ecx, dword [ebp + 0x14]
and ecx, 1
je 0x5a2f6d
mov dword [ebp - 0x30], 1
jmp 0x5a2f74
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x5a2f8b
mov dword [ebp - 0x34], 1
jmp 0x5a2f92
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xd8
call fcn.005ad870
mov ecx, eax
call fcn.005ad5b0
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.005a5550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.005ad4d0
push str.Success.
call fcn.0059bf80
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10