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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097799
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
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 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.10070b90
add esp, 0xc
call fcn.10006290
mov ecx, eax
test ecx, ecx
je 0x10012fa7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallWe
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.100059a0
test al, al
jne 0x10012cec
push 0x36
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallWe
lea ecx, [ebp - 0x24c]
call fcn.10007f20
mov edi, dword [ebp - 0x24c]
mov dword [ebp - 4], 2
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x10012d0b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10012d21
call fcn.10006290
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10012fb1
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 0x10012fbb
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10012d70
push edx
lea ecx, [ebp - 0x250]
call fcn.10007d40
mov esi, dword [ebp - 0x250]
add ebx, ebx
push ebx
push edi
push ebx
push esi
call fcn.1000aed0
lea eax, [ebx + esi]
add esp, 0x10
test eax, eax
jne 0x10012d97
call fcn.10074037
mov dword [eax], 0x16
call fcn.10073f5e
jmp 0x10012da3
movq xmm0, qword [str.Chat]
movq qword [eax], xmm0
mov eax, dword [ebp - 0x258]
add eax, 4
cmp eax, dword [esi - 8]
jg 0x10012fbb
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 0x100a9b84
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 0x10012e02
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 0x10012e1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x10012f7e
push 0x4b
push 0x100a9c48
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10009d20
push 3
push 0x100a9ca0
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.10009d20
mov byte [ebp - 4], 4
call fcn.100331e0
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x203
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10003fe0
mov esi, eax
push str.wechat_dir_path:
push esi
mov byte [ebp - 4], 5
call fcn.10002f30
lea eax, [ebp - 0x218]
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 - 0x2f8]
call fcn.10005390
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x10012f2d
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012f23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012fc5
push edx
push ecx
call fcn.100307d8
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 0x10012f7e
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012f74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012fca
push edx
push ecx
call fcn.100307d8
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.10030b57
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005980
push 0x80004005
call fcn.10005980
push 0x80070057
call fcn.10005980
call fcn.10073f6e
call fcn.10073f6e
int3