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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4494a8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x45e680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x8c], eax
mov edi, edx
cmp dword [ebp + 0xc], ebx
je 0x40db27
add esi, 4
cmp esi, ebx
je 0x40d84b
lea eax, [esi + 4]
jmp 0x40d84d
xor eax, eax
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp - 0x30], cx
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00405120
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.CStlStringW.0
cmp edx, esi
je 0x40d87c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
push 4
mov eax, str.log
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0040dda0
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x40d89a
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d8e1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x40d8b1
lea eax, [ebp - 0x30]
push eax
call fcn.00430caa
add esp, 4
test eax, eax
je 0x40d8e1
lea ecx, [ebp - 0x38]
cmp ecx, esi
je 0x40d8e1
cmp esi, ebx
je 0x40d8ce
lea eax, [esi + 4]
jmp 0x40d8d0
xor eax, eax
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
call fcn.00405120
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x18], edx
push ebx
call fcn.00430cdc
add esp, 4
mov dword [ebp - 0x98], eax
sub eax, 0x13c680
mov dword [ebp - 0x94], edx
sbb edx, ebx
push edx
push eax
sub esp, 0x24
mov dword [ebp - 0x88], esp
mov esi, esp
cmp edi, ebx
je 0x40d913
lea eax, [edi + 4]
jmp 0x40d915
xor eax, eax
lea ecx, [esi + 4]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.00405120
mov dword [esi], vtable.CStlStringW.0
cmp esi, edi
je 0x40d940
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.0040d460
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.0040dbd0
test al, al
je 0x40d972
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x40d96b
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00430cdc
add esp, 4
push edx
push eax
sub esp, 0x24
mov dword [ebp - 0x88], esp
mov esi, esp
cmp edi, ebx
je 0x40d991
lea eax, [edi + 4]
jmp 0x40d993
xor eax, eax
lea ecx, [esi + 4]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.00405120
mov dword [esi], vtable.CStlStringW.0
cmp esi, edi
je 0x40d9be
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.0040d460
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0040dbd0
test al, al
je 0x40dabd
mov eax, dword [ebp - 0x54]
mov edi, 8
cmp dword [ebp - 0x40], edi
jae 0x40d9f3
lea eax, [ebp - 0x54]
push 1
push eax
push 0x452ef4
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esi]
cmp eax, ebx
je 0x40dabd
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40dabd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x40], edi
jae 0x40da2e
lea eax, [ebp - 0x54]
push str.at_ccsUNICODE
push eax
call fcn.00430df3
mov ebx, eax
add esp, 8
mov dword [ebp - 0x88], ebx
test ebx, ebx
je 0x40daac
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x98]
push eax
mov esi, str._Y__m__d__H:_M:_S
lea edi, [ebp - 0x90]
call fcn.0040dea0
mov ecx, dword [ebp - 0x8c]
mov esi, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, word [ebp - 0x9a]
push eax
push edx
push esi
push str.__s:_03u_Thread_ID_d__s_n
push ebx
call fcn.00430e0a
add esp, 0x18
mov ecx, edi
call fcn.00404490
push ebx
call fcn.00431028
add esp, 4
push ebx
call fcn.004310fb
add esp, 4
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
cmp dword [ebp - 0x40], 8
mov esi, vtable.CStlStringW.0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x3c], ebx
jb 0x40dada
mov edx, dword [ebp - 0x54]
push edx
call fcn.00413858
add esp, 4
xor eax, eax
cmp dword [ebp - 0x64], 8
mov edi, 7
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], ax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x60], ebx
jb 0x40db03
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00413858
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x78], dx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], ebx
jb 0x40db27
mov eax, dword [ebp - 0x30]
push eax
call fcn.00413858
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f892
mov esp, ebp
pop ebp
ret 8