Function at 0x418199
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cd0d4
call fcn.0046fad0
sub esp, 0x130
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x418426
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push esi
push ecx
push 0x4e7978
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x38]
push 0x529320
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x52931c
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 0x418310
mov eax, dword [edi]
lea ecx, [ebp - 0xd]
mov esi, 0x4e7a90
push ecx
push esi
push edi
mov byte [ebp - 0xd], bl
call dword [eax + 0x70]
cmp byte [ebp - 0xd], 2
jne 0x418310
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 0x529318
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp byte [ebp + 0xb], bl
je 0x418310
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x4e796c
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x60]
test eax, eax
jne 0x4182ff
cmp dword [ebp - 0x14], ebx
je 0x4182ff
mov esi, dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
lea eax, [ebp - 0x1c]
push eax
push 0x4e7a9c
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 0x4e7aa0
push eax
call dword [ecx + 0x30]
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push 0x529318
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp - 0x24]
push eax
push 0x4e7aa8
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x28]
push eax
push 0x4e7ab4
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x4e7ac0
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x418310
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 0x4183de
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x13d], 0x5c
pop ecx
je 0x418354
lea eax, [ebp - 0x13c]
push 0x4e515c
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 0x5292d8
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