Function at 0x4177b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432517
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetThread
xor ebp, ebp
cmp eax, ebp
je 0x4177e7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov esi, eax
jmp 0x4177e9
xor esi, esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x84]
push 0x80
push eax
mov dword [esp + 0x114], ebp
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0x84]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov eax, dword [edx]
xor edx, edx
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push str._d._d._d._d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea edx, [esp + 0x10]
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004176e0
push 3
push ecx
add esi, 0xfc
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov dword [edi + 0x6b8c8], eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004176e0
push esi
lea ecx, [esp + 0x18]
mov dword [edi + 0x6b8c4], eax
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x10c], 1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebp
push 0xe801
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x20]
push eax
call sub.MFC42.DLL_CWnd::GetDescendantWindow
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
mov esi, eax
push str.127.0.0.1
push ecx
mov dword [esp + 0x28], esi
call ebx
add esp, 8
test eax, eax
jne 0x4178e1
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.0042f8a6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x4178fd
push 1
push 0x43a4a4
jmp 0x417928
call sub.MFC42.DLL_AfxGetModuleState
push 0x93
push 0xc
push 0x93
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push 0x43a490
push ebp
mov ecx, esi
call sub.MFC42.DLL_CStatusBar::SetPaneText
push 0x64
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
push 0x43a48c
call sub.MFC42.DLL_CString::CString_1
push 0x63
lea ecx, [esp + 0x1c]
mov byte [esp + 0x110], 2
call sub.MFC42.DLL_CString::GetBuffer
push 3
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [edi + 0x40]
add esi, 3
add esp, 0xc
add esi, 4
mov edx, dword [eax + 0x27374]
xor ebx, ebx
mov dword [esi - 4], edx
mov eax, dword [edi + 0x40]
push str.________
mov eax, dword [eax + ebp + 0x88]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4179b2
add ebp, 0x30
inc ebx
cmp ebp, 0x180
jl 0x417983
mov eax, dword [esp + 0x1c]
jmp 0x4179bc
mov eax, dword [edi + 0x40]
mov eax, dword [eax + ebx*4 + 0x208]
mov dword [esi], eax
mov eax, dword [edi + 0x40]
mov ecx, edi
add esi, 4
mov eax, dword [eax + 0x80]
mov dword [esp + 0x24], eax
call fcn.004170e0
mov edx, dword [eax + 0x84]
add eax, 0x84
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov dword [ecx], edx
lea ecx, [esp + 0x2c]
call fcn.00416e00
mov ecx, dword [eax]
lea edx, [esp + 0x60]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [sym.imp.MSVCRT.dll_mktime]
lea eax, [esp + 0x60]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x60]
mov ebx, eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CTime::GetLocalTm
lea edx, [esp + 0x60]
push edx
call ebp
mov dword [esi], ebx
add esi, 4
add esp, 4
xor ebx, ebx
mov dword [esi], eax
add esi, 4
xor ebp, ebp
mov eax, dword [edi + 0x40]
push str.________
mov eax, dword [eax + ebp + 0x88]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x417a61
inc ebx
add ebp, 0x30
cmp ebp, 0x180
jl 0x417a43
test ebx, ebx
je 0x417bed
mov dword [esi], ebx
add esi, 4
mov ebx, 0x17
xor ebp, ebp
mov eax, dword [edi + 0x40]
push str.________
mov eax, dword [eax + ebp + 0x88]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x417ac0
mov eax, dword [edi + 0x40]
add esi, 4
add esi, 4
add ebx, 8
mov eax, dword [eax + ebp + 0x90]
mov dword [esi - 8], eax
mov eax, dword [edi + 0x40]
mov ecx, dword [eax + ebp + 0x94]
mov dword [esi - 4], ecx
add ebp, 0x30
cmp ebp, 0x180
jl 0x417a80
lea ecx, [esp + 0x2c]
call fcn.0042fb04
push 0
push 0x3f
push 1
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x11c], 3
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x417b1b
push 0x10
push 0x4391d8
push 0x43a478
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x20]
push 1
push 0x43a45c
push 0
call sub.MFC42.DLL_CStatusBar::SetPaneText
jmp 0x417bdc
mov edx, dword [esp + 0x14]
push 0xa75
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x417b76
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSocket::Close
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x10
push 0x4391d8
push 0x43a448
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x20]
push 1
push 0x43a42c
push 0
call sub.MFC42.DLL_CStatusBar::SetPaneText
jmp 0x417bdc
mov dword [0x44569c], 0
lea eax, [esp + 0x2c]
push 1
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CSocketFile::CSocketFile
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x114], 4
call sub.MFC42.DLL_CSocketFile::Write
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CSocketFile::Close
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSocket::Close
mov ecx, dword [esp + 0x20]
push 1
push 0x43a41c
push 0
call sub.MFC42.DLL_CStatusBar::SetPaneText
lea ecx, [esp + 0x48]
mov byte [esp + 0x10c], 3
call fcn.0042ffc0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10c], 2
call fcn.0042fb0a
lea ecx, [esp + 0x18]
mov byte [esp + 0x10c], 1
call fcn.0042f8a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call fcn.0042f8a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10c], 0xffffffff
call fcn.0042f8a0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret