Function at 0x50b14a
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x5e4
mov eax, 0x6a48dd
call fcn.0064d018
mov ebx, ecx
mov dword [ebp - 0x56c], ebx
lea eax, [ebp - 0x548]
push eax
push 0x203
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x50b1a3
push str._Winsock_initialization_failed
push 0xa
mov edx, 0x7c1
mov ecx, 0x2485083
call fcn.004f4c26
movzx eax, si
or eax, 0x80070000
test esi, esi
pop ecx
pop ecx
cmovle eax, esi
jmp 0x50b46c
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0050af63
xor esi, esi
lea ecx, [ebp - 0x54c]
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push esi
push esi
push eax
mov dword [ebp - 0x54c], esi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov edi, eax
mov dword [ebp - 0x550], edi
test edi, edi
je 0x50b218
lea eax, [ebp - 0x550]
mov ecx, 0x2485084
push eax
lea eax, [ebp - 0x28]
push eax
push str.GetAddrInfoW_failed_on_server__s_with_error__d
push 0xa
call fcn.004fe085
lea ecx, [ebp - 0x28]
call fcn.0040d475
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x50b46c
mov eax, dword [ebp - 0x54c]
mov edi, esi
mov dword [ebp - 0x554], esi
test eax, eax
je 0x50b238
mov eax, dword [eax + 0x1c]
inc edi
test eax, eax
jne 0x50b22a
mov dword [ebp - 0x554], edi
xor ecx, ecx
mov eax, edi
push 0x1c
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006707e1
mov ebx, eax
mov dword [ebp - 0x564], ebx
pop ecx
test ebx, ebx
je 0x50b472
mov dword [ebp - 0x570], ebx
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0x55c], ecx
mov dword [ebp - 0x558], eax
test eax, eax
je 0x50b33c
lea edx, [ebx + 0x15]
mov dword [ebp - 0x550], edx
cmp ecx, edi
jge 0x50b396
cmp dword [eax + 4], 2
push 0x17
jne 0x50b2f2
mov eax, dword [eax + 0x18]
lea edi, [edx - 0xd]
movzx ecx, word [eax + 2]
lea ebx, [eax + 4]
mov dword [edx - 0x11], esi
mov esi, 0x6ca988
mov word [edx - 0x13], cx
mov ecx, ebx
pop eax
mov word [edx - 0x15], ax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov al, byte [ebx]
xor esi, esi
mov byte [edx - 1], al
mov al, byte [ebx + 1]
mov byte [edx], al
mov al, byte [ebx + 2]
mov byte [edx + 1], al
mov al, byte [ebx + 3]
mov byte [edx + 2], al
add edx, 3
mov dword [edx], esi
call fcn.0050ad48
mov eax, dword [ebp - 0x558]
mov edx, dword [ebp - 0x550]
jmp 0x50b309
pop ecx
cmp dword [eax + 4], ecx
jne 0x50b477
mov esi, dword [eax + 0x18]
lea edi, [edx - 0x15]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov ecx, dword [ebp - 0x55c]
add edx, 0x1c
mov eax, dword [eax + 0x1c]
inc ecx
mov edi, dword [ebp - 0x554]
mov dword [ebp - 0x558], eax
mov dword [ebp - 0x55c], ecx
mov dword [ebp - 0x550], edx
test eax, eax
jne 0x50b28e
mov ebx, dword [ebp - 0x564]
lea eax, [ebp - 0x568]
mov dword [ebp - 0x560], esi
push eax
lea eax, [ebp - 0x560]
mov dword [ebp - 0x568], esi
push eax
push esi
push edi
push ebx
push esi
push esi
call dword [sym.imp.IPHLPAPI.DLL_CreateSortedAddressPairs]
test eax, eax
je 0x50b3ad
push str.CreateSortedAddressPairs_failed
push 0xa
mov edx, 0x7c1
mov ecx, 0x2485085
call fcn.004f4c26
push ebx
call fcn.0064e37d
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0040d475
mov eax, 0x80004005
jmp 0x50b46c
push str.Different_sizes_walking_address_list
push 0x58
lea ecx, [ebp - 0x3b8]
call fcn.005007a7
jmp 0x50b490
push 0x80
lea eax, [ebp - 0x5f0]
push esi
push eax
call fcn.0064f890
mov edx, dword [ebp - 0x560]
add esp, 0xc
mov ecx, dword [edx + 4]
cmp word [ecx + 8], si
jne 0x50b409
cmp word [ecx + 0xa], si
jne 0x50b409
cmp word [ecx + 0xc], si
jne 0x50b409
cmp word [ecx + 0xe], si
jne 0x50b409
cmp word [ecx + 0x10], si
jne 0x50b409
mov esi, 0xffff
cmp word [ecx + 0x12], si
jne 0x50b409
push 2
pop eax
mov word [ebp - 0x5f0], ax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x5ec], eax
jmp 0x50b429
mov eax, dword [ecx + 0x18]
lea edi, [ebp - 0x5e8]
push 0x17
pop esi
mov word [ebp - 0x5f0], si
lea esi, [ecx + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x5d8], eax
mov ax, word [ecx + 2]
lea esi, [ebp - 0x5f0]
mov edi, dword [ebp - 0x56c]
push 0x20
pop ecx
mov word [ebp - 0x5ee], ax
add edi, 0x30
rep movsd dword es:[edi], dword [esi]
push edx
call dword [sym.imp.IPHLPAPI.DLL_FreeMibTable]
push dword [ebp - 0x54c]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
push ebx
call fcn.0064e37d
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040d475
xor eax, eax
call fcn.0064cfc2
ret
call fcn.004f732c
push str.Unsupported_IP_Family
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58
lea ecx, [ebp - 0x3b8]
call fcn.004fdee7
push 0x811494
lea eax, [ebp - 0x3b8]
push eax
call fcn.0064f293
int3