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

Disassembly:
push 0xffffffffffffffff
push 0x5a0c80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, edx
lea esi, [esp + 0x1c]
call fcn.004b7050
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov ecx, str.Files_
mov dword [esp + 0x40], edi
call fcn.00404460
mov byte [esp + 0x3c], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x3c], 2
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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.00403fc0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x32
or eax, ecx
jge 0x4b7a49
lea ecx, [edi + 0x32]
lea eax, [esp + 0x14]
call fcn.00403d50
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 0x4b7dac
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 0x4b7a80
sub eax, edx
sar eax, 1
js 0x4b7dac
cmp eax, dword [ebp - 8]
jg 0x4b7dac
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], di
cmp dword [ebp - 0xc], edi
je 0x4b7acf
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b7aca
mov edx, 0x5bcc3c
lea edi, [esp + 0x14]
call fcn.004040f0
mov ebp, dword [esp + 0x14]
xor edi, edi
cmp dword [ebp - 0xc], edi
jne 0x4b7ae8
mov eax, dword [ebx + 8]
push 0x5c87a0
push eax
lea esi, [esp + 0x1c]
call fcn.004b66a0
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 0x4b7bcc
call fcn.004129d0
cmp eax, edi
jge 0x4b7bd2
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 0x4b7b45
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 0x4b7b67
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 0x4b7b8c
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 0x4b7bb4
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 0x4b7bf2
call fcn.004129d0
cmp esi, edi
je 0x4b7c01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], edi
push 0x5c
push ebp
call fcn.0057b53f
add esp, 8
cmp eax, edi
je 0x4b7c62
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x4b7c62
lea ecx, [eax + 1]
lea esi, [esp + 0x48]
lea edx, [esp + 0x14]
call fcn.00403540
lea edi, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.004035d0
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 0x4b7c5c
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.004126f0
mov edi, dword [esp + 0x24]
add esp, 0xc
mov esi, ebx
call fcn.004d0f20
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.004d0f20
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.004d0f20
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 0x4b7d0e
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 0x4b7d33
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 0x4b7d55
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 0x4b7d7a
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 0x4b7da2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4b7bb6
push 0x80070057
call fcn.00404550
int3