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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4318a2
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4093fa
call fcn.0042e7ad
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x70]
push ecx
lea ecx, [esp + 0x20]
call fcn.00429a6a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x138], 0
push 1
mov eax, dword [ecx - 8]
test eax, eax
mov eax, dword [edi + 8]
je 0x409202
push ecx
jmp 0x409204
push 0
push eax
mov ecx, edi
call fcn.004094d0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x28]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
call fcn.00429a6a
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call fcn.00424bc5
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00424b4d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 2
call fcn.00429b35
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 1
call fcn.004299fc
lea edx, [esp + 0x14]
push 0x43ec08
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00429c91
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
mov byte [esp + 0x13c], 3
call ebp
test eax, eax
je 0x4093a1
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edx
call ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
push eax
call ebp
test eax, eax
je 0x4092e0
mov eax, dword [esi]
push 0x80
push eax
call ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
push 0x32
mov ebx, eax
mov dword [esp + 0x13c], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x409390
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x43ebfc
call fcn.00429a6a
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 6
push ecx
call fcn.00412420
mov edx, esp
mov dword [esp + 0x2c], esp
push 0x43ebe8
push eax
push edx
mov byte [esp + 0x150], 7
call fcn.00429c91
mov byte [esp + 0x144], 8
call fcn.004121d0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 3
call fcn.004299fc
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00429771
mov ecx, edi
call fcn.00409540
mov esi, dword [esi]
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4093c4
push eax
call ebp
test eax, eax
je 0x4093c4
mov eax, dword [edi + 0xc]
push 1
push 0x43ebe0
push eax
mov ecx, edi
call fcn.004094d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call fcn.004299fc
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0
call fcn.004299fc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x138], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret