Function at 0x401b16
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x608]
sub esp, 0x688
mov eax, dword [0x404008]
xor eax, ebp
mov dword [ebp + 0x604], eax
mov eax, dword [ebp + 0x618]
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x208
push esi
stosd dword es:[edi], eax
lea eax, [ebp + 0x3fa]
push ebx
push eax
mov word [ebp + 0x3f8], bx
call sub.MSVCR80.dll_memset
push 0x410
lea eax, [ebp - 0x1a]
push ebx
push eax
mov word [ebp - 0x1c], bx
call sub.MSVCR80.dll_memset
add esp, 0x24
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x209
call fcn.004019ce
mov edi, 0x104
push edi
lea eax, [ebp + 0x3f8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x401bc6
cmp eax, edi
jae 0x401bc6
lea eax, [ebp + 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x401bcd
mov word [ebp + 0x3f8], bx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.QQRepair.exe
lea eax, [ebp + 0x3f8]
push eax
call edi
lea eax, [ebp + 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c6d
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c4a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x3f8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x403374
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401c39
mov word [ebp + 0x3f8], bx
cmp dword [ebp - 0x20], ebx
je 0x401c4a
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
push str.QQRepair.exe
lea eax, [ebp + 0x3f8]
push eax
call edi
lea eax, [ebp + 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d09
push 0x403370
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea eax, [ebp + 0x3f8]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
push 0x403370
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
mov eax, dword [ebp - 0x24]
add esp, 0x24
cmp eax, ebx
je 0x401cc5
cmp word [eax], bx
je 0x401cc5
push 0x40336c
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401cff
push dword [ebp - 0x38]
call esi
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x3c], ebx
je 0x401d09
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x604]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401da8
add ebp, 0x608
leave
ret 0x10