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

Disassembly:
push 0xffffffffffffffff
push 0x5a0d20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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.004b7050
lea eax, [esp + 0x18]
push eax
mov ecx, str.Files_
mov dword [esp + 0x54], ebx
call fcn.00404460
mov byte [esp + 0x50], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x50], 2
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x50], 3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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.00403fc0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x32
or eax, ecx
jge 0x4b7247
lea ecx, [ebx + 0x32]
lea eax, [esp + 0x1c]
call fcn.00403d50
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 0x4b756e
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 0x4b7280
sub eax, edx
sar eax, 1
js 0x4b756e
cmp eax, dword [esi - 8]
jg 0x4b756e
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 0x4b72c9
mov ecx, 0x32
lea eax, [esp + 0x20]
call fcn.00403d50
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 0x4b756e
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 0x4b7300
sub eax, edx
sar eax, 1
js 0x4b756e
cmp eax, dword [edi - 8]
jg 0x4b756e
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 0x4b7349
mov ecx, 0x32
lea eax, [esp + 0x28]
call fcn.00403d50
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 0x4b756e
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 0x4b7380
sub eax, edx
sar eax, 1
js 0x4b756e
cmp eax, dword [ebp - 8]
jg 0x4b756e
push 0xa
lea edx, [esp + 0x3c]
push edx
mov dword [ebp - 0xc], eax
push ebp
mov word [ebp + eax*2], bx
call fcn.0057cf6e
add esp, 0xc
cmp dword [esi - 0xc], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jle 0x4b7403
cmp edx, ebx
ja 0x4b73cb
cmp eax, ebx
jbe 0x4b7403
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
add ebx, 8
push ecx
call fcn.00423280
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 0x4b7407
mov dword [esp + 0x24], ebx
test byte [esp + 0x2c], 1
je 0x4b742e
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 0x4b742e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], ebx
je 0x4b74a4
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
add ebx, 8
push edx
call fcn.00423280
add esp, 8
mov edi, dword [esp + 0x5c]
mov byte [esp + 0x50], 5
call fcn.004035d0
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 0x4b7480
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.004035d0
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 0x4b74c6
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 0x4b74e7
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 0x4b7508
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 0x4b752c
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 0x4b7554
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.00404550
int3