Function at 0x418d00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e8584
call fcn.00475fe0
sub esp, 0x130
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x418f8d
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push esi
push ecx
push 0x504c18
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x38]
push 0x550718
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x5506f0
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
cmp dword [ebp - 0x30], ebx
mov byte [ebp - 4], 5
je 0x418e77
mov eax, dword [edi]
lea ecx, [ebp - 0xd]
mov esi, 0x504d30
push ecx
push esi
push edi
mov byte [ebp - 0xd], bl
call dword [eax + 0x70]
cmp byte [ebp - 0xd], 2
jne 0x418e77
mov eax, dword [edi]
lea ecx, [ebp + 0xb]
push ecx
push esi
push edi
mov byte [ebp + 0xb], bl
call dword [eax + 0x2c]
movzx eax, byte [ebp + 0xb]
push eax
lea eax, [ebp - 0x20]
push 0x551af0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp byte [ebp + 0xb], bl
je 0x418e77
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x504c0c
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x60]
test eax, eax
jne 0x418e66
cmp dword [ebp - 0x14], ebx
je 0x418e66
mov esi, dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
lea eax, [ebp - 0x1c]
push eax
push 0x504d3c
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push edx
push 0x504d40
push eax
call dword [ecx + 0x30]
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push 0x551af0
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp - 0x24]
push eax
push 0x504d48
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x28]
push eax
push 0x504d54
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x504d60
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x418e77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x13c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x418f45
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x13d], 0x5c
pop ecx
je 0x418ebb
lea eax, [ebp - 0x13c]
push 0x50220c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x13c]
push str._tmp_qq_proxy.ini
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x13c]
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
mov edi, str.option
push dword [ebp - 0x20]
push str.type
push edi
call esi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x1c]
push str.addr
push edi
call esi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x18]
push str.port
push edi
call esi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x24]
push str.user
push edi
call esi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x28]
push 0x551ab0
push edi
call esi
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x2c]
push str.domain
push edi
call esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4