Function at 0x4023d2
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov dword [ebp - 0xb4], ecx
call sub.comnet.dll_LCOMNET_GetMyPCName
push eax
lea ecx, [ebp - 0x28]
call fcn.00425570
mov dword [ebp - 4], 0
push 8
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x28]
call fcn.00401c20
push eax
push 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.comnet.dll_LCOMNET_EncodePassword
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00401c20
add eax, 0x2c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x40248d
mov dword [ebp - 0xa8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa8]
jmp 0x402694
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0x1020304
cmp dword [ebp + 8], 0
je 0x4024c0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], 0x6f
jmp 0x4024ca
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0x6e
lea ecx, [ebp - 0x28]
call fcn.00401c20
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
push 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov edx, dword [ebp - 0x24]
add edx, 0x2c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call sub.comnet.dll_LCOMNET_GetRegLocalMiniremPort
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xb4]
cmp dword [edx + 0x244], 0
je 0x4025af
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x14
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xb4]
add edx, 0x236
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
jmp 0x402542
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x402566
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x402539
mov eax, dword [ebp - 0xb4]
add eax, 0x23a
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
jmp 0x402586
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 6
jge 0x4025aa
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x40257d
jmp 0x40264a
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_3
push 0x64
lea ecx, [ebp - 0x9c]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [ebp - 0x9c]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x14
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xa0], 0
je 0x402642
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [edx + eax*4], 0
je 0x402642
cmp dword [ebp - 0x38], 6
jge 0x402642
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov dword [edx], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_ntohl
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
jmp 0x4025e7
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0xb4]
call fcn.004022fd
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0xb0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4