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

Disassembly:
push 0xffffffffffffffff
push 0x5a0cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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.004b7050
lea eax, [esp + 0x14]
xor edi, edi
push eax
mov ecx, str.Files_
mov dword [esp + 0x38], edi
call fcn.00404460
mov byte [esp + 0x34], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x34], 2
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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.00403fc0
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x32
or eax, ecx
jge 0x4b763b
lea ecx, [edi + 0x32]
lea eax, [esp + 0x3c]
call fcn.00403d50
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 0x4b7983
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 0x4b7670
sub eax, edx
sar eax, 1
js 0x4b7983
cmp eax, dword [ebx - 8]
jg 0x4b7983
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], di
mov eax, dword [ebx - 0xc]
cmp eax, edi
je 0x4b7705
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
lea ebx, [ebp + 8]
push ecx
call fcn.00423280
add esp, 8
lea edi, [esp + 0x3c]
mov byte [esp + 0x34], 4
call fcn.004035d0
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 0x4b76e4
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 0x4b7705
mov edx, 0x5bcc3c
lea edi, [esp + 0x3c]
call fcn.004040f0
mov ebx, dword [esp + 0x3c]
cmp dword [ebx - 0xc], 0
jne 0x4b7724
mov eax, dword [ebp + 8]
push 0x5c87a0
push eax
lea esi, [esp + 0x44]
call fcn.004b66a0
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 0x4b77e5
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 0x4b775f
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 0x4b7780
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 0x4b77a5
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 0x4b77cd
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.0057b53f
add esp, 8
test eax, eax
je 0x4b7844
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4b7844
lea ecx, [eax + 1]
lea esi, [esp + 0x40]
lea edx, [esp + 0x3c]
call fcn.00403540
lea edi, [esp + 0x3c]
mov byte [esp + 0x34], 5
call fcn.004035d0
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 0x4b7840
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.004126f0
mov edi, dword [esp + 0x20]
add esp, 0xc
mov esi, ebp
call fcn.004d0f20
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.004d0f20
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.004d0f20
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 0x4b790b
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 0x4b792c
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 0x4b7951
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 0x4b7979
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4b77cf
push 0x80070057
call fcn.00404550
int3