Function at 0x422cd5
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x28c
mov eax, 0x4848d6
call fcn.00480695
xor esi, esi
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
call fcn.00408bff
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 4], esi
call fcn.00408c11
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 4
call fcn.0040154d
call fcn.0040524b
mov byte [ebp - 4], 5
mov eax, dword [eax + 0xc]
sub eax, 0x10
call fcn.00402441
lea ebx, [eax + 0x10]
mov dword [ebp - 0x238], ebx
lea esi, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.0040122f
lea eax, [ebp - 0x23c]
push str.updatekav_
push eax
lea ecx, [ebp - 0x238]
call fcn.004235e7
lea ecx, [ebp - 0x228]
push str..txt
push ecx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040400d
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x22c]
call fcn.0040217c
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebp - 0x298]
push eax
call fcn.0040154d
call fcn.0040524b
mov byte [ebp - 4], 0xa
mov eax, dword [eax + 0x28]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x224]
call fcn.0040217c
lea esi, [ebp - 0x298]
mov byte [ebp - 4], 7
call fcn.0040122f
push str.ressrcchsuplive.svr
lea eax, [ebp - 0x230]
push eax
call fcn.004021d8
push dword [ebp - 0x22c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x422f17
push dword [ebp - 0x224]
call edi
test eax, eax
je 0x422f17
push dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x48f268
push 0x497c2c
push 0x497c30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x422f17
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp eax, 0xa
pop ecx
jne 0x422f17
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00402357
mov byte [ebp - 4], 0xb
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push 0x48ee28
push str.infos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp - 0x228]
mov esi, 0x4b4d74
push str.KUpdater::SaveVersionToMainIni_version:_ws
call fcn.00411a60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x228]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x48f268
push str.Version
mov edi, str.Common
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
pop ecx
je 0x422f70
push dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
push str.Version
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x48f268
push str.MainVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
pop ecx
je 0x422fbe
push dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
push str.MainVersion
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x220]
push eax
push str.KUpdater::SaveVersionToMainIni_DisplayVersions:_ws
mov esi, 0x4b4d74
call fcn.00411a60
pop ecx
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
inc eax
call fcn.00480718
ret