Function at 0x4cf400
Capabilities:
Access peb ldr_data
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5fcc10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.004cf2e0
lea eax, [esp + 0x18]
push eax
mov ecx, str.Files_
mov dword [esp + 0x54], ebx
call fcn.00409dd0
mov byte [esp + 0x50], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x50], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x50], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x32
or eax, ecx
jge 0x4cf4d7
lea ecx, [ebx + 0x32]
lea eax, [esp + 0x1c]
call fcn.00403540
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x1c]
push 0x30
push esi
push ebx
push str.TempFile
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x30
cmp dword [esi - 8], eax
jl 0x4cf7fe
mov dword [esi - 0xc], eax
mov eax, esi
mov word [esi + 0x60], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cf510
sub eax, edx
sar eax, 1
js 0x4cf7fe
cmp eax, dword [esi - 8]
jg 0x4cf7fe
mov dword [esi - 0xc], eax
mov word [esi + eax*2], bx
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x32
or eax, ecx
jge 0x4cf559
mov ecx, 0x32
lea eax, [esp + 0x20]
call fcn.00403540
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
push eax
push 0x30
push edi
push ebx
push str.LastModified
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x30
cmp dword [edi - 8], eax
jl 0x4cf7fe
mov dword [edi - 0xc], eax
mov eax, edi
mov word [edi + 0x60], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cf590
sub eax, edx
sar eax, 1
js 0x4cf7fe
cmp eax, dword [edi - 8]
jg 0x4cf7fe
mov dword [edi - 0xc], eax
mov word [edi + eax*2], bx
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x32
or eax, ecx
jge 0x4cf5d9
mov ecx, 0x32
lea eax, [esp + 0x28]
call fcn.00403540
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push 0x30
push ebp
push ebx
push str.LastUpdate
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x30
cmp dword [ebp - 8], eax
jl 0x4cf7fe
mov dword [ebp - 0xc], eax
mov eax, ebp
mov word [ebp + 0x60], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cf610
sub eax, edx
sar eax, 1
js 0x4cf7fe
cmp eax, dword [ebp - 8]
jg 0x4cf7fe
push 0xa
lea edx, [esp + 0x3c]
push edx
mov dword [ebp - 0xc], eax
push ebp
mov word [ebp + eax*2], bx
call fcn.005d6a67
add esp, 0xc
cmp dword [esi - 0xc], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jle 0x4cf693
cmp edx, ebx
ja 0x4cf65b
cmp eax, ebx
jbe 0x4cf693
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
add ebx, 8
push ecx
call fcn.0041eb50
mov eax, dword [eax]
add esp, 8
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x24], 1
jne 0x4cf697
mov dword [esp + 0x24], ebx
test byte [esp + 0x2c], 1
je 0x4cf6be
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cf6be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], ebx
je 0x4cf734
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
add ebx, 8
push edx
call fcn.0041eb50
add esp, 8
mov edi, dword [esp + 0x5c]
mov byte [esp + 0x50], 5
call fcn.0040ab90
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cf710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x20]
call fcn.0040ab90
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor ebx, ebx
add ebp, 0xfffffff0
mov byte [esp + 0x50], 3
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4cf756
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cf777
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x50], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cf798
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x50], bl
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 0x4cf7bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cf7e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10
push 0x80070057
call fcn.00403650
int3