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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439673
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 0x4047b7
jmp 0x404a77
lea ecx, [ebp - 0x2d8]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00407fc0
lea ecx, [ebp - 0x2d4]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00408020
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408000
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00407fe0
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 0x447174
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.00408080
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408060
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00408040
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 0x404942
push 0xff
lea ecx, [ebp - 0x2d0]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40493d
lea edx, [ebp - 0x2d0]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
je 0x40493d
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.00430af8
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.00430af2
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.00430af2
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.0040c8c0
push eax
mov ecx, dword [ebp - 0x2dc]
add ecx, 0x1c8
call fcn.0040c8c0
push eax
call fcn.0040e75d
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