Function at 0x4147c0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4520fb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x410
mov esi, ecx
push eax
lea ecx, [ebp - 0x452]
push ecx
mov ebx, edx
mov word [ebp - 0x454], ax
call fcn.0043f7e0
xor eax, eax
xor edx, edx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], eax
mov word [ebp - 0x470], dx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.0043c01f
add esp, 0x14
test eax, eax
jne 0x414859
cmp dword [ebp - 0x45c], 8
jb 0x414a51
mov eax, dword [ebp - 0x470]
push eax
call fcn.0043bc47
add esp, 4
jmp 0x414a51
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414964
push 0x2f
lea ecx, [ebp - 0x3f]
push 0
push ecx
mov byte [ebp - 0x40], 0
call fcn.0043f7e0
add esp, 0xc
test ebx, ebx
je 0x4148a9
lea edx, [ebp - 0x40]
push 0x30
push edx
mov ecx, esi
call fcn.00414630
add esp, 8
test eax, eax
je 0x4148a9
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0043d9f2
add esp, 8
test eax, eax
je 0x414a46
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4148d8
cmp dword [ebp - 0x45c], 8
jb 0x414a51
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.0043bc47
add esp, 4
jmp 0x414a51
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x414964
push esi
lea edx, [ebp - 0x454]
push 0x209
push edx
call fcn.0043cc52
add esp, 0xc
lea ecx, [ebp - 0x470]
call fcn.00414580
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x45c], 8
mov eax, dword [ebp - 0x470]
jae 0x414927
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x454]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x414964
lea eax, [ebp - 0x454]
push eax
call ebx
test eax, eax
jne 0x414964
push 4
push eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push esi
push edi
call ebx
test eax, eax
je 0x414995
cmp dword [ebp - 0x45c], 8
jb 0x414a51
mov edx, dword [ebp - 0x470]
push edx
call fcn.0043bc47
add esp, 4
jmp 0x414a51
push esi
lea eax, [ebp - 0x454]
push 0x209
push eax
call fcn.0043cc52
add esp, 0xc
lea ecx, [ebp - 0x470]
call fcn.00414580
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x45c], 8
mov eax, dword [ebp - 0x470]
jae 0x4149d7
lea eax, [ebp - 0x470]
push eax
lea edx, [ebp - 0x454]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x454]
push eax
push edi
call ebx
test eax, eax
jne 0x414a11
cmp dword [ebp - 0x45c], 8
jb 0x414a0d
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.0043bc47
add esp, 4
xor eax, eax
jmp 0x414a56
push esi
lea edx, [ebp - 0x454]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x414a46
push 4
push esi
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x414a46
lea esi, [ebp - 0x470]
call fcn.00401410
xor eax, eax
jmp 0x414a56
lea esi, [ebp - 0x470]
call fcn.00401410
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret