Function at 0x401b1c
Capabilities:
Get common file path
Read .ini file
Terminate process

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x405018]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x40300d
call fcn.00402f46
mov eax, dword [ebp + 0x41c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x424]
xor ebx, ebx
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401eee
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx - 0xc]
cmp edi, ebx
jle 0x401bb9
lea eax, [edi - 1]
cmp eax, ebx
jl 0x401d6e
cmp eax, edi
jg 0x401d6e
movzx eax, word [ecx + eax*2]
cmp ax, 0x5c
je 0x401bb9
lea eax, [edi + 1]
push eax
lea esi, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.004020ae
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp - 0x18]
mov edx, esi
call fcn.0040214c
mov eax, dword [0x40505c]
mov ecx, 0x40505c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, 0x206
push esi
lea eax, [ebp + 2]
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
jl 0x401c50
push esi
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call sub.MSVCR80.dll_memset
lea eax, [ebp]
push eax
push str._sTencentQQLive_
lea eax, [ebp + 0x208]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
lea eax, [ebp + 0x208]
push eax
call edi
add esp, 0x20
lea ecx, [ebp + 0x208]
mov ebx, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.0040216c
mov esi, str.config.ini
push esi
call edi
pop ecx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x18], eax
mov ebx, esi
add eax, edi
sub ebx, ecx
mov dword [ebp - 0x24], esi
push eax
lea esi, [ebp - 0x14]
sar ebx, 1
mov dword [ebp - 0x1c], eax
call fcn.004020ae
cmp ebx, edi
lea ebx, [eax + ebx*2]
jbe 0x401c83
mov ebx, dword [ebp - 0x24]
push ebx
push dword [ebp - 0x18]
lea eax, [eax + edi*2]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004021da
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ebp - 0x14]
call fcn.0040214c
push dword [ebp - 0x14]
xor edi, edi
push edi
push str.EnablePrefetch
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x401cd6
call fcn.00401df4
cmp al, 5
jae 0x401ccd
call fcn.00401d79
test eax, eax
je 0x401cd6
push dword [ebp - 0x10]
call fcn.00401206
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040200b
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402371
cmp esi, edi
je 0x401d31
push str.QQLiveWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x401d1f
push dword [ebp + 0x428]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call eax
mov edi, eax
push 0xfefefefe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402371
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402371
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004025f2
add ebp, 0x414
leave
ret 0x10
mov eax, 0x80070057
call fcn.00402389
int3