Function at 0x475cd0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x354]
sub esp, 0x3d4
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x350], eax
mov eax, dword [ebp + 0x36c]
push ebx
push esi
mov esi, dword [ebp + 0x35c]
lea edx, [ebp + 0x150]
mov dword [ebp - 0x68], eax
push edi
mov dword [ebp - 0x70], esi
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x475d10
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x4ab038]
mov byte [ebp + eax + 0x250], cl
inc eax
test cl, cl
jne 0x475d20
mov eax, dword [ebp + 0x364]
cmp eax, 1
mov dword [ebp - 0x6c], 0x3e8
jl 0x475d47
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp + 0x360]
cmp ebx, 1
jge 0x475d57
mov ebx, 0x20
test esi, esi
je 0x475d80
cmp byte [esi], 0
je 0x475d80
lea ecx, [ebp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
lea eax, [ebp + 0x150]
jmp 0x475d9e
lea ecx, [ebp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
lea eax, [ebp + 0x250]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push eax
xor edx, edx
push 0
push edx
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0x368]
mov edx, dword [ebp - 0x6c]
push ecx
push edx
push ebx
push edi
push str._Ping____called_with_lpszServer____s___nDatasize___d__nTimeout___d__nMaxSeqTimeout___u
call fcn.00469110
add esp, 0x14
lea eax, [ebp - 0x60]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x475dfe
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x475de9
mov dword [ecx], eax
push eax
push str._Ping____WSAStartup_...__has_failed____error___d
call fcn.00469110
add esp, 8
xor al, al
jmp 0x4761a7
push 0
push 0
push 0
mov ebx, 1
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
mov dword [ebp - 0x78], esi
cmp esi, 0xffffffff
jne 0x475e48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x475e2d
mov dword [ecx], eax
push eax
push str._Ping____WSASocket_...__has_failed____error___d
call fcn.00469110
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4761a7
cmp dword [ebp + 0x364], ebx
jge 0x475e5a
mov dword [ebp + 0x364], 0x3e8
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp + 0x364]
push ecx
push 0x1006
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
jne 0x475eac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x475e8a
mov dword [ecx], eax
push eax
push str._Ping____setsockopt_...__has_failed_to_set_the_received_timeout____error___d
call fcn.00469110
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4761a7
push 4
lea edx, [ebp + 0x364]
push edx
push 0x1005
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
jne 0x475ede
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x475ed6
mov dword [ecx], eax
push eax
push str._Ping____setsockopt__...__has_failed_to_set_the_timeout_sending____error___d
jmp 0x475e90
mov edx, dword [ebp - 0x70]
xor eax, eax
push eax
mov dword [ebp + 0x140], eax
mov dword [ebp + 0x144], eax
mov dword [ebp + 0x148], eax
mov dword [ebp + 0x14c], eax
lea eax, [ebp + 0x140]
push eax
lea ecx, [ebp + 0x144]
push ecx
push edx
call fcn.00475a90
add esp, 0x10
mov dword [ebp - 0x74], eax
test eax, eax
je 0x475f3b
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x475e98
push esi
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4761a7
cmp dword [ebp + 0x360], ebx
jge 0x475f4d
mov dword [ebp + 0x360], 0x20
mov edi, dword [ebp + 0x360]
push 0x400
push 8
add edi, 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x475fa3
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x475f7f
mov dword [eax], 8
push str._Ping____HeapAlloc_...__has_failed____icmp_data__NULL
call fcn.00469110
mov eax, dword [ebp - 0x78]
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4761a7
push 0x400
push 0
push esi
call fcn.00447660
push edi
push esi
call fcn.00475920
add esp, 0x14
push 0x400
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x476011
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x475fed
mov dword [eax], 8
push str._Ping____HeapAlloc_...__has_failed____recvbuf__NULL
call fcn.00469110
mov ecx, dword [ebp - 0x78]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4761a7
mov dword [ebp - 0x7c], 0x10
mov byte [ebp - 0x61], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x368], 0
mov dword [ebp - 0x80], eax
jge 0x476038
mov dword [ebp + 0x368], 4
cmp dword [ebp + 0x368], 0
mov dword [ebp - 0x70], 0
jl 0x47614a
mov ax, word [ebp - 0x70]
xor edx, edx
push edi
push esi
mov word [esi + 2], dx
mov word [esi + 6], ax
call fcn.00475960
mov ebx, dword [ebp - 0x78]
add esp, 8
push 0x10
lea ecx, [ebp + 0x140]
push ecx
push 0
push edi
push esi
push ebx
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x47609b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x74], eax
cmp eax, 0x274c
jne 0x476113
push str._Ping____sendto_..._____timeout
jmp 0x4760e1
push edi
push eax
push str._Ping____sendto_...__wrote__d_bytes_on_a_maximum_of__d
call fcn.00469110
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp + 0x130]
push eax
push 0
push 0x400
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x476133
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x74], eax
cmp eax, 0x274c
jne 0x476123
push str._Ping____recvfrom_..._____timeout
call fcn.00469110
add esp, 4
push 0x1f4
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x70]
inc eax
movzx edx, ax
cmp edx, dword [ebp + 0x368]
mov dword [ebp - 0x70], eax
jle 0x47604c
jmp 0x47614a
push eax
push str._Ping____sendto_...__has_failed____error___d
call fcn.00469110
add esp, 8
jmp 0x47614a
push eax
push str._Ping____recvfrom_...__has_failed____error___d
call fcn.00469110
add esp, 8
jmp 0x47614a
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp + 0x130]
push ecx
push eax
push edx
call fcn.004759f0
add esp, 0xc
mov byte [ebp - 0x61], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov edi, eax
sub edi, dword [ebp - 0x80]
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
mov eax, dword [ebp - 0x6c]
push eax
push 0
call ebx
push eax
call esi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x476180
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov bl, byte [ebp - 0x61]
movzx edx, bl
push edi
push edx
push str._Ping____returns__d__elapsed_time:__u_ms
call fcn.00469110
mov eax, dword [ebp - 0x78]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x350]
xor ecx, ebp
call fcn.00447645
add ebp, 0x354
mov esp, ebp
pop ebp
ret