Function at 0x4cf810
Capabilities:
Copy file
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5fcbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
lea esi, [esp + 0x18]
call fcn.004cf2e0
lea eax, [esp + 0x14]
xor edi, edi
push eax
mov ecx, str.Files_
mov dword [esp + 0x38], edi
call fcn.00409dd0
mov byte [esp + 0x34], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x34], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x32
or eax, ecx
jge 0x4cf8cb
lea ecx, [edi + 0x32]
lea eax, [esp + 0x3c]
call fcn.00403540
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
push eax
mov esi, 0x30
push esi
push ebx
push edi
push str.TempFile
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebx - 8], esi
jl 0x4cfc13
mov eax, ebx
mov dword [ebx - 0xc], esi
mov word [ebx + 0x60], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4cf900
sub eax, edx
sar eax, 1
js 0x4cfc13
cmp eax, dword [ebx - 8]
jg 0x4cfc13
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], di
mov eax, dword [ebx - 0xc]
cmp eax, edi
je 0x4cf995
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
lea ebx, [ebp + 8]
push ecx
call fcn.0041eb50
add esp, 8
lea edi, [esp + 0x3c]
mov byte [esp + 0x34], 4
call fcn.0040ab90
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cf974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cf995
mov edx, 0x6244e0
lea edi, [esp + 0x3c]
call fcn.00403760
mov ebx, dword [esp + 0x3c]
cmp dword [ebx - 0xc], 0
jne 0x4cf9b4
mov eax, dword [ebp + 8]
push 0x633be8
push eax
lea esi, [esp + 0x44]
call fcn.004ce930
mov ebx, dword [esp + 0x44]
add esp, 8
mov ecx, dword [esp + 0x40]
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4cfa75
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cf9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfa10
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfa35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfa5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
push 0x5c
push ebx
call fcn.005d37a2
add esp, 8
test eax, eax
je 0x4cfad4
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4cfad4
lea ecx, [eax + 1]
lea esi, [esp + 0x40]
lea edx, [esp + 0x3c]
call fcn.00409f40
lea edi, [esp + 0x3c]
mov byte [esp + 0x34], 5
call fcn.0040ab90
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfad0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x3c]
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor esi, esi
xor edx, edx
or eax, esi
push eax
or edx, ecx
push edx
push str._I64u
lea edi, [esp + 0x24]
call fcn.0040ac80
mov edi, dword [esp + 0x20]
add esp, 0xc
mov esi, ebp
call fcn.0050eb20
mov eax, dword [ebp]
push eax
push ebx
push str.TempFile
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
call fcn.0050eb20
mov eax, dword [ebp]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push eax
push str.LastModified
push ecx
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.0050eb20
mov ebp, dword [ebp]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebp
push ecx
push str.LastUpdate
push edx
call edi
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfb9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfbbc
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfbe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfc09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4cfa5f
push 0x80070057
call fcn.00403650
int3