Function at 0x496fa0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x154]
sub esp, 0x1d4
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x150], eax
push ebx
mov ebx, dword [ebp + 0x15c]
push esi
push edi
mov edi, dword [ebp + 0x160]
mov dword [ebp - 0x4c], ebx
test ebx, ebx
je 0x497004
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x497004
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
test eax, eax
je 0x497004
push esi
push eax
push 0xffffffffffffffff
xor ecx, ecx
push ebx
push ecx
push 3
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.ICMP.DLL
mov byte [ebp - 0x41], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x49702c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x497025
mov dword [edi], eax
xor al, al
jmp 0x49718c
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push esi
call ebx
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x49705d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x497056
mov dword [edi], ebx
xor al, al
jmp 0x49718c
push str.IcmpCloseHandle
push esi
call ebx
mov dword [ebp - 0x60], eax
test eax, eax
je 0x497041
push str.IcmpSendEcho
push esi
call ebx
mov dword [ebp - 0x64], eax
test eax, eax
je 0x497041
lea edx, [ebp - 0x40]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x49709b
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x497049
mov eax, 0x101
cmp ax, word [ebp - 0x40]
je 0x4970c4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x497056
mov dword [edi], 0x32
xor al, al
jmp 0x49718c
mov ebx, dword [ebp - 0x4c]
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x4970df
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x4970ed
push 2
push 4
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x497110
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x497056
mov dword [edi], 0x57
xor al, al
jmp 0x49718c
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x4c], eax
call dword [ebp - 0x5c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497166
mov eax, dword [ebp - 0x4c]
push 0x1388
push 0x1c
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
mov byte [ebp - 0x58], 0xff
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [eax]
push 0
push ecx
push ebx
call dword [ebp - 0x64]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x50], edx
test eax, eax
je 0x497166
mov byte [ebp - 0x41], 1
jmp 0x49716f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push ebx
call dword [ebp - 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
test edi, edi
je 0x497189
mov eax, dword [ebp - 0x48]
mov dword [edi], eax
mov al, byte [ebp - 0x41]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x150]
xor ecx, ebp
call fcn.00467fff
add ebp, 0x154
mov esp, ebp
pop ebp
ret