Function at 0x414450
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x67a114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.in_pingTest_routine._n
call fcn.0040f570
add esp, 4
mov dword [ebp - 0x47c], 0
lea eax, [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413c00
add esp, 8
test eax, eax
jne 0x414499
xor eax, eax
jmp 0x41493f
xor edx, edx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x434], edx
mov eax, 2
mov word [ebp - 0x440], ax
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x43c], ecx
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x43e], ax
push 0x2c
push 0
lea edx, [ebp - 0x30]
push edx
call fcn.005aab10
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov byte [ecx], 8
mov edx, dword [ebp - 0x464]
mov byte [edx + 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x464]
mov word [ecx + 4], ax
xor edx, edx
mov eax, dword [ebp - 0x464]
mov word [eax + 2], dx
mov ecx, dword [ebp - 0x464]
mov dword [ecx + 8], 0
mov edx, 0x45454545
mov eax, 1
imul ecx, eax, 0xc
lea eax, [ebp + ecx - 0x30]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0xffffffff
jne 0x41459a
push str.Create_socket_error__n
call fcn.0040f570
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ErrorCode___d__n
call fcn.0040f570
add esp, 8
xor eax, eax
jmp 0x41493f
xor ecx, ecx
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x444], ecx
mov edx, 2
mov word [ebp - 0x450], dx
cmp dword [0x67edc4], 1
jne 0x414628
cmp dword [0x67edc8], 0
je 0x4145e4
push 0x67ed60
push str.IP:__s_n
call fcn.0040f570
add esp, 8
push str.0.0.0.0
push 0x67ed60
call fcn.005c07a1
add esp, 8
test eax, eax
je 0x41460d
push 0x67ed60
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x44c], eax
jmp 0x414626
push 0x67ed60
push str.pingIP:__s_._error_IP_
call fcn.0040f570
add esp, 8
xor eax, eax
jmp 0x41493f
jmp 0x41464c
cmp dword [0x67edc8], 0
je 0x41463e
push str.IP:_INADDR_ANY_n
call fcn.0040f570
add esp, 4
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x470], 0
push 0x10
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x470], eax
cmp dword [0x67edc8], 0
je 0x41468f
mov edx, dword [ebp - 0x470]
push edx
push str.retSrv_d_n
call fcn.0040f570
add esp, 8
cmp dword [ebp - 0x470], 0xffffffff
jne 0x4146d0
cmp dword [0x67edc8], 0
je 0x4146bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x470]
push eax
push str.retSrv_d_error_d_n
call fcn.0040f570
add esp, 0xc
push str.error_IP_bind_filed
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x41493f
mov dword [ebp - 0x484], 0x3e8
push 4
lea ecx, [ebp - 0x484]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x474], 0
jmp 0x41471b
mov eax, dword [ebp - 0x474]
add eax, 1
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 2
jge 0x414927
xor ecx, ecx
mov edx, dword [ebp - 0x464]
mov word [edx + 2], cx
mov eax, dword [ebp - 0x464]
mov cx, word [ebp - 0x474]
mov word [eax + 6], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x464]
mov dword [edx + 8], eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
call fcn.00413b90
add esp, 8
mov ecx, dword [ebp - 0x464]
mov word [ecx + 2], ax
push 0x10
lea edx, [ebp - 0x440]
push edx
push 0
push 0x2c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
jne 0x4147b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto_error__ErrorCode___ld_n
call fcn.0040f570
add esp, 8
xor eax, eax
jmp 0x41493f
mov dword [ebp - 0x488], 0x10
lea edx, [ebp - 0x488]
push edx
lea eax, [ebp - 0x460]
push eax
push 0
push 0x400
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
jne 0x41482d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x414819
push str.Request_Timeout_n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x41493f
push str.recvfrom_error__n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x41493f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x464]
sub eax, dword [ecx + 8]
mov dword [ebp - 0x48c], eax
mov edx, dword [ebp - 0x46c]
sub edx, 0x20
mov dword [ebp - 0x480], edx
jns 0x414867
push str.To_less_recv_bytes__n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x41493f
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
movzx edx, byte [ecx]
test edx, edx
je 0x41489e
mov eax, dword [ebp - 0x478]
movzx ecx, byte [eax]
push ecx
push str.Not_ICMP_respond_type:_d__n
call fcn.0040f570
add esp, 8
xor eax, eax
jmp 0x41493f
mov edx, dword [ebp - 0x478]
movzx esi, word [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x4148c3
push str.not_valid_id__n
call fcn.0040f570
add esp, 4
xor eax, eax
jmp 0x41493f
cmp dword [0x67edc8], 0
je 0x4148e7
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.IP2:__s_n
call fcn.0040f570
add esp, 8
mov ecx, dword [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x480]
push edx
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
push str._d_bytes_replay_from__s_:_bytes_d_time_dms_n
call fcn.0040f570
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41470c
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004862cc
mov esp, ebp
pop ebp
ret