Function at 0x6235e8
Capabilities:
Get hostname
Get socket status
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
cmp dword [0xc12da4], 0
jne 0x6238fd
mov dword [ebp - 0x44], 0
mov dword [0x91aee0], 0
mov dword [esp], str.228.67.43.91
call fcn.00623bfc
mov dword [ebp - 0x1bc], eax
mov dword [esp + 4], 0x3e4b
lea eax, [ebp - 0x1a]
mov dword [esp], eax
call fcn.00625c9e
mov ax, word [ebp - 0x1a]
mov word [esp + 4], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00622c19
mov ebx, eax
test eax, eax
js 0x623774
mov edx, dword [ebp - 0x1bc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.006231a1
test eax, eax
je 0x623774
lea edi, [ebp - 0x37]
mov esi, str.hostIdTest
mov ecx, 0xb
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], 0xb
lea eax, [ebp - 0x37]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov ax, word [ebp - 0x1a]
mov word [esp + 0xc], ax
mov edx, dword [ebp - 0x1bc]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00623013
test eax, eax
je 0x623774
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1b0], 1
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
jle 0x623774
lea eax, [ebp - 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x14
lea eax, [ebp - 0xac]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00622f87
cmp eax, 0xb
jne 0x623774
mov dword [esp + 8], 0xb
lea eax, [ebp - 0x37]
mov dword [esp + 4], eax
lea eax, [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x623774
mov dword [0x91aee0], 1
jmp 0x623861
cmp dword [0x91aee0], 0
jne 0x623861
mov byte [ebp - 0xac], 0
mov dword [esp + 4], 0x64
lea eax, [ebp - 0xac]
mov dword [esp], eax
call sub.WS2_32.dll_gethostname
sub esp, 8
cmp byte [ebp - 0xac], 0
jne 0x6237ca
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 8], 0
mov dword [esp + 4], str.initial_gethostname___failed
mov dword [esp], edx
call dword [eax + 0x10]
jmp 0x623861
lea eax, [ebp - 0xac]
mov dword [esp], eax
call sub.WS2_32.dll_gethostbyname
sub esp, 4
mov esi, eax
test eax, eax
je 0x6237fe
cmp word [eax + 0xa], 4
jne 0x6237fe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x62384e
mov edi, 4
mov dword [ebp - 0x1c0], ebx
jmp 0x62381b
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 8], 0
mov dword [esp + 4], str.initial_gethostbyname___failed
mov dword [esp], edx
call dword [eax + 0x10]
jmp 0x623861
mov ebx, dword [eax]
mov eax, ebx
call fcn.00622a6c
test eax, eax
je 0x62383d
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi]
add edi, 4
test eax, eax
jne 0x62381b
mov ebx, dword [ebp - 0x1c0]
jmp 0x62384e
mov esi, ebx
mov ebx, dword [ebp - 0x1c0]
test esi, esi
je 0x62384e
mov dword [ebp - 0x44], esi
jmp 0x623861
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 4], str.no_address
mov dword [esp], edx
call dword [eax + 4]
mov esi, dword [ebp - 0x44]
mov eax, esi
call fcn.00622a6c
test eax, eax
je 0x6238a8
mov dword [esp], esi
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.This_computer_has_an_invalid_IP_address:_0x_x
lea esi, [ebp - 0xac]
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 4], esi
mov dword [esp], edx
call dword [eax + 4]
mov esi, 0
mov dword [0xc12da4], esi
test ebx, ebx
js 0x6238d6
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00623230
mov dword [esp], ebx
call sub.WS2_32.dll_closesocket
sub esp, 4
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00623413
mov eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x28]
xor eax, dword [0xc12da4]
mov dword [esp], eax
call fcn.00623ce4
mov eax, dword [0xc12da4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret