Function at 0x4cfc20
Capabilities:
Delete file
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fcb70
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, edx
lea esi, [esp + 0x1c]
call fcn.004cf2e0
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov ecx, str.Files_
mov dword [esp + 0x40], edi
call fcn.00409dd0
mov byte [esp + 0x3c], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x3c], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], 3
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x32
or eax, ecx
jge 0x4cfcd9
lea ecx, [edi + 0x32]
lea eax, [esp + 0x14]
call fcn.00403540
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
push eax
mov esi, 0x30
push esi
push ebp
push edi
push str.TempFile
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 8], esi
jl 0x4d003c
mov eax, ebp
mov dword [ebp - 0xc], esi
mov word [ebp + 0x60], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4cfd10
sub eax, edx
sar eax, 1
js 0x4d003c
cmp eax, dword [ebp - 8]
jg 0x4d003c
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], di
cmp dword [ebp - 0xc], edi
je 0x4cfd5f
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cfd5a
mov edx, 0x6244e0
lea edi, [esp + 0x14]
call fcn.00403760
mov ebp, dword [esp + 0x14]
xor edi, edi
cmp dword [ebp - 0xc], edi
jne 0x4cfd78
mov eax, dword [ebx + 8]
push 0x633be8
push eax
lea esi, [esp + 0x1c]
call fcn.004ce930
mov ebp, dword [esp + 0x1c]
add esp, 8
xor esi, esi
mov dword [esp + 0x20], esi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push ebp
mov byte [esp + 0x58], 4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4cfe5c
call fcn.0040f010
cmp eax, edi
jge 0x4cfe62
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfdd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfdf7
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x3c], 0
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 0x4cfe1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
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 0x4cfe44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
mov dword [esp + 0x20], eax
mov esi, eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x4cfe82
call fcn.0040f010
cmp esi, edi
je 0x4cfe91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], edi
push 0x5c
push ebp
call fcn.005d37a2
add esp, 8
cmp eax, edi
je 0x4cfef2
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x4cfef2
lea ecx, [eax + 1]
lea esi, [esp + 0x48]
lea edx, [esp + 0x14]
call fcn.00409f40
lea edi, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.0040ab90
mov byte [esp + 0x3c], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cfeec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor esi, esi
xor edx, edx
or eax, esi
push eax
or edx, ecx
push edx
push str._I64u
lea edi, [esp + 0x28]
call fcn.0040ac80
mov edi, dword [esp + 0x24]
add esp, 0xc
mov esi, ebx
call fcn.0050eb20
mov eax, dword [ebx]
push eax
push ebp
push str.TempFile
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
call fcn.0050eb20
mov eax, dword [ebx]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push eax
push str.LastModified
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
call fcn.0050eb20
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ebx
push ecx
push str.LastUpdate
push edx
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4cff9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cffc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cffe5
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x3c], 0
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 0x4d000a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
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 0x4d0032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4cfe46
push 0x80070057
call fcn.00403650
int3