Function at 0x423800
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x48c10b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004371a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423857
push 0x80004005
call fcn.00405e20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov ebp, 1
push ebp
push 3
push 2
mov dword [esp + 0x164], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4238c4
push str.socket__
call fcn.00423c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x158], edi
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4238bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x423a70
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x42390b
push esi
lea ecx, [esp + 0x1c]
push str.Host_not_found:__s
push ecx
call fcn.0040b5c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4238b1
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x20
mov ecx, 2
mov edx, 0x50
push eax
mov dword [esp + 0x138], eax
mov word [esp + 0x134], cx
mov word [esp + 0x136], dx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
lea eax, [esp + 0x24]
push str.Pinging__s___s__with__d_bytes_of_data:
push eax
call fcn.0040b5c0
add esp, 0x14
xor ebx, ebx
jmp 0x423965
mov ebp, 1
lea ecx, [esp + 0x12c]
push ecx
push edi
add ebx, ebp
call fcn.00423aa0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
lea eax, [esp + 0x30]
push eax
push ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebp
jge 0x4239cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x423a23
test ebp, ebp
je 0x4239ce
lea ecx, [esp + 0x18]
push str.Request_Timed_Out
push ecx
mov ebp, 0x1006
call fcn.0040b5c0
add esp, 8
jmp 0x423a18
xor ebp, ebp
lea edx, [esp + 0x13c]
push edx
push edi
lea esi, [esp + 0x1f]
call fcn.00423b80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, byte [esp + 0x17]
mov edx, dword [esp + 0x140]
push ecx
sub eax, esi
push eax
push 0x20
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x2c]
push str.Reply__d__from:__s:_bytes_d_time_ldms_TTL_d
push ecx
call fcn.0040b5c0
add esp, 0x1c
cmp ebx, 1
jb 0x423960
jmp 0x423a2d
push str.select__
call fcn.00423c00
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x423a43
push str.closesocket__
call fcn.00423c00
mov dword [esp + 0x158], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x148
ret