Function at 0x4201b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4256ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
mov ebx, 1
push 0x42d1a8
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x240]
push 0x200
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x420237
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x1c], ebx
jmp 0x4203f7
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x420264
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x1c], 1
jmp 0x4203f7
push str._127.0.0.1_localhost_
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_2
xor edi, edi
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + edi*4], 0
je 0x4203da
push 0x42d1a8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
xor esi, esi
movsx edx, word [ebx + 0xa]
cmp esi, edx
jge 0x4202e2
mov eax, dword [ebx + 0xc]
xor edx, edx
mov ecx, dword [eax + edi*4]
lea eax, [ebp - 0x40]
mov dl, byte [ecx + esi]
push edx
push 0x42bb54
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
inc esi
jmp 0x42028f
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
mov eax, dword [ecx - 8]
lea ecx, [ebp - 0x14]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
push 0x42d1a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
push 0x42c5cc
jne 0x42036f
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
inc edi
jmp 0x420273
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_operator_3
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
inc edi
jmp 0x420273
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x1c]
or al, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret