Function at 0x403471
Capabilities:
Check if file exists
Create process on windows
Delete file
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42282c
mov eax, dword fs:[0]
push eax
sub esp, 0xad8
mov eax, dword [0x42a080]
xor eax, esp
mov dword [esp + 0xad0], eax
push ebx
push esi
push edi
mov eax, dword [0x42a080]
xor eax, esp
push eax
lea eax, [esp + 0xae8]
mov dword fs:[0], eax
xor edi, edi
mov ebx, 0x208
push ebx
lea eax, [esp + 0x2a2]
push edi
mov dword [esp + 0x1c], edi
push eax
mov word [esp + 0x2a8], di
call fcn.0040a2d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [esp + 0x2a0]
push eax
push str._COMMONPROGRAMFILES_TencentQQPCMgrQMSI.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [esp + 0x92]
push edi
push eax
mov word [esp + 0x98], di
call fcn.0040a2d0
add esp, 0xc
push ebx
lea eax, [esp + 0x8d2]
push edi
push eax
mov word [esp + 0x8d8], di
call fcn.0040a2d0
add esp, 0xc
push ebx
lea eax, [esp + 0x4b2]
push edi
push eax
mov word [esp + 0x4b8], di
call fcn.0040a2d0
add esp, 0xc
push ebx
lea eax, [esp + 0x6c2]
push edi
push eax
mov word [esp + 0x6c8], di
call fcn.0040a2d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [esp + 0x29c]
push eax
push esi
lea eax, [esp + 0x94]
push eax
push 0x425a10
push str.InstallDir
mov edi, str.setting
push edi
call ebx
lea eax, [esp + 0x29c]
push eax
push esi
lea eax, [esp + 0x8d4]
push eax
push 0x425a10
push str.Version
push edi
call ebx
lea eax, [esp + 0x29c]
push eax
push esi
lea eax, [esp + 0x4b4]
push eax
push 0x425a10
push str.SrcDir
push edi
call ebx
lea eax, [esp + 0x29c]
push eax
push esi
lea eax, [esp + 0x6c4]
push eax
push 0x425a10
push str.DstDir
push edi
call ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00409884
test eax, eax
pop ecx
jne 0x4035f3
xor eax, eax
jmp 0x403bc3
lea eax, [esp + 0x4ac]
push eax
call fcn.00409884
test eax, eax
pop ecx
je 0x40362e
lea eax, [esp + 0x6bc]
push eax
call fcn.00409884
test eax, eax
pop ecx
je 0x40362e
lea eax, [esp + 0x6bc]
push eax
lea eax, [esp + 0x4b0]
push eax
call fcn.004092bc
pop ecx
pop ecx
xor edi, edi
mov dword [esp + 0x1c], edi
xor ebx, ebx
inc ebx
push ebx
push str.SOFTWARETencentQQPCMgr
lea esi, [esp + 0x24]
mov dword [esp + 0xaf8], edi
call fcn.00401a3d
test eax, eax
je 0x4036b3
mov eax, dword [0x42c878]
mov ecx, 0x42c878
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
push eax
mov byte [esp + 0xaf8], bl
call fcn.00401a8e
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
je 0x4036a3
add eax, 0xfffffff0
call fcn.00401369
cmp dword [esp + 0x1c], edi
je 0x4035ec
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4035ec
add eax, 0xfffffff0
mov byte [esp + 0xaf0], 0
call fcn.00401369
mov eax, dword [0x42c878]
mov ecx, 0x42c878
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xaf8], 2
call fcn.00403d0f
lea eax, [esp + 0x24]
push str.QQPCTray.exe0
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
pop ecx
pop ecx
mov byte [esp + 0xaf0], 3
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x18], ebx
call esi
test eax, eax
mov edi, str.QQPCTray.exe
jne 0x40373a
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
pop ecx
pop ecx
push dword [eax]
mov dword [esp + 0x18], 3
call esi
test eax, eax
jne 0x40373a
mov bl, 1
jmp 0x40373c
xor bl, bl
test byte [esp + 0x14], 2
je 0x403754
mov eax, dword [esp + 0x28]
and dword [esp + 0x14], 0xfffffffd
add eax, 0xfffffff0
call fcn.00401369
mov dword [esp + 0xaf0], 2
test byte [esp + 0x14], 1
je 0x403777
mov eax, dword [esp + 0x24]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
call fcn.00401369
test bl, bl
je 0x403791
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401369
cmp dword [esp + 0x1c], 0
jmp 0x40368e
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
pop ecx
pop ecx
mov byte [esp + 0xaf0], 4
push dword [eax]
or dword [esp + 0x18], 4
call esi
test eax, eax
mov ebx, str.QQPCRtp.exe
je 0x4037df
lea eax, [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
or dword [esp + 0x1c], 8
pop ecx
pop ecx
push dword [eax]
call esi
test eax, eax
mov byte [esp + 0x23], 1
jne 0x4037e4
mov byte [esp + 0x23], 0
test byte [esp + 0x14], 8
je 0x4037fc
mov eax, dword [esp + 0x24]
and dword [esp + 0x14], 0xfffffff7
add eax, 0xfffffff0
call fcn.00401369
mov dword [esp + 0xaf0], 2
test byte [esp + 0x14], 4
je 0x40381a
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.00401369
xor eax, eax
cmp byte [esp + 0x23], al
push 0
sete al
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea esi, [esp + 0x24]
mov dword [esp + 0x38], eax
call fcn.00401a3d
test eax, eax
je 0x403892
push 0x425e48
lea eax, [esp + 0x18]
push eax
call fcn.00403c85
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x14]
mov byte [esp + 0xaf0], 5
call fcn.00403d9c
mov eax, str.QQPCTray.exe___regrun
lea ecx, [esp + 0x14]
call fcn.00403d9c
push dword [esp + 0x14]
push str._QQPCTray
call fcn.00401b26
mov byte [esp + 0xaf0], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401369
push 0
push str.SOFTWARETencentQQPCMgr
lea esi, [esp + 0x24]
call fcn.00401a3d
test eax, eax
je 0x4038dc
lea eax, [esp + 0x8c]
push eax
push str.InstallDir
call fcn.00401b26
lea eax, [esp + 0x8cc]
push eax
call fcn.00409884
test eax, eax
pop ecx
jbe 0x4038dc
lea eax, [esp + 0x8cc]
push eax
push str.version
call fcn.00401b26
lea eax, [esp + 0x8c]
push eax
push 0x42caec
call fcn.00403d0f
lea eax, [esp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
mov esi, eax
lea eax, [esp + 0x2c]
push str.QQPCTray.exe0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xb00], 6
call fcn.00403f18
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.004092bc
mov eax, dword [esp + 0x3c]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00401369
mov byte [esp + 0xaf0], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.00401369
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00403f18
mov esi, eax
lea eax, [esp + 0x2c]
push str.QQPCRtp.exe0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xb00], 7
call fcn.00403f18
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.004092bc
mov eax, dword [esp + 0x3c]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00401369
mov byte [esp + 0xaf0], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.00401369
lea eax, [esp + 0x8c]
push eax
call fcn.0040329d
mov eax, dword [0x42caf4]
mov esi, dword [eax]
pop ecx
cmp esi, dword [0x42caf4]
je 0x403a78
mov eax, dword [esi + 8]
sub eax, 0x10
call fcn.004047c6
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x24]
lea eax, [esp + 0x14]
mov byte [esp + 0xaf0], 8
call fcn.00403e9e
push 0x425ff4
push eax
mov byte [esp + 0xaf8], 9
call fcn.004043ce
mov ebx, eax
neg ebx
mov byte [esp + 0xaf0], 8
mov eax, dword [esp + 0x24]
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401369
test bl, bl
je 0x403a54
mov eax, dword [edi - 0xc]
lea ecx, [eax - 1]
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
call fcn.00403edc
push dword [eax]
push edi
call fcn.004092bc
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401369
lea eax, [edi - 0x10]
mov byte [esp + 0xaf0], 2
call fcn.00401369
cmp esi, dword [0x42caf4]
jne 0x403a71
call fcn.0040973e
mov esi, dword [esi]
jmp 0x4039c5
call fcn.004041a7
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00403c85
lea ecx, [esp + 0x24]
lea eax, [esp + 0x2c]
mov byte [esp + 0xaf0], 0xa
call fcn.00403e9e
mov esi, 0x425e94
push esi
push eax
mov byte [esp + 0xaf8], 0xb
call fcn.004043ce
test eax, eax
mov byte [esp + 0xaf0], 0xa
mov eax, dword [esp + 0x24]
setne bl
add eax, 0xfffffff0
call fcn.00401369
test bl, bl
je 0x403ae0
mov eax, esi
lea ecx, [esp + 0x2c]
call fcn.00403d9c
mov eax, 0x425ff8
lea ecx, [esp + 0x2c]
call fcn.00403d9c
push 0x40
xor esi, esi
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.0040a2d0
xor eax, eax
mov dword [esp + 0x40], esi
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x42c878]
add esp, 0xc
mov ecx, 0x42c878
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 0x181
mov word [esp + 0x74], si
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xaf0], 0xc
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push str.__s_
call fcn.00404dcd
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403b8f
push esi
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esp + 0x38]
call ebx
lea eax, [edi - 0x10]
call fcn.00401369
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.00401369
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401369
cmp dword [esp + 0x1c], esi
je 0x403bbf
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xae8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xad0]
xor ecx, esp
call fcn.004092a8
mov esp, ebp
pop ebp
ret