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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e33d
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x596634]
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.004155f0
lea eax, [ebp - 0xc54]
mov dword [ebp - 4], 0
push eax
call fcn.004348e0
add esp, 4
or esi, 0xffffffff
push 0x208
push 0
test eax, eax
je 0x4694ef
lea eax, [ebp - 0x628]
push eax
call fcn.004dcfa0
push 0x104
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.0046f890
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dcfa0
push 0x104
lea eax, [ebp - 0x420]
push eax
push ebx
call fcn.0046f890
add esp, 0x30
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x4698bb
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.0041d980
test al, al
jne 0x469436
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469414
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4c]
call fcn.0040de70
mov byte [ebp - 4], 2
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x4698c5
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.0041d980
test al, al
jne 0x4694a2
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469480
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc50]
call fcn.0040de70
lea eax, [ebp - 0xc4c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.0046f3d0
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 0x4694e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4c]
jmp 0x46985e
lea eax, [ebp - 0xa38]
push eax
call fcn.004dcfa0
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.004dcfa0
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 0x469568
xor ebx, ebx
jmp 0x469879
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
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 0x4695ac
xor ebx, ebx
jmp 0x469879
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x4698cf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 5
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x4698d9
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 0x469628
push 0x104
lea ecx, [ebp - 0xc44]
call fcn.0040cad0
mov esi, dword [ebp - 0xc44]
cmp dword [esi - 8], 0x104
jl 0x4698e3
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 0x54ea3c
push 0x55af68
push edi
call ebx
mov eax, dword [ebp - 0xc44]
push dword [eax - 8]
push eax
call fcn.0050ae7c
mov edx, eax
add esp, 8
test edx, edx
js 0x4698e3
mov ecx, dword [ebp - 0xc44]
cmp edx, dword [ecx - 8]
jg 0x4698e3
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 0x4696d5
push 0x104
lea ecx, [ebp - 0xc48]
call fcn.0040cad0
mov ecx, dword [ebp - 0xc48]
cmp dword [ecx - 8], 0x104
jl 0x4698ed
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 0x54ea3c
push 0x55af68
push edi
call ebx
mov eax, dword [ebp - 0xc48]
push dword [eax - 8]
push eax
call fcn.0050ae7c
mov edx, eax
add esp, 8
test edx, edx
js 0x4698e3
mov ecx, dword [ebp - 0xc48]
cmp edx, dword [ecx - 8]
jg 0x4698e3
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 0x46975e
xor ebx, ebx
jmp 0x46983a
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 0xc], 0
jne 0x469774
mov ebx, 1
jmp 0x46983a
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0xc44]
push eax
call fcn.0046f3d0
add esp, 8
mov dword [ebp - 0xc4c], eax
test eax, eax
jle 0x46982d
mov ecx, dword [ebp - 0xc44]
cmp dword [ecx - 4], 1
jle 0x4697b8
push dword [ecx - 0xc]
lea ecx, [ebp - 0xc44]
call fcn.0040c7c0
mov ecx, dword [ebp - 0xc44]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push ecx
push 0x55af68
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0xc44]
call fcn.00435230
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0xc40]
push eax
push 0x54ea3c
push 0x55af70
push edi
call ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc40]
push eax
push 0x55af70
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 0x469858
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 0x469879
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 0x46989b
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.00496d46
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
push 0x80070057
call fcn.0040af60
push 0x80070057
call fcn.0040af60
int3