Function at 0x4ebe42
Capabilities:
Check if file exists

Disassembly:
push 0x89c
mov eax, 0x5dbfa8
call fcn.00506dfb
mov ebx, ecx
lea eax, [ebx - 0x7c4]
mov ecx, 0x6833d0
neg ebx
sbb ebx, ebx
and ebx, eax
call fcn.00493154
mov esi, eax
lea edi, [ebp - 0x870]
lea eax, [ebp - 0x868]
mov ecx, 0x218
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0057600b
pop ecx
push str.userinfo.avatar.btn
test eax, eax
je 0x4ec194
lea esi, [ebx + 0x20]
mov ecx, esi
call fcn.00530748
push str.userinfo.nick.btn
mov ecx, esi
mov ebx, eax
call fcn.00530748
mov esi, eax
test ebx, ebx
je 0x4ec18f
test esi, esi
je 0x4ec18f
mov edx, dword [esi]
lea eax, [ebp - 0x668]
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esi]
lea ecx, [ebp - 0x668]
push ecx
mov ecx, esi
call dword [eax + 0x150]
lea ecx, [ebp - 0x8a8]
call fcn.0042ca82
and dword [ebp - 4], 0
call fcn.0041279d
push eax
lea ecx, [ebp - 0x874]
call fcn.00411d94
mov byte [ebp - 4], 1
call fcn.0041279d
push eax
lea ecx, [ebp - 0x88c]
call fcn.00411d94
lea eax, [ebp - 0x868]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x888]
call fcn.00413f09
push eax
mov esi, str.users_
mov byte [ebp - 4], 3
lea eax, [ebp - 0x884]
push esi
push eax
call fcn.0042e01c
add esp, 8
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x890], esp
push str.config_avatar.jpg
push eax
push ecx
call fcn.0042dfbd
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
push esp
call fcn.0043944c
lea eax, [ebp - 0x880]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00434114
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 6
call fcn.00411f3a
mov ecx, dword [ebp - 0x880]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x884]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x888]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x884]
call fcn.00413f09
push eax
mov byte [ebp - 4], 7
push esi
lea eax, [ebp - 0x888]
push eax
call fcn.0042e01c
add esp, 8
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x87c], esp
push str.config_avatar_80.jpg
push eax
push ecx
call fcn.0042dfbd
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8a8]
push esp
call fcn.0043944c
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00434114
mov ecx, dword [ebp - 0x888]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x884]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00412ac4
mov edi, dword [ebp - 0x88c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ec152
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x874]
push str.useravatar._s_80
push eax
call fcn.00412690
mov esi, dword [ebp - 0x874]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4ec097
push dword [esi - 0xc]
lea ecx, [ebp - 0x874]
call fcn.00412624
mov esi, dword [ebp - 0x874]
xor eax, eax
push eax
push eax
push eax
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [0x686d48]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0052b6af
test eax, eax
jne 0x4ec134
mov eax, dword [ebp - 0x878]
cmp dword [eax - 4], 1
jle 0x4ec0d7
push dword [eax - 0xc]
lea ecx, [ebp - 0x878]
call fcn.00412624
mov eax, dword [ebp - 0x878]
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, dword [0x686d48]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0052c68e
cmp dword [esi - 4], 1
mov dword [ebp - 0x880], eax
jle 0x4ec11a
push dword [esi - 0xc]
lea ecx, [ebp - 0x874]
call fcn.00412624
mov esi, dword [ebp - 0x874]
mov eax, dword [ebp - 0x880]
push 1
push eax
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [0x686d48]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0052ae81
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x84]
mov eax, dword [ebx]
lea ecx, [ebp - 0x668]
push ecx
mov ecx, ebx
call dword [eax + 0x150]
jmp 0x4ec158
mov esi, dword [ebp - 0x874]
mov ecx, dword [ebp - 0x878]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [edi - 0x10]
call fcn.00412ac4
lea ecx, [esi - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x8a8]
call fcn.0042e60b
mov ecx, dword [ebp - 0x898]
add ecx, 0xfffffff0
call fcn.00412ac4
xor eax, eax
inc eax
jmp 0x4ec1ed
lea ecx, [ebx + 0x20]
call fcn.00530748
push str.userinfo.nick.btn
lea ecx, [ebx + 0x20]
mov edi, eax
call fcn.00530748
mov esi, eax
test edi, edi
je 0x4ec1eb
test esi, esi
je 0x4ec1eb
mov edx, dword [edi]
mov ecx, edi
push str.IDB_AVATAR_DEFAULT
call dword [edx + 0x84]
mov eax, dword [edi]
mov ebx, 0x61ab94
push ebx
mov ecx, edi
call dword [eax + 0x150]
mov eax, dword [esi]
mov ecx, esi
push 0x621fac
call dword [eax + 0x3c]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x150]
xor eax, eax
call fcn.00506da5
ret