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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100963b3
mov eax, dword fs:[0]
push eax
sub esp, 0x994
mov eax, dword [0x100d8574]
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
push 0x800
lea eax, [ebp - 0x810]
mov ebx, 1
push 0
push eax
call fcn.100702c0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x810]
add esp, 0xc
push 0
push 5
push eax
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
push str.Tencent_Files
push eax
call edi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012775
call fcn.10030790
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, ebx
jne 0x100129e8
push 0x4b
push 0x100a9e68
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], al
call fcn.10009b30
push 3
push 0x100a9e64
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
call fcn.10009b30
mov byte [ebp - 4], bl
call fcn.10030790
mov edi, eax
lea ecx, [ebp - 0x908]
push 0x20e
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.10003b70
mov esi, eax
push str.qq_dir_path:
push esi
mov byte [ebp - 4], 2
call fcn.10002ac0
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.10002ac0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x908]
call fcn.10004f30
lea ecx, [ebp - 0x828]
call fcn.100046c0
lea ecx, [ebp - 0x840]
call fcn.100046c0
jmp 0x100129e8
push 0
push 0x2e
lea eax, [ebp - 0x810]
push eax
push 0
call esi
push str.TencentQQUserDataInfo.ini
lea eax, [ebp - 0x810]
push eax
call edi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012897
call fcn.10030790
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100129e8
push 0x4b
push 0x100a9f08
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], al
call fcn.10009b30
push 3
push 0x100a9f54
lea ecx, [ebp - 0x840]
mov dword [ebp - 4], 3
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], 0
call fcn.10009b30
mov byte [ebp - 4], 4
call fcn.10030790
mov edi, eax
lea ecx, [ebp - 0x908]
push 0x214
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.10003b70
mov esi, eax
push 0x100a9f58
push esi
mov byte [ebp - 4], 5
call fcn.10002ac0
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.10002ac0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x908]
call fcn.10004f30
lea ecx, [ebp - 0x840]
call fcn.100046c0
lea ecx, [ebp - 0x828]
call fcn.100046c0
jmp 0x100129e8
call fcn.10030790
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100129e6
push 0x4b
push 0x100a9f78
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], 0xf
mov byte [ebp - 0x870], al
call fcn.10009b30
push 3
push 0x100a9f74
lea ecx, [ebp - 0x858]
mov dword [ebp - 4], 6
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
call fcn.10009b30
mov byte [ebp - 4], 7
call fcn.10030790
mov edi, eax
lea ecx, [ebp - 0x9a0]
push 0x218
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.10003b70
mov esi, eax
push str.qq_dir_ont_found.
push esi
mov byte [ebp - 4], 8
call fcn.10002ac0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9a0]
call fcn.10004f30
mov edx, dword [ebp - 0x844]
cmp edx, 0x10
jb 0x10012995
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001298b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012a06
push edx
push ecx
call fcn.10033972
add esp, 8
mov edx, dword [ebp - 0x85c]
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
cmp edx, 0x10
jb 0x100129e6
mov ecx, dword [ebp - 0x870]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100129dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012a0b
push edx
push ecx
call fcn.10033972
add esp, 8
xor ebx, ebx
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.10033cf1
mov esp, ebp
pop ebp
ret
call fcn.10073759
call fcn.10073759
int3