Function at 0x40469c
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x404634
call fcn.004038ac
xor eax, eax
push ebp
push 0x40498c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
push 0
call sub.user32.dll_SetLastErrorEx
mov eax, 0x4051c8
mov edx, 1
call fcn.0040333c
push 0x104
push 0x4050b4
push 0
call fcn.00404120
lea edx, [ebp - 0x14]
mov eax, 0x4050b4
call fcn.00403e10
mov edx, dword [ebp - 0x14]
mov eax, 0x4051cc
call fcn.00402fb4
cmp dword [0x4051cc], 0
je 0x404971
mov eax, 0x4051c8
mov edx, 0x4050b4
mov ecx, 0x105
call fcn.00403090
push 0x4050b4
call fcn.00404254
lea eax, [ebp - 0x18]
call fcn.00403d2c
mov edx, dword [ebp - 0x18]
mov eax, 0x4051bc
call fcn.00402fb4
mov eax, dword [0x4051d4]
mov eax, dword [eax]
call fcn.0040320c
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4051c8]
call fcn.00403c0c
mov eax, dword [ebp - 0x1c]
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
je 0x4047db
mov ecx, dword [0x4051d4]
mov ecx, dword [ecx]
mov eax, dword [0x4051d4]
mov edx, dword [0x4051bc]
call fcn.004030f4
mov eax, dword [0x4051d4]
mov eax, dword [eax]
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_DeleteFileA
push 0
mov eax, dword [0x4051d4]
mov eax, dword [eax]
call fcn.0040320c
push eax
mov eax, dword [0x4051c8]
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_CopyFileA
push 6
mov eax, dword [0x4051d4]
mov eax, dword [eax]
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, 0x4051c0
mov ecx, 0x4049a4
mov edx, dword [0x4051bc]
call fcn.004030f4
mov eax, 0x4051c4
mov ecx, 0x4049b8
mov edx, dword [0x4051bc]
call fcn.004030f4
mov eax, dword [0x4051c0]
call fcn.0040320c
push eax
call fcn.00404138
mov eax, dword [0x4051c0]
call fcn.0040320c
push eax
call sub.shlwapi.dll_PathFileExistsA
test eax, eax
je 0x40485c
mov eax, dword [0x4051cc]
push eax
mov eax, dword [0x4051c4]
call fcn.0040320c
mov ecx, eax
mov edx, 0x4049c4
mov eax, 0xa
call fcn.00403c54
mov edx, dword [0x4051c4]
mov eax, dword [0x4051c0]
call fcn.00404050
jmp 0x40487d
mov eax, dword [0x4051cc]
push eax
mov eax, dword [0x4051c0]
call fcn.0040320c
mov ecx, eax
mov edx, 0x4049c4
mov eax, 0xa
call fcn.00403c54
push 0x4049d0
push 0x4049d8
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x40493e
push 0x4049e0
push 0x4049d8
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x40493e
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x406650]
push eax
push 0
mov edx, 0x4049e0
mov eax, 0x4049d8
xor ecx, ecx
call fcn.00404530
mov eax, dword [0x4051c0]
call fcn.0040320c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x40493e
push 0x4049e8
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
push 0x4049f0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov esi, eax
test esi, esi
je 0x40493e
test edi, edi
je 0x40493e
call esi
jmp 0x404922
push 0x406828
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push 0x406828
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x404918
call edi
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [0x4051d8]
cmp dword [eax + 8], 0
je 0x404971
mov eax, dword [0x4051c0]
call fcn.0040320c
call fcn.00403f1c
push 0x4049f8
push 0x4049fc
push 0x404a24
push 0x80000002
call fcn.00403eb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404993
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00402f84
ret