Function at 0x410710
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50806d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
push ebp
mov ebp, dword [esp + 0x850]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], edi
je 0x410806
push ebp
call fcn.0043533b
add esp, 4
test eax, eax
je 0x410806
mov esi, dword [esp + 0x85c]
cmp esi, edi
je 0x410806
push esi
call fcn.0043533b
add esp, 4
test eax, eax
je 0x410806
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
call ebx
cmp eax, 0xffffffff
je 0x410806
push esi
push ebp
call fcn.00435619
add esp, 8
test eax, eax
je 0x410806
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x448], di
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x44a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edx, edx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x543c98]
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x854], edx
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410865
mov eax, dword [esp + 0x864]
test eax, eax
je 0x410823
lea ecx, [esp + 0x18]
mov dword [esp + 0x850], 0xffffffff
call fcn.004ea741
xor eax, eax
mov ecx, dword [esp + 0x848]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x844
ret 0x14
test bl, 1
je 0x410834
mov eax, ebx
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x410865
push 0x200
lea ecx, [esp + 0x44c]
push esi
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00411d80
lea edx, [esp + 0x448]
push 3
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0x44], eax
mov eax, dword [0x543c98]
mov dword [esp + 0x28], eax
mov byte [esp + 0x850], 1
mov dword [esp + 0x3c], eax
mov byte [esp + 0x850], 2
mov dword [esp + 0x40], eax
mov byte [esp + 0x850], 3
mov dword [esp + 0x38], eax
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x854], 4
call fcn.004ea7b5
push ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x854], 5
call fcn.004ea7b5
mov bl, 6
push 0x5c
lea ecx, [esp + 0x30]
mov byte [esp + 0x854], bl
call fcn.004e38eb
push 0x5c
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.004e38eb
cmp esi, 0xffffffff
mov edi, eax
je 0x4109cb
cmp edi, 0xffffffff
je 0x4109cb
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.004e381f
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x854], 7
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], bl
call fcn.004ea741
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e37a3
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x854], 8
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], bl
call fcn.004ea741
lea ecx, [edi + 1]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004e381f
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x854], 9
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], bl
call fcn.004ea741
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
sub eax, edi
dec eax
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004e37a3
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x854], 0xa
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], bl
call fcn.004ea741
jmp 0x410a02
push 0x556998
lea ecx, [esp + 0x2c]
call fcn.004ea8d8
push 0x556998
lea ecx, [esp + 0x40]
call fcn.004ea8d8
mov edx, dword [esp + 0x85c]
lea ecx, [esp + 0x40]
push edx
call fcn.004ea8d8
push ebp
lea ecx, [esp + 0x3c]
call fcn.004ea8d8
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004ea980
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
push 0x200
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x858], 0xb
push eax
call fcn.00411d80
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], bl
call fcn.004ea741
mov ecx, dword [0x543c98]
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x864]
lea edx, [esp + 0x48]
push edi
push edx
push ebp
mov byte [esp + 0x85c], 0xc
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x410c4e
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.00454fb0
mov esi, eax
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x854], 0xd
call fcn.00454fb0
mov ecx, dword [esi]
mov edx, dword [eax]
push edi
push ecx
push edx
lea eax, [esp + 0x24]
push str.CopyMoveFile_1...___s____s____d_
push eax
mov byte [esp + 0x864], 0xe
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x850], 0xd
call fcn.00455820
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 0xc
call fcn.00455820
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
call fcn.0041e3a0
add esp, 0xc
lea edx, [esp + 0x48]
mov edi, 1
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x28], edi
call fcn.004ea7b5
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 0xf
call fcn.004e38eb
mov esi, eax
cmp esi, 0xffffffff
jne 0x410b29
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
call fcn.004ea8d8
jmp 0x410b65
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, esi
dec eax
push eax
push edx
call fcn.004e37a3
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x854], 0x10
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 0xf
call fcn.004ea741
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00454fb0
mov ecx, dword [eax]
push esi
push ecx
lea edx, [esp + 0x20]
push str.CopyMoveFile_2...___s____d_
push edx
mov byte [esp + 0x860], 0x11
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 0xf
call fcn.00455820
mov eax, dword [esp + 0x18]
push 0
push 2
push eax
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call fcn.004ea980
mov eax, dword [eax]
push 3
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x85c], 0x12
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 0xf
sete byte [esp + 0x23]
call fcn.004ea741
mov al, byte [esp + 0x23]
test al, al
jne 0x410c6b
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004ea980
mov esi, dword [esp + 0x860]
push eax
mov ecx, esi
mov byte [esp + 0x854], 0x13
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], 0xf
call fcn.004ea741
lea ecx, [esp + 0x14]
mov byte [esp + 0x850], 0xc
call fcn.004ea741
jmp 0x410c59
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x860]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x850], bl
call fcn.004ea741
jmp 0x410cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.CopyMoveFile_2_error...___08x_
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x24]
push 0
push 2
push eax
call fcn.0041e3a0
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
mov byte [esp + 0x850], 0xc
call fcn.004ea741
lea ecx, [esp + 0x1c]
mov byte [esp + 0x850], bl
call fcn.004ea741
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x860]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00454fb0
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x24]
push str.CopyMoveFile_3...___s____d___d_
push eax
mov byte [esp + 0x864], 0x14
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x850], bl
call fcn.00455820
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
call fcn.0041e3a0
add esp, 0xc
test edi, edi
jne 0x410da3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410d31
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004ea980
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
push 0x200
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x858], 0x15
push eax
call fcn.00411d80
lea ecx, [esp + 0x24]
mov byte [esp + 0x850], bl
call fcn.004ea741
mov ecx, dword [esp + 0x864]
lea edx, [esp + 0x48]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x410da3
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.004ea8d8
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push eax
call fcn.00454fb0
mov ebp, dword [esp + 0x44]
mov ecx, dword [eax]
push ebp
push edi
push ecx
lea edx, [esp + 0x24]
push str.CopyMoveFile_4...___s____d___d_
push edx
mov byte [esp + 0x864], 0x16
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x850], bl
call fcn.00455820
mov eax, dword [esp + 0x18]
push 0
push 2
push eax
call fcn.0041e3a0
add esp, 0xc
test edi, edi
jne 0x410e07
test ebp, ebp
je 0x410e6d
mov ecx, dword [esp + 0x85c]
push 3
push ecx
jmp 0x410e5f
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0x120089
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410e57
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push str.CopyMoveFile_5...
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x20]
push 0
push 2
push ecx
call fcn.0041e3a0
add esp, 0x14
test ebp, ebp
je 0x410e6d
push 4
push 0
lea edx, [esp + 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x34]
mov byte [esp + 0x850], 5
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x850], 4
call fcn.004ea741
lea ecx, [esp + 0x38]
mov byte [esp + 0x850], 3
call fcn.004ea741
lea ecx, [esp + 0x40]
mov byte [esp + 0x850], 2
call fcn.004ea741
lea ecx, [esp + 0x3c]
mov byte [esp + 0x850], 1
call fcn.004ea741
lea ecx, [esp + 0x28]
mov byte [esp + 0x850], 0
call fcn.004ea741
lea ecx, [esp + 0x18]
mov dword [esp + 0x850], 0xffffffff
call fcn.004ea741
mov eax, edi
jmp 0x410808