Function at 0x4104ed
Capabilities:
Initialize winsock library
Send icmp echo request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1a8]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov word [ebp - 0x1ac], ax
movsx ecx, word [ebp - 0x1ac]
test ecx, ecx
je 0x41053e
mov eax, dword [ebp - 0x18]
jmp 0x4108f0
mov dword [ebp - 0x10], 0x5dc
call sub.ICMP.dll_IcmpCreateFile
mov dword [0x426898], eax
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [0x426890], eax
push 0x40
push 0x59
push 0x42684c
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5c
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x426848], eax
push 0x5c
push 0
mov ecx, dword [0x426848]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [0x426848]
mov dword [edx + 0x10], 0x426a34
mov eax, dword [0x426848]
mov word [eax + 0xc], 0x40
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5c
mov edx, dword [0x426848]
push edx
push 0
push 0x40
push 0x42684c
mov eax, dword [0x426890]
push eax
mov ecx, dword [0x426898]
push ecx
call sub.ICMP.dll_IcmpSendEcho
mov dword [0x42689c], eax
mov edx, dword [0x426898]
push edx
call sub.ICMP.dll_IcmpCloseHandle
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x42689c], 0
jne 0x41061a
mov eax, dword [ebp - 0x18]
jmp 0x4108f0
push 0x1a7c
call fcn.0040cff0
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1b4], 0
je 0x410667
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1b4]
call fcn.00410180
mov dword [ebp - 0x1d0], eax
jmp 0x410671
mov dword [ebp - 0x1d0], 0
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x18], eax
cmp dword [0x426aa0], 0
jne 0x41074e
lea ecx, [ebp - 0x1a8]
push ecx
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov word [0x426a30], ax
movsx edx, word [0x426a30]
test edx, edx
je 0x410744
movsx eax, word [0x426a30]
cmp eax, 0x276b
jne 0x4106de
push str.Drivers_Not_Loaded__
mov ecx, dword [ebp - 0x18]
call fcn.0040c710
jmp 0x4106eb
push str.Start_up_Error
mov ecx, dword [ebp - 0x18]
call fcn.0040c710
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1b8], edx
cmp dword [ebp - 0x1b8], 0
je 0x410724
push 1
mov eax, dword [ebp - 0x1b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b8]
call dword [edx + 4]
mov dword [ebp - 0x1d4], eax
jmp 0x41072e
mov dword [ebp - 0x1d4], 0
push 2
push str.Internal_error:_could_not_initialize_WinSock
call fcn.0040c1b8
add esp, 8
xor eax, eax
jmp 0x4108f0
mov dword [0x426aa0], 1
mov ax, word [0x426aa4]
add ax, 1
mov word [0x426aa4], ax
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
test ecx, ecx
je 0x410802
mov edx, dword [ebp - 0x18]
add edx, 0x1a70
push edx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x1a78]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410949
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1a70], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1a70], 0xffffffff
jne 0x410802
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], ecx
cmp dword [ebp - 0x1c0], 0
je 0x4107e2
push 1
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c0]
call dword [eax + 4]
mov dword [ebp - 0x1d8], eax
jmp 0x4107ec
mov dword [ebp - 0x1d8], 0
push 6
push str.Internal_error:_Failed_to_listen
call fcn.0040c1b8
add esp, 8
xor eax, eax
jmp 0x4108f0
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
test ecx, ecx
jne 0x4108ed
movsx edx, word [ebp + 0x1c]
cmp edx, 0xffffffff
je 0x41085b
movsx eax, word [ebp + 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1a70], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x1a70
push edx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x1a78]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410d0b
add esp, 0x14
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1a70], eax
jmp 0x41088b
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x1a70
push edx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x1a78]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00410d0b
add esp, 0x14
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1a70], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1a70], 0xffffffff
jne 0x4108ed
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c8], ecx
cmp dword [ebp - 0x1c8], 0
je 0x4108d0
push 1
mov edx, dword [ebp - 0x1c8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c8]
call dword [eax + 4]
mov dword [ebp - 0x1dc], eax
jmp 0x4108da
mov dword [ebp - 0x1dc], 0
push 5
push str.Internal_error:_Failed_to_connect
call fcn.0040c1b8
add esp, 8
xor eax, eax
jmp 0x4108f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret