Function at 0x40b230
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f0a7
push eax
mov dword fs:[0], esp
sub esp, 0x430
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x40b4a1
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x40b4a1
mov eax, dword [esi + 0x28]
push ebx
push ebp
mov ebx, 1
mov eax, dword [eax]
push edi
push ebx
push 0
lea ecx, [esi + 0x24]
mov dword [esi + 0x38], eax
call sub.MFC42.DLL_CPtrArray::RemoveAt
mov ecx, dword [esi + 0x3c]
lea ebp, [esi + 0x3c]
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b2fb
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x30]
push edx
push 0x207
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x238]
lea ecx, [esp + 0x30]
push eax
push 0
push 0x442f00
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x238]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator
jmp 0x40b34c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
mov ebp, dword [ebp]
push 0
push 2
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x454], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40b338
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::SetLength
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.0042127e
mov eax, dword [esi + 0x38]
mov edi, str.http:__
or ecx, 0xffffffff
lea ebp, [eax + 0x20]
mov eax, dword [eax + 0x20]
mov edx, dword [eax - 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
lea ecx, [esp + 0x14]
push edx
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x14]
mov dword [esp + 0x448], ebx
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push str.http:__csa.qq.com_p_refdomain_s
push eax
mov byte [esp + 0x454], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x168]
add esp, 0xc
test eax, eax
jne 0x40b3d2
test esi, esi
je 0x40b3c1
lea eax, [esi + 0x20]
jmp 0x40b3c3
xor eax, eax
push eax
lea ecx, [esi + 0x40]
call fcn.004242c0
mov dword [esi + 0x168], ebx
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.00421e80
push str.Referer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x10]
add ecx, 0x1c
mov byte [esp + 0x448], 3
push ecx
push edx
mov ecx, ebx
call fcn.00424490
lea ecx, [esp + 0x10]
mov byte [esp + 0x448], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x38]
xor edi, edi
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x40b464
mov ebp, dword [sym.imp.WININET.dll_InternetSetCookieA]
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [eax + 8]
call fcn.00401d20
mov eax, dword [eax]
mov byte [esp + 0x448], 4
push eax
push 0
push str.http:__www.qq.com
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x448], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x38]
inc edi
cmp edi, dword [eax + 0x10]
jl 0x40b428
mov edx, dword [esp + 0x1c]
push 0
mov ecx, ebx
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00421ea0
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x448], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
pop esi
mov dword fs:[0], ecx
add esp, 0x43c
ret