Function at 0x1000a800
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x554
mov eax, dword [0x1005d330]
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0x558], eax
push edi
lea eax, [ebx + 8]
mov dword [esp + 0x14], eax
mov byte [eax], 0
xor eax, eax
push 1
mov byte [esp + 0x154], 0
mov ecx, 0x100
lea edi, [esp + 0x155]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
push 3
push 2
mov byte [ebx + 0x1008], 0
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x1000a86a
push str.socket__
jmp 0x1000ab46
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000a904
push esi
lea ecx, [esp + 0x154]
push str.Host_not_found:__s_r_n
push ecx
call fcn.10036e11
lea eax, [esp + 0x15c]
add esp, 0xc
mov edx, eax
jmp 0x1000a8a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a8a0
mov edi, dword [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000a8b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x150]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a8d2
sub eax, edx
push 0
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x158]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x55c]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x20
push eax
mov dword [esp + 0x13c], eax
mov word [esp + 0x138], 2
mov word [esp + 0x13a], 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
lea eax, [esp + 0x15c]
push str.Pinging__s___s__with__d_bytes_of_data:_r_n
push eax
call fcn.10036e11
lea eax, [esp + 0x164]
add esp, 0x14
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a950
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000a960
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x150]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a980
push 0
sub eax, edx
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x158]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x1000ab31
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x130]
push eax
push esi
mov ecx, ebx
call fcn.1000a690
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 1
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1000ab62
test eax, eax
jne 0x1000aa6e
lea eax, [esp + 0x150]
push str.Request_Timed_Out_r_n
push eax
call fcn.10036e11
lea eax, [esp + 0x158]
add esp, 8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000aa21
mov edi, dword [esp + 0x14]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000aa30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x150]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000aa52
push 0
sub eax, edx
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x158]
push ecx
push edx
jmp 0x1000ab17
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x144]
push ecx
push esi
mov ecx, ebx
call fcn.1000a770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx edx, byte [esp + 0x13]
push edx
sub eax, esi
push eax
mov eax, dword [esp + 0x14c]
push 0x20
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x24]
push eax
inc ecx
push ecx
lea edx, [esp + 0x164]
push str.Reply__d__from:__s:_bytes_d_time_ldms_TTL_d_r_n
push edx
call fcn.10036e11
lea eax, [esp + 0x16c]
add esp, 0x1c
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000aad0
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000aae0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x150]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ab00
mov ecx, dword [ebx]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x1000a9b0
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1000ab4d
push str.closesocket__
mov ecx, ebx
call fcn.1000a5e0
mov ecx, dword [esp + 0x55c]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.select__
mov ecx, ebx
call fcn.1000a5e0
jmp 0x1000ab35