Function at 0x4583d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458412
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x220], eax
call fcn.0046dda1
add esp, 4
mov dword [ebp - 0x224], 0
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x458467
push str.Activation___Failed_to_initiate_Winsock_DLL_to_obtain_IP_family_type
push eax
mov ecx, edi
call fcn.00458350
jmp 0x458735
mov ecx, 0x20
lea eax, [ebp - 0x244]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x458472
xor eax, eax
mov dword [ebp - 0x40], ecx
push eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x40]
push 0x4d99b4
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004143d0
push 1
push 2
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00456820
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4584fc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4584f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458753
push edx
push ecx
call fcn.0046d73e
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push 0x4d99b4
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004143d0
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 3
call fcn.00459ea0
push dword [ebp - 0x29c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2d8]
push eax
call fcn.00459890
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x45859c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458592
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458753
push edx
push ecx
call fcn.0046d73e
add esp, 8
push 0xffffffffffffffff
push dword [ebx]
xor eax, eax
mov dword [ebp - 0x18], 0
push dword [ebp - 0x220]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 0x14], 7
call fcn.00478df2
add esp, 0x14
test eax, eax
jne 0x4586b4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x244]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x458651
mov eax, dword [ebp - 0x21c]
cmp dword [eax + 4], 0x17
jne 0x4586a7
push str._is_using_IPV6
push esi
lea eax, [ebp - 0x2dc]
push str.The_Host:
push eax
call fcn.0043a840
add esp, 8
push eax
call fcn.004560c0
add esp, 8
push eax
call fcn.0043a840
add esp, 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x2dc]
push eax
call fcn.0045ac00
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x458644
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00458390
lea ecx, [ebp - 0x58]
jmp 0x45869c
push esi
lea eax, [ebp - 0x2dc]
push str.Failed_to_determine_IP_family_type_for_Host:
push eax
call fcn.0043a840
add esp, 8
push eax
call fcn.004560c0
add esp, 8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2dc]
push eax
call fcn.0045ac00
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x45868a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00458350
lea ecx, [ebp - 0x70]
call fcn.00414570
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4586f9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4586f9
lea eax, [ebp - 0x2dc]
push str.Failed_to_convert_to_char_string
push eax
call fcn.0043a840
add esp, 8
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x2dc]
push eax
call fcn.0045ac00
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x4586e6
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00458390
lea ecx, [ebp - 0x88]
call fcn.00414570
test esi, esi
je 0x458724
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458702
mov eax, esi
sub ecx, edx
je 0x45871b
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x458710
push esi
call fcn.0046ddaa
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x2dc]
call fcn.00457190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret 4
call fcn.00479239
int3