Function at 0x43f4d5
Capabilities:
Initialize winsock library
Link many functions at runtime
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x5065d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x113]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x3bc], edi
mov byte [ebp - 0x114], 0
call fcn.004ab5d0
push 0x18e
lea eax, [ebp - 0x3aa]
push esi
push eax
mov word [ebp - 0x3ac], si
call fcn.004ab5d0
add esp, 0x18
mov edx, edi
call fcn.00476b3a
test eax, eax
jne 0x43f5aa
cmp dword [0x5fe0ec], esi
jne 0x43f550
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x3b0], eax
jmp 0x43f556
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x3b0], esi
jne 0x43f5bb
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ICMP.DLL
mov dword [ebp - 0x3b8], esi
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x43f5c5
push esi
push esi
call fcn.0045aa3a
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004ab54e
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
call edi
cmp eax, esi
mov dword [ebp - 0x3b0], eax
jne 0x43f5c5
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aaeb5
leave
ret
mov dword [ebp - 0x3b8], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push dword [ebp - 0x3b0]
call esi
mov ebx, str.IcmpCloseHandle
push ebx
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], eax
call esi
mov edi, str.IcmpSendEcho
push edi
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3c0], eax
call esi
cmp dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3c4], eax
je 0x43f620
cmp dword [ebp - 0x3c0], 0
je 0x43f620
test eax, eax
jne 0x43f6b1
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp dword [ebp - 0x3b8], eax
je 0x43f6e9
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x3b0], eax
je 0x43f5aa
push str.IcmpCreateFile
push eax
call esi
push ebx
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], eax
call esi
push edi
push dword [ebp - 0x3b0]
mov dword [ebp - 0x3c0], eax
call esi
xor ecx, ecx
cmp dword [ebp - 0x3b4], ecx
mov dword [ebp - 0x3c4], eax
je 0x43f5aa
cmp dword [ebp - 0x3c0], ecx
je 0x43f5aa
cmp eax, ecx
je 0x43f5aa
xor eax, eax
cmp dword [ebp - 0x3b8], ecx
setne al
mov dword [0x5fe0ec], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x43f5aa
mov ecx, dword [ebp - 0x3bc]
call fcn.004408fe
test eax, eax
je 0x43f711
mov ecx, dword [ebp - 0x3bc]
call fcn.00440c56
jmp 0x43f7a8
push eax
push eax
call fcn.0045aa3a
push eax
lea eax, [ebp - 0x114]
push str._sICMP.DLL
push eax
call fcn.004ab54e
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
jmp 0x43f63f
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.004ab5d0
push dword [ebp - 0x3bc]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.00476b6c
mov esi, 0x5fdfe8
add esp, 0x10
mov edx, esi
call fcn.00476b3a
test eax, eax
jne 0x43f77c
lea eax, [ebp - 0x21c]
push 0x5fdee0
push eax
call fcn.004ab3bf
test eax, eax
pop ecx
pop ecx
jne 0x43f77c
push esi
mov ecx, edi
lea eax, [ebp - 0x21c]
call fcn.00476b6c
pop ecx
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x43f5aa
mov eax, dword [eax + 0xc]
test eax, eax
je 0x43f5aa
cmp dword [eax], 0
je 0x43f5aa
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x3b8], eax
call dword [ebp - 0x3b4]
cmp eax, 0xffffffff
mov dword [ebp - 0x3b4], eax
je 0x43f5aa
mov esi, 0x80
push esi
lea eax, [ebp - 0x114]
push 0xffffffffffffffaa
push eax
call fcn.004ab5d0
lea ebx, [esi + 0x1c]
push ebx
push 1
call fcn.004aa454
mov edi, eax
add esp, 0x14
test edi, edi
je 0x43f83e
push dword [ebp + 8]
mov eax, dword [ebp - 0x3bc]
push ebx
push edi
push 0
push esi
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x3b8]
mov word [edi + 0xc], si
push dword [ebp - 0x3b4]
call dword [ebp - 0x3c4]
test eax, eax
je 0x43f833
mov ebx, dword [edi + 8]
test ebx, ebx
ja 0x43f827
xor ebx, ebx
inc ebx
mov esi, dword [edi + 4]
call fcn.0043f864
test eax, eax
je 0x43f835
xor ebx, ebx
push edi
call fcn.004aa2a8
pop ecx
jmp 0x43f840
xor ebx, ebx
push dword [ebp - 0x3b4]
call dword [ebp - 0x3c0]
push dword [ebp - 0x3b0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call sub.WSOCK32.dll_WSACleanup
mov eax, ebx
jmp 0x43f5ac