Function at 0x45cae0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x492911
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x870]
mov ecx, dword [esp + 0x874]
mov dword [esp + 0x14], ebp
call fcn.0045d470
mov edi, eax
cmp edi, 0xffffffff
je 0x45cdad
lea esi, [esp + 0x1c]
call fcn.0045d4f0
xor ebx, ebx
mov dword [esp + 0x868], ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.0048d2f0
mov byte [esp + 0x868], 2
cmp dword [esp + 0x34], 8
jb 0x45cb75
mov eax, dword [esp + 0x20]
push eax
call fcn.00471099
add esp, 4
xor ecx, ecx
shl edi, 4
mov edx, dword [edi + 0x4d4ae8]
mov word [esp + 0x20], cx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
call fcn.0048d1e0
lea ecx, [esp + 0x38]
call fcn.0048cdd0
mov ecx, dword [edi + 0x4d4ae4]
push 1
push ecx
mov ecx, eax
call fcn.004112e0
add esp, 8
test eax, eax
jle 0x45cc6c
lea ecx, [esp + 0x38]
call fcn.0048cdd0
mov edx, dword [edi + 0x4d4ae4]
push 2
push edx
mov ecx, eax
call fcn.004112e0
add esp, 8
test eax, eax
jle 0x45cc6c
mov ecx, dword [edi + 0x4d4ae4]
lea edx, [esp + 0x54]
call fcn.00411400
lea ecx, [esp + 0x38]
lea esi, [esp + 0x54]
call fcn.0048cdd0
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x45cc26
cmp cx, bx
je 0x45cc22
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x45cc26
add eax, 4
add esi, 4
cmp cx, bx
jne 0x45cc00
xor eax, eax
jmp 0x45cc2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x45cd56
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45cd56
push ebx
lea ecx, [esp + 0x3c]
call fcn.0048cdd0
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45cd56
mov ebx, dword [edi + 0x4d4ae4]
call fcn.00411130
mov ebx, dword [edi + 0x4d4ae4]
call fcn.004111b0
lea ecx, [esp + 0x38]
call fcn.0048cdd0
mov ecx, dword [edi + 0x4d4ae4]
push ecx
mov ecx, eax
call fcn.00411040
add esp, 4
test al, al
jne 0x45ccbb
mov ebx, dword [edi + 0x4d4ae4]
call fcn.00411130
mov ebx, dword [edi + 0x4d4ae4]
call fcn.004111b0
jmp 0x45cd99
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [edi + 0x4d4ae4]
call fcn.00411530
cmp eax, 6
je 0x45ccf9
cmp eax, 7
je 0x45cca0
cmp eax, 5
je 0x45cca0
cmp eax, 0xa
je 0x45cca0
push 0xc8
call esi
push 0
mov ecx, ebp
call fcn.004897b0
test al, al
je 0x45ccc1
jmp 0x45cd99
mov ecx, dword [edi + 0x4d4ae4]
lea edx, [esp + 0x54]
call fcn.00411400
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.0048d040
test al, al
je 0x45cd4b
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45cd4b
push 0
lea ecx, [esp + 0x3c]
call fcn.0048cdb0
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [edi + 0x4d4ae4]
call fcn.00411130
lea esi, [ebp + 0x18]
lea ebp, [esi + 4]
mov dword [esp + 0x18], esi
push ebp
mov byte [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x868], 3
mov edi, dword [esp + 0x14]
add edi, 0x50
lea ebx, [esp + 0x874]
call fcn.00418e00
mov byte [esp + 0x868], 2
push ebp
mov byte [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x868], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0048cfe0
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00470f4c
add esp, 0x858
ret 8