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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c13d
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4c], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc54]
mov ebx, dword [ebp + 0xc]
push edi
call fcn.00415b40
lea eax, [ebp - 0xc54]
mov dword [ebp - 4], 0
push eax
call fcn.0042f9d0
add esp, 4
or esi, 0xffffffff
push 0x208
push 0
test eax, eax
je 0x46617f
lea eax, [ebp - 0x628]
push eax
call fcn.004daa30
push 0x104
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.0046c370
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004daa30
push 0x104
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.0046c370
add esp, 0x30
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x46654b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc4c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc4c]
call fcn.0041db10
test al, al
jne 0x4660c6
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4660a4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4c]
call fcn.0040e3c0
mov byte [ebp - 4], 2
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x466555
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc50], eax
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc50]
call fcn.0041db10
test al, al
jne 0x466132
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466110
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc50]
call fcn.0040e3c0
lea eax, [ebp - 0xc4c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.0046be80
mov edx, dword [ebp - 0xc50]
xor ebx, ebx
add esp, 8
mov byte [ebp - 4], 2
test eax, eax
mov eax, esi
setle bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466174
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4c]
jmp 0x4664ee
lea eax, [ebp - 0xa38]
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004daa30
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa38]
add esp, 0xc
push str.updatecfg.ini
push eax
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4661f8
xor ebx, ebx
jmp 0x466509
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004daa30
mov eax, dword [ebp - 0xc4c]
add esp, 0xc
push str.updatecfg.ini
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46623c
xor ebx, ebx
jmp 0x466509
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x46655f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 5
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x466569
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc48], eax
push edi
mov byte [ebp - 4], 6
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [ebp - 0xc44]
mov edx, 1
mov edi, eax
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4662b8
push 0x104
lea ecx, [ebp - 0xc44]
call fcn.0040d020
mov esi, dword [ebp - 0xc44]
cmp dword [esi - 8], 0x104
jl 0x466573
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
mov dword [esi - 0xc], 0x104
mov eax, dword [ebp - 0xc44]
mov word [eax + 0x208], cx
lea eax, [ebp - 0x830]
push eax
push 0x104
push esi
push 0x54ca30
push 0x558b60
push edi
call ebx
mov eax, dword [ebp - 0xc44]
push dword [eax - 8]
push eax
call fcn.0050891c
mov edx, eax
add esp, 8
test edx, edx
js 0x466573
mov ecx, dword [ebp - 0xc44]
cmp edx, dword [ecx - 8]
jg 0x466573
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0xc44]
mov word [eax + edx*2], cx
mov edx, 1
mov ecx, dword [ebp - 0xc48]
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x466365
push 0x104
lea ecx, [ebp - 0xc48]
call fcn.0040d020
mov ecx, dword [ebp - 0xc48]
cmp dword [ecx - 8], 0x104
jl 0x46657d
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebp - 0xc48]
mov word [eax + 0x208], dx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push 0x54ca30
push 0x558b60
push edi
call ebx
mov eax, dword [ebp - 0xc48]
push dword [eax - 8]
push eax
call fcn.0050891c
mov edx, eax
add esp, 8
test edx, edx
js 0x466573
mov ecx, dword [ebp - 0xc48]
cmp edx, dword [ecx - 8]
jg 0x466573
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0xc48]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0xc48]
cmp dword [eax - 0xc], ecx
jne 0x4663ee
xor ebx, ebx
jmp 0x4664ca
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 0xc], 0
jne 0x466404
mov ebx, 1
jmp 0x4664ca
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0xc44]
push eax
call fcn.0046be80
add esp, 8
mov dword [ebp - 0xc4c], eax
test eax, eax
jle 0x4664bd
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 4], 1
jle 0x466448
push dword [ecx - 0xc]
lea ecx, [ebp - 0xc44]
call fcn.0040cd20
mov ecx, dword [ebp - 0xc44]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push ecx
push 0x558b60
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0xc44]
call fcn.00430100
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0xc40]
push eax
push 0x54ca30
push 0x558b68
push edi
call ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc40]
push eax
push 0x558b68
push edi
call esi
mov eax, dword [ebp - 0xc4c]
xor ebx, ebx
test eax, eax
mov eax, dword [ebp - 0xc48]
setle bl
or esi, 0xffffffff
mov byte [ebp - 4], 5
lea edx, [eax - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4664e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc44]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466509
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc54]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x46652b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80070057
call fcn.0040b4c0
push 0x80070057
call fcn.0040b4c0
int3