Function at 0x418655
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d9ff4
call fcn.00471450
sub esp, 0x130
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x4188e2
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push esi
push ecx
push 0x4f6b10
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x38]
push 0x54d200
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x54d1fc
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 0x4187cc
mov eax, dword [edi]
lea ecx, [ebp - 0xd]
mov esi, 0x4f6c28
push ecx
push esi
push edi
mov byte [ebp - 0xd], bl
call dword [eax + 0x70]
cmp byte [ebp - 0xd], 2
jne 0x4187cc
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 0x54d1f8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp byte [ebp + 0xb], bl
je 0x4187cc
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x4f6b04
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x60]
test eax, eax
jne 0x4187bb
cmp dword [ebp - 0x14], ebx
je 0x4187bb
mov esi, dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
lea eax, [ebp - 0x1c]
push eax
push 0x4f6c34
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 0x4f6c38
push eax
call dword [ecx + 0x30]
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push 0x54d1f8
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp - 0x24]
push eax
push 0x4f6c40
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x28]
push eax
push 0x4f6c4c
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x4f6c58
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4187cc
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 0x41889a
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x13d], 0x5c
pop ecx
je 0x418810
lea eax, [ebp - 0x13c]
push 0x4f41ac
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 0x54d1b8
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