Function at 0x46e660
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476d08
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.004653d0
add esp, 4
test eax, eax
jne 0x46e944
push 4
call fcn.00429324
add esp, 4
test eax, eax
je 0x46e6aa
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
jmp 0x46e6ac
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.http:__detail.cfxy.me_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004016a0
push 0xc
push str.homepage.txt
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402570
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.adsl
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.lookpass
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.childpiano
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.dynamicshow
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.screen
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.shutdown
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e76b
push str.http:__detail.cfxy.me_
lea ecx, [ebp - 0x10]
call fcn.00401f00
push str.skintoolhomepage.txt
lea ecx, [ebp - 0x10]
call fcn.00402280
push str.qqdown
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e78b
push str.qqhead
push str.qq8skintool_zol.txt
call edi
test eax, eax
je 0x46e7a9
push 0x16
push str.http:__detail.cfxy.me_
lea ecx, [ebp - 0x10]
call fcn.00408f60
push 0x16
push str.qqshutdownhomepage.txt
lea ecx, [ebp - 0x10]
call fcn.00402570
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call fcn.004658e0
add esp, 8
test eax, eax
je 0x46e7f9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 4
jne 0x46e7f9
push dword [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x46e7f9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
test eax, eax
jne 0x46e7f0
call fcn.0044e19c
mov ecx, dword [ebp - 0x1c]
push dword [ecx]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46e815
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
push 0x100
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._touming.dll
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e87a
push 0
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00468670
add esp, 0xc
push 0x48d1dc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call fcn.004653d0
add esp, 4
test eax, eax
jne 0x46e896
push ebx
call fcn.00468d20
push ebx
call fcn.004653d0
add esp, 8
push str.adslpwd
push str.qq8skintool_zol.txt
call edi
test eax, eax
jne 0x46e8b6
push str.lookpass
push str.qq8skintool_zol.txt
call edi
test eax, eax
je 0x46e8c1
push 1
push ebx
call fcn.00468880
add esp, 8
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46e8e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x46e8ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 4
test eax, eax
je 0x46e924
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a800
push dword [ebp - 0x1c]
call fcn.00429353
add esp, 4
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00429353
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret