Function at 0x401814
Capabilities:
Create raw socket
Get socket status
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x43643b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], eax
call fcn.0042d234
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
push 1
push 3
xor edi, edi
push 2
mov dword [esp + 0x160], edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40185a
push str.socket__
mov ecx, esi
call fcn.004015d0
add ebx, 0xfffffff0
jmp 0x4018c1
mov ebx, dword [esp + 0x160]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x4018e7
push ebx
lea eax, [esp + 0x14]
push str.Host_not_found:__s
push eax
call fcn.004015b0
mov ebx, dword [esp + 0x1c]
add esp, 8
add ebx, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push ebx
call fcn.00401400
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.004014b0
mov ecx, dword [esi]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 4
push eax
push edi
push 0x500
push ecx
call ebp
mov edx, dword [esi]
push edi
push edi
push 0x501
push edx
call ebp
mov dword [esp + 0x154], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401ae5
mov ecx, dword [ebx]
push ebx
jmp 0x401ae0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push 0x20
push eax
mov dword [esp + 0x34], eax
mov word [esp + 0x30], 2
mov word [esp + 0x32], di
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ebx
lea edx, [esp + 0x1c]
push str.Pinging__s___s__with__d_bytes_of_data:
push edx
call fcn.004015b0
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebx, esp
push eax
call fcn.00401400
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004014b0
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
add esp, 4
push eax
mov eax, dword [esi]
push 1
push 0x500
push eax
call ebx
cmp dword [esp + 0x15c], edi
mov dword [esp + 0x18], edi
jbe 0x401a97
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ecx, esi
call fcn.00401690
lea edx, [esp + 0x20]
push edx
push edi
push edi
mov eax, 1
lea ecx, [esp + 0x54]
push ecx
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x401a8b
cmp eax, edi
jne 0x4019eb
lea edx, [esp + 0x10]
push str.Request_Timed_Out
push edx
call fcn.004015b0
mov eax, dword [esp + 0x18]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004014b0
add esp, 4
push eax
mov eax, dword [esi]
push 3
push 0x500
push eax
call ebx
jmp 0x401a6f
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebp
mov ecx, esi
call fcn.00401770
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, byte [esp + 0x17]
mov edx, dword [esp + 0x3c]
push ecx
sub eax, edi
push eax
push 0x20
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov eax, dword [esp + 0x28]
inc eax
push eax
lea ecx, [esp + 0x24]
push str.Reply__d__from:__s:_bytes_d_time_ldms_TTL_d
push ecx
call fcn.004015b0
mov eax, dword [esp + 0x2c]
add esp, 0x18
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004014b0
mov edx, dword [esi]
add esp, 4
push eax
push 2
push 0x500
push edx
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x15c]
inc eax
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x401962
jmp 0x401a97
push str.select__
mov ecx, esi
call fcn.004015d0
mov eax, dword [esi]
push 1
push edi
push 0x501
push eax
call ebx
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x401abc
push str.closesocket__
mov ecx, esi
call fcn.004015d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ae5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret 0xc