Function at 0x4047f2
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a8d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push edi
mov dword [ebp - 0x2dc], ecx
mov eax, dword [ebp - 0x2dc]
cmp dword [eax + 0x1cc], 0
je 0x40482b
jmp 0x404aeb
lea ecx, [ebp - 0x2d8]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004085d0
lea ecx, [ebp - 0x2d4]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00408630
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408610
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004085f0
push eax
push str._04d__02d__02d
lea edx, [ebp - 0x2d4]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
add esp, 4
mov ecx, dword [ebp - 0x1b0]
and ecx, 0xffff
push ecx
push 0x449184
lea edx, [ebp - 0x10]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x1d0]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1b0]
and eax, 0xffff
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408690
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408670
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408650
push eax
push str._02d:_02d:_02d._03d
lea ecx, [ebp - 0x1d0]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [ebp - 0x1c8]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov byte [ebp - 0x2d0], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x2cf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x1a8], 2
lea edx, [ebp - 0x1a0]
push edx
mov ax, word [ebp - 0x1a8]
push eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4049b6
push 0xff
lea ecx, [ebp - 0x2d0]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x4049b1
lea edx, [ebp - 0x2d0]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
je 0x4049b1
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00431d30
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ecx + 0x158]
add edx, 0x30
push edx
lea ecx, [ebp - 0x1cc]
call fcn.00431d2a
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 0x158]
add ecx, 0x34
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00431d2a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x1cc]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x1d0]
push eax
mov ecx, dword [ebp - 0x2d4]
push ecx
push str.Date_sTime_sIP_sName_sVersion_sStatus_d
lea edx, [ebp - 0x1a4]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [ebp - 0x1a4]
call fcn.0040cdc0
push eax
mov ecx, dword [ebp - 0x2dc]
add ecx, 0x1c8
call fcn.0040cdc0
push eax
call fcn.0040ec7d
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1b8]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1cc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c8]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4