Function at 0x1008cf30
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x8b0]
sub esp, 0x8b0
push 0xfffffffffffffffe
push 0x10183ba0
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x8ac], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x8b8]
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov byte [ebp + 0x294], 0
push 0x207
push edi
lea eax, [ebp + 0x295]
push eax
call fcn.1012e060
add esp, 0xc
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x28]
mov dword [esi + 0xc], ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi]
mov dword [ebp - 0x40], ecx
lea eax, [esi + 0x14]
mov dword [ebp - 0x1c], eax
push eax
lea edx, [ebp + 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [esi + 0x21c]
mov byte [ebx], 0
mov dword [esi + 0x10], edi
mov eax, dword [0x101cc3a4]
cmp eax, edi
jne 0x1008d051
mov ecx, str.ICMP.DLL
call fcn.1005a380
mov dword [0x101cc3a4], eax
cmp eax, edi
jne 0x1008d051
mov byte [ebp + 0x7a8], 0
push 0x103
push edi
lea eax, [ebp + 0x7a9]
push eax
call fcn.1012e060
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [ebp + 0x7a8]
call fcn.100652a0
mov ecx, esi
push ecx
push str.Could_not_load_ICMP.DLL__Reason:__s
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x18
xor edi, edi
jmp 0x1008d36b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x101cc3a8], edi
jne 0x1008d071
push str.IcmpCreateFile
push eax
call esi
mov dword [0x101cc3a8], eax
mov eax, dword [0x101cc3a4]
cmp dword [0x101cc3ac], edi
jne 0x1008d08b
push str.IcmpCloseHandle
push eax
call esi
mov dword [0x101cc3ac], eax
mov eax, dword [0x101cc3a4]
mov ecx, dword [0x101cc3b0]
cmp ecx, edi
jne 0x1008d0a5
push str.IcmpSendEcho
push eax
call esi
mov ecx, eax
mov dword [0x101cc3b0], ecx
cmp dword [0x101cc3a8], edi
je 0x1008d352
cmp dword [0x101cc3ac], edi
je 0x1008d352
cmp ecx, edi
je 0x1008d352
lea edx, [ebp]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov esi, eax
cmp esi, edi
je 0x1008d127
mov byte [ebp + 0x6a4], 0
push 0x103
push edi
lea eax, [ebp + 0x6a5]
push eax
call fcn.1012e060
push 0x104
mov edi, esi
lea esi, [ebp + 0x6a4]
call fcn.100652a0
mov ecx, esi
push ecx
push str.WSAStartup___error:__s_
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x24
xor edi, edi
jmp 0x1008d36b
mov edx, 0x101
cmp word [ebp], dx
ja 0x1008d155
push str.WinSock_version_1.1_not_supported_
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x10
call sub.WS2_32.dll_WSACleanup
jmp 0x1008d36b
lea eax, [ebp + 0x294]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x1008d1e4
lea ecx, [ebp + 0x294]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x1008d1da
mov byte [ebp + 0x49c], 0
push 0x103
push edi
lea edx, [ebp + 0x49d]
push edx
call fcn.1012e060
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x104
mov edi, eax
lea esi, [ebp + 0x49c]
call fcn.100652a0
mov eax, esi
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push str.__s__is_an_invalid_address_or_hostname__Error:__s
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x1c
call sub.WS2_32.dll_WSACleanup
xor edi, edi
jmp 0x1008d36b
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
jmp 0x1008d1ea
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
call dword [0x101cc3a8]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x1008d2f9
cmp esi, 0xffffffff
je 0x1008d2f9
cmp dword [ebp - 0x28], edi
jne 0x1008d14b
mov byte [ebp - 0x30], 0xff
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x40]
push edx
push 0x1c
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edi
push edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push eax
push esi
call dword [0x101cc3b0]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x34], ecx
cmp eax, edi
mov eax, dword [ebp - 0x5c]
je 0x1008d26f
cmp eax, edi
jne 0x1008d26f
movzx edx, byte [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x58]
push eax
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Reply_from__s:_Time_ldms_TTL_d_n
call fcn.10128a81
add esp, 0x10
jmp 0x1008d2d4
cmp eax, 0x2b02
je 0x1008d2c7
mov byte [ebp + 0x190], 0
lea ecx, [eax - 0x2af8]
mov esi, dword [ebp - 0x24]
add esi, 0x21c
cmp ecx, 0x16
ja 0x1008d2a0
mov edx, dword [eax*4 + 0x1018ea78]
push edx
push str.Ping_Failed__Error:__s
jmp 0x1008d2a6
push eax
push str.Ping_Failed__Error:__d
push esi
call fcn.10127dc0
add esp, 0xc
push esi
push 0x10158254
call fcn.10128a81
add esp, 8
call sub.WS2_32.dll_WSACleanup
jmp 0x1008d36b
push str.Request_timed_out._n
call fcn.10128a81
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ecx, edi
je 0x1008d2ea
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, ecx
je 0x1008d14b
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008d206
mov byte [ebp + 0x5a0], 0
push 0x103
push edi
lea ecx, [ebp + 0x5a1]
push ecx
call fcn.1012e060
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [ebp + 0x5a0]
call fcn.100652a0
mov edx, esi
push edx
push str.IcmpCreateFile_Failed__ErrorCode:__s.
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x18
call sub.WS2_32.dll_WSACleanup
xor edi, edi
jmp 0x1008d36b
push str.Failed_to_get_ICMP.DLL_function_addresses_
push ebx
call fcn.10127dc0
push ebx
push 0x10158254
call fcn.10128a81
add esp, 0x10
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x1008d37c
push eax
call dword [0x101cc3ac]
mov dword [ebp - 0x20], edi
mov eax, dword [0x101cc3a4]
cmp eax, edi
je 0x1008d3be
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101cc3a4], edi
mov dword [0x101cc3a8], edi
mov dword [0x101cc3ac], edi
mov dword [0x101cc3b0], edi
jmp 0x1008d3be
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8ac]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x8b0
mov esp, ebp
pop ebp
ret