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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097713
mov eax, dword fs:[0]
push eax
sub esp, 0x994
mov eax, dword [0x100de66c]
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.10070b90
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 0x10012995
call fcn.100331e0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, ebx
jne 0x10012c08
push 0x4b
push 0x100a9de0
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], al
call fcn.10009d20
push 3
push 0x100a9e2c
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.10009d20
mov byte [ebp - 4], bl
call fcn.100331e0
mov edi, eax
lea ecx, [ebp - 0x908]
push 0x20e
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.10003fe0
mov esi, eax
push 0x100a9e30
push esi
mov byte [ebp - 4], 2
call fcn.10002f30
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.10002f30
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x908]
call fcn.10005390
lea ecx, [ebp - 0x828]
call fcn.10004b20
lea ecx, [ebp - 0x840]
call fcn.10004b20
jmp 0x10012c08
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 0x10012ab7
call fcn.100331e0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10012c08
push 0x4b
push 0x100a9e88
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], al
call fcn.10009d20
push 3
push 0x100a9e84
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.10009d20
mov byte [ebp - 4], 4
call fcn.100331e0
mov edi, eax
lea ecx, [ebp - 0x908]
push 0x214
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.10003fe0
mov esi, eax
push str.qq_dir_path:
push esi
mov byte [ebp - 4], 5
call fcn.10002f30
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.10002f30
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x908]
call fcn.10005390
lea ecx, [ebp - 0x840]
call fcn.10004b20
lea ecx, [ebp - 0x828]
call fcn.10004b20
jmp 0x10012c08
call fcn.100331e0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10012c06
push 0x4b
push 0x100a9ef0
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], 0xf
mov byte [ebp - 0x870], al
call fcn.10009d20
push 3
push 0x100a9f3c
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.10009d20
mov byte [ebp - 4], 7
call fcn.100331e0
mov edi, eax
lea ecx, [ebp - 0x9a0]
push 0x218
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.10003fe0
mov esi, eax
push 0x100a9f40
push esi
mov byte [ebp - 4], 8
call fcn.10002f30
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9a0]
call fcn.10005390
mov edx, dword [ebp - 0x844]
cmp edx, 0x10
jb 0x10012bb5
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012bab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012c26
push edx
push ecx
call fcn.100307d8
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 0x10012c06
mov ecx, dword [ebp - 0x870]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012c2b
push edx
push ecx
call fcn.100307d8
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.10030b57
mov esp, ebp
pop ebp
ret
call fcn.10073f6e
call fcn.10073f6e
int3