Function at 0x418ad0
Capabilities:
Create raw socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561134
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x868], xmm0
push 1
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x868]
call fcn.004f6560
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [edi + 0x1b04], 0
je 0x418dc8
cmp dword [edi + 0x1ad8], 0
jne 0x418b8f
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x1ad8], eax
test eax, eax
je 0x418b8f
push str.IcmpCreateFile
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [edi + 0x1ae0], eax
push str.IcmpCloseHandle
push dword [edi + 0x1ad8]
call esi
mov dword [edi + 0x1ae4], eax
push str.IcmpSendEcho
push dword [edi + 0x1ad8]
call esi
mov dword [edi + 0x1adc], eax
xor al, al
mov dword [ebp - 0x858], eax
mov byte [ebp - 0x895], al
cmp dword [edi + 0x1adc], 0
je 0x418d63
cmp dword [edi + 0x1ae0], 0
je 0x418d63
cmp dword [edi + 0x1ae4], 0
je 0x418d63
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x1ae0]
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x418d24
push 0x40
push 0xffffffffffffffaa
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x5c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x85c], eax
push dword [edi + 0x10]
push 0x5c
push eax
push 0
push 0x40
lea eax, [ebp - 0x54]
push eax
push dword [edi + 0x1af8]
push esi
mov eax, dword [edi + 0x1adc]
call eax
test eax, eax
jne 0x418c20
xor al, al
jmp 0x418c3b
mov eax, dword [ebp - 0x858]
movzx eax, al
mov edx, 1
mov ecx, dword [ebp - 0x85c]
cmp dword [ecx + 4], 0
cmove eax, edx
mov byte [ebp - 0x895], al
mov dword [ebp - 0x858], eax
push esi
mov eax, dword [edi + 0x1ae4]
call eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [0x641c8c], 0
je 0x418d24
lea eax, [edi + 0x1af4]
mov esi, dword [edi + 0x78]
push eax
mov ecx, edi
cmp byte [ebp - 0x858], 0
je 0x418cd7
lea eax, [ebp - 0x8a0]
push eax
call fcn.004188e0
mov byte [ebp - 4], 3
mov edi, dword [eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
push eax
push edi
push str.ICMP_Ping__s_on_port__s___success
push 0x3eb
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8a0]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 1
jmp 0x4190e6
lea eax, [ebp - 0x8a4]
push eax
call fcn.004188e0
mov byte [ebp - 4], 4
mov edi, dword [eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
push eax
push edi
push str.ICMP_Ping__s_on_port__s___no_response
push 0x3eb
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8a4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 1
jmp 0x4190e6
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x8a0], esi
cmp esi, 0xffffffff
jne 0x418df8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x85c]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov byte [ebp - 4], 6
push dword [ebp - 0x85c]
push str.Failed_to_initialize_TCPIP_socket____s
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x85c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x868]
call fcn.004f6620
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x10]
push 4
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x418e66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x858]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov byte [ebp - 4], 7
push dword [ebp - 0x858]
push str.Failed_to_set_TCPIP_receive_timeout____s
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x858]
jmp 0x418dc2
push 4
lea eax, [edi + 0x10]
push eax
push 0x1005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x418ed4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x860]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov byte [ebp - 4], 8
push dword [ebp - 0x860]
push str.Failed_to_set_TCPIP_send_timeout____s
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x860]
jmp 0x418dc2
push 0x400
push 0
lea eax, [ebp - 0x454]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 0x454], 8
mov byte [ebp - 0x453], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [ebp - 0x450], ax
xor eax, eax
mov word [ebp - 0x452], ax
mov eax, 1
mov word [ebp - 0x44e], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44c], eax
movaps xmm0, xmmword [0x606670]
movups xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x438], 0x45454545
mov edx, 0x20
mov dword [ebp - 0x8ac], edx
lea esi, [ebp - 0x454]
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x89c], 0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp edx, 1
jle 0x418f9b
movzx eax, word [esi]
add eax, ecx
mov ecx, eax
mov dword [ebp - 0x89c], eax
add esi, 2
mov dword [ebp - 0x8a8], esi
sub edx, 2
mov dword [ebp - 0x8ac], edx
mov dword [ebp - 0x85c], ecx
jmp 0x418f69
test edx, edx
je 0x418fb2
movzx eax, byte [esi]
add eax, dword [ebp - 0x860]
mov dword [ebp - 0x89c], eax
mov ecx, eax
jmp 0x418fb8
mov ecx, dword [ebp - 0x85c]
shr eax, 0x10
mov dword [ebp - 0x8a4], eax
movzx eax, cx
mov ecx, dword [ebp - 0x8a4]
add ecx, eax
mov dword [ebp - 0x89c], ecx
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov dword [ebp - 0x89c], eax
not eax
mov word [ebp - 0x452], ax
push 0x10
lea eax, [edi + 0x1af4]
push eax
push 0
push 0x20
lea eax, [ebp - 0x454]
push eax
mov esi, dword [ebp - 0x8a0]
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x419060
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x86c]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov byte [ebp - 4], 9
push dword [ebp - 0x86c]
push str.Failed_to_send_ICMP_message____s
push 0x3e9
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec2c0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x86c]
jmp 0x418dc2
mov dword [ebp - 0x878], 0x10
lea eax, [ebp - 0x884]
push eax
call fcn.004cf540
lea eax, [ebp - 0x874]
push eax
call fcn.004cf540
xor eax, eax
cmp eax, dword [edi + 0x10]
jae 0x4190df
cmp byte [ebp - 0x858], 0
jne 0x4190df
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x894]
push eax
push 0
push 0x400
lea eax, [ebp - 0x854]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x41910c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x87c]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x87c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [ebp - 0x858], 0
je 0x418dc8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x868]
call fcn.004f6620
mov al, 1
jmp 0x418ddc
mov eax, dword [ebp - 0x858]
movzx ecx, al
mov eax, dword [ebp - 0x890]
cmp eax, dword [edi + 0x1af8]
mov eax, 1
cmove ecx, eax
mov al, cl
mov dword [ebp - 0x858], eax
mov byte [ebp - 0x895], al
lea eax, [ebp - 0x874]
push eax
call fcn.004cf540
lea edx, [ebp - 0x874]
lea ecx, [ebp - 0x884]
call fcn.00509f60
test eax, eax
jne 0x419084
mov ecx, dword [ebp - 0x874]
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x884], ecx
mov dword [ebp - 0x880], edx
jmp 0x419084