Function at 0x10012a20
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096439
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
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 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x254], 0
push 0
push eax
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x25c], 0x104
call fcn.100702c0
add esp, 0xc
call fcn.10005f90
mov ecx, eax
test ecx, ecx
je 0x10012d87
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
push 0x100a9d48
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.10005660
test al, al
jne 0x10012acc
push 0x36
push 0x100a9d48
lea ecx, [ebp - 0x24c]
call fcn.10007cf0
mov edi, dword [ebp - 0x24c]
mov dword [ebp - 4], 2
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x10012aeb
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10012b01
call fcn.10005f90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10012d91
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [edi - 0xc]
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x258], ebx
lea esi, [eax + 0x10]
lea edx, [ebx + 4]
mov dword [ebp - 0x250], esi
test edx, edx
js 0x10012d9b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10012b50
push edx
lea ecx, [ebp - 0x250]
call fcn.10007a70
mov esi, dword [ebp - 0x250]
add ebx, ebx
push ebx
push edi
push ebx
push esi
call fcn.1000ace0
lea eax, [ebx + esi]
add esp, 0x10
test eax, eax
jne 0x10012b77
call fcn.10073822
mov dword [eax], 0x16
call fcn.10073749
jmp 0x10012b83
movq xmm0, qword [str.Chat]
movq qword [eax], xmm0
mov eax, dword [ebp - 0x258]
add eax, 4
cmp eax, dword [esi - 8]
jg 0x10012d9b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x100a9d18
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10012be2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [edi - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10012bfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x10012d5e
push 0x4b
push 0x100a9db8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10009b30
push 3
push 0x100a9d44
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 3
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10009b30
mov byte [ebp - 4], 4
call fcn.10030790
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x203
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10003b70
mov esi, eax
push str.wechat_dir_path:
push esi
mov byte [ebp - 4], 5
call fcn.10002ac0
lea eax, [ebp - 0x218]
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 - 0x2f8]
call fcn.10004f30
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x10012d0d
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012d03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012da5
push edx
push ecx
call fcn.10033972
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x10012d5e
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012daa
push edx
push ecx
call fcn.10033972
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
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
push 0x80004005
call fcn.10005640
push 0x80004005
call fcn.10005640
push 0x80070057
call fcn.10005640
call fcn.10073759
call fcn.10073759
int3