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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53edad
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x597644]
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.00415430
lea eax, [ebp - 0xc54]
mov dword [ebp - 4], 0
push eax
call fcn.00434760
add esp, 4
or esi, 0xffffffff
push 0x208
push 0
test eax, eax
je 0x46a06f
lea eax, [ebp - 0x628]
push eax
call fcn.004dda00
push 0x104
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.00470420
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dda00
push 0x104
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.00470420
add esp, 0x30
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x46a43b
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.0041d7d0
test al, al
jne 0x469fb6
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469f94
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4c]
call fcn.0040dcb0
mov byte [ebp - 4], 2
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x46a445
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.0041d7d0
test al, al
jne 0x46a022
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a000
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc50]
call fcn.0040dcb0
lea eax, [ebp - 0xc4c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.0046ff50
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 0x46a064
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4c]
jmp 0x46a3de
lea eax, [ebp - 0xa38]
push eax
call fcn.004dda00
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.004dda00
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 0x46a0e8
xor ebx, ebx
jmp 0x46a3f9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dda00
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 0x46a12c
xor ebx, ebx
jmp 0x46a3f9
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x46a44f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 5
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x46a459
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 0x46a1a8
push 0x104
lea ecx, [ebp - 0xc44]
call fcn.0040c910
mov esi, dword [ebp - 0xc44]
cmp dword [esi - 8], 0x104
jl 0x46a463
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 0x54fa2c
push 0x55c088
push edi
call ebx
mov eax, dword [ebp - 0xc44]
push dword [eax - 8]
push eax
call fcn.0050b8dc
mov edx, eax
add esp, 8
test edx, edx
js 0x46a463
mov ecx, dword [ebp - 0xc44]
cmp edx, dword [ecx - 8]
jg 0x46a463
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 0x46a255
push 0x104
lea ecx, [ebp - 0xc48]
call fcn.0040c910
mov ecx, dword [ebp - 0xc48]
cmp dword [ecx - 8], 0x104
jl 0x46a46d
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 0x54fa2c
push 0x55c088
push edi
call ebx
mov eax, dword [ebp - 0xc48]
push dword [eax - 8]
push eax
call fcn.0050b8dc
mov edx, eax
add esp, 8
test edx, edx
js 0x46a463
mov ecx, dword [ebp - 0xc48]
cmp edx, dword [ecx - 8]
jg 0x46a463
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 0x46a2de
xor ebx, ebx
jmp 0x46a3ba
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 0xc], 0
jne 0x46a2f4
mov ebx, 1
jmp 0x46a3ba
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0xc44]
push eax
call fcn.0046ff50
add esp, 8
mov dword [ebp - 0xc4c], eax
test eax, eax
jle 0x46a3ad
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 4], 1
jle 0x46a338
push dword [ecx - 0xc]
lea ecx, [ebp - 0xc44]
call fcn.0040c600
mov ecx, dword [ebp - 0xc44]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push ecx
push 0x55c088
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0xc44]
call fcn.004350b0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004dda00
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0xc40]
push eax
push 0x54fa2c
push 0x55c090
push edi
call ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc40]
push eax
push 0x55c090
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 0x46a3d8
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 0x46a3f9
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 0x46a41b
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.004982ff
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
int3