Function at 0x4761d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x2c8
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x244], eax
push ebx
push esi
mov esi, dword [ebp + 0x250]
push edi
mov edi, dword [ebp + 0x254]
lea eax, [ebp - 0x68]
push eax
push 0x102
mov dword [ebp - 0x70], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x476229
test edi, edi
je 0x476216
mov dword [edi], eax
push eax
push str._SendIcmpEcho____WSAStartup_...__has_failed____error___d
call fcn.00469110
add esp, 8
jmp 0x47655e
lea ecx, [ebp + 0x128]
push ecx
push 0
lea edx, [ebp - 0x74]
push edx
push esi
call fcn.00475a90
add esp, 0x10
test eax, eax
je 0x476252
test edi, edi
je 0x476558
mov dword [edi], eax
jmp 0x476558
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Iphlpapi.dll
mov byte [ebp - 0x69], 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x476295
push eax
push str._SendIcmpEcho____LoadLibrary__Iphlpapi.dll___has_failed____error:__ld
call fcn.00469110
add esp, 8
push str.Icmp.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x4762cb
push str._SendIcmpEcho____LoadLibrary__Icmp.dll___has_succed
mov byte [ebp - 0x69], 1
call fcn.00469110
add esp, 4
push str.IcmpCreateFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x476323
cmp byte [ebp - 0x69], al
je 0x4762ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4762b8
mov dword [edi], eax
push eax
push str._SendIcmpEcho____GetProcAddress_hModule___IcmpCreateFile___has_failed____error:__ld
call fcn.00469110
add esp, 8
jmp 0x476551
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4762d7
mov dword [edi], eax
push eax
push str._SendIcmpEcho____LoadLibrary__Icmp.dll___has_failed____error:__ld
call fcn.00469110
add esp, 8
jmp 0x476558
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Icmp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4762cb
push str._SendIcmpEcho____LoadLibrary__Icmp.dll___has_succed
call fcn.00469110
add esp, 4
push str.IcmpCreateFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x476330
jmp 0x4762ac
push str._SendIcmpEcho____LoadLibrary__Iphlpapi.dll___has_succed
call fcn.00469110
add esp, 4
push str.IcmpCloseHandle
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x476362
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x47634f
mov dword [edi], eax
push eax
push str._SendIcmpEcho____GetProcAddress_hModule___IcmpCloseHandle___has_failed____error:__ld
call fcn.00469110
add esp, 8
jmp 0x476551
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x47638b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x476378
mov dword [edi], eax
push eax
push str._SendIcmpEcho____IcmpCreatefile___has_failed__unable_to_open_handle____error___d
call fcn.00469110
add esp, 8
jmp 0x476551
mov ecx, 7
mov esi, str.icmp_send_echo_dacodac_coco
lea edi, [ebp + 0x228]
mov eax, 0x40
rep movsd dword es:[edi], dword [esi]
call fcn.0044a220
mov esi, esp
test esi, esi
je 0x4763bb
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x80], esi
jne 0x4763e1
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4763c8
mov dword [eax], 0xe
push str._SendIcmpEcho____unable_to_allocate_memory
call fcn.00469110
push 0
call fcn.0042ef80
add esp, 8
jmp 0x476551
push str.IcmpSendEcho
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x476419
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x476400
mov dword [ecx], eax
push eax
push str._SendIcmpEcho____GetProcAddress_hModule___IcmpSendEcho___has_failed____error:__ld
call fcn.00469110
push esi
call fcn.0042ef80
add esp, 0xc
jmp 0x476551
mov edx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
push 0x3e8
push 0x38
push esi
push 0
push 0x1c
lea ecx, [ebp + 0x228]
push ecx
push edx
push edi
call eax
mov dword [ebp - 0x74], eax
test eax, eax
je 0x47650f
mov edi, dword [esi]
lea eax, [ebp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
lea ecx, [ebp + 0x128]
push ecx
push eax
call fcn.0040a2d0
push eax
push str._SendIcmpEcho____IcmpSendEcho_...__sent_icmp_message_to__s
call fcn.00469110
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
je 0x4764a2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push edi
push eax
call fcn.0040a2d0
mov edx, dword [ebp - 0x74]
push eax
push edx
push str._SendIcmpEcho____received__d_icmp_message_response_from__s
call fcn.00469110
mov esi, dword [ebp - 0x80]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push str._SendIcmpEcho____status___d__round_trip_time___d_ms
call fcn.00469110
mov edx, dword [ebp - 0x78]
add esp, 0x18
push edx
call dword [ebp - 0x7c]
test eax, eax
jne 0x4764e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SendIcmpEcho____IcmpCloseHandle_...__has_failed____error___d
call fcn.00469110
add esp, 8
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4764f5
mov dword [eax], 0
push esi
call fcn.0042ef80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
jmp 0x476560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x47651e
mov dword [ecx], eax
push eax
push str._SendIcmpEcho____IcmpSendEcho_...__has_failed____error___d
call fcn.00469110
add esp, 8
push edi
call dword [ebp - 0x7c]
test eax, eax
jne 0x476548
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SendIcmpEcho____IcmpCloseHandle_...__has_failed____error___d
call fcn.00469110
add esp, 8
push esi
call fcn.0042ef80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.00447645
add ebp, 0x248
mov esp, ebp
pop ebp
ret