Function at 0x419726
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4fd7c4
call fcn.00484660
sub esp, 0x130
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x4199b3
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push esi
push ecx
push 0x51cf60
push edi
mov dword [ebp - 0x30], ebx
call dword [eax + 0x38]
push 0x56f7e8
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
mov esi, 0x56f7c0
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
cmp dword [ebp - 0x30], ebx
mov byte [ebp - 4], 5
je 0x41989d
mov eax, dword [edi]
lea ecx, [ebp - 0xd]
mov esi, 0x51d078
push ecx
push esi
push edi
mov byte [ebp - 0xd], bl
call dword [eax + 0x70]
cmp byte [ebp - 0xd], 2
jne 0x41989d
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 0x570c50
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp byte [ebp + 0xb], bl
je 0x41989d
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x51cf54
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x60]
test eax, eax
jne 0x41988c
cmp dword [ebp - 0x14], ebx
je 0x41988c
mov esi, dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
lea eax, [ebp - 0x1c]
push eax
push 0x51d084
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 0x51d088
push eax
call dword [ecx + 0x30]
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push 0x570c50
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp - 0x24]
push eax
push 0x51d090
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x28]
push eax
push 0x51d09c
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x51d0a8
push dword [ebp - 0x14]
call esi
add esp, 0x30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x41989d
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 0x41996b
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x13d], 0x5c
pop ecx
je 0x4198e1
lea eax, [ebp - 0x13c]
push 0x570c4c
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 0x570c0c
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