Function at 0x410880
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f132b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00461ffe
add esp, 8
lea ecx, [ebp - 0x254]
push ecx
xor ebx, ebx
push 0x202
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4109db
lea edx, [ebp - 0x2f4]
push edx
mov esi, eax
call fcn.00409d60
lea eax, [ebp - 0x2f4]
push 0x517838
push eax
mov byte [ebp - 4], 2
call fcn.0040da40
add esp, 8
push esi
lea ecx, [ebp - 0x2f4]
call fcn.004137b0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x2f4]
call fcn.00408e20
push 2
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004182c0
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x41094c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049acb7
add esp, 4
mov ecx, dword [ebp - 0x2f4]
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x258], eax
mov dword [ebp + edx - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 4
call fcn.00408e40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x2a4]
mov dword [ebp + ecx - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004998ce
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x8c], 0x10
jb 0x410e66
mov eax, dword [ebp - 0xa0]
push eax
jmp 0x410e5e
mov eax, dword [ebp - 0xa0]
mov edi, 0x10
cmp dword [ebp - 0x8c], edi
jae 0x4109f4
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov dword [ebp - 0x25c], esi
cmp esi, ebx
jne 0x410aa3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x2f4]
push ecx
mov esi, eax
call fcn.00409d60
lea edx, [ebp - 0x2f4]
push str.gethostbyname___with_error:
push edx
mov byte [ebp - 4], 5
call fcn.0040da40
add esp, 8
push esi
lea ecx, [ebp - 0x2f4]
call fcn.004137b0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x2f4]
call fcn.00408e20
push 2
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004182c0
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x410a73
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049acb7
add esp, 4
xor ecx, ecx
mov word [ebp - 0x30], cx
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
call fcn.00408480
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x8c], edi
jmp 0x410e55
mov edi, 0xf
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], 7
push 8
push str.Domain__
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00408570
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xbc]
push edx
mov byte [ebp - 4], 8
call fcn.00413480
add esp, 0xc
push str.__resolved_to:__n
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 9
call fcn.00413430
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00409ed0
cmp dword [ebp - 0x38], 0x10
jb 0x410b23
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0049acb7
add esp, 4
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
jb 0x410b44
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0049acb7
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
jb 0x410b6c
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049acb7
add esp, 4
mov esi, dword [esi]
mov eax, esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x410b80
sub eax, ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00408570
mov byte [ebp - 4], 0xb
push 8
push str.Server:
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00408570
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 0xc
call fcn.004134c0
add esp, 0xc
push 0x517834
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov byte [ebp - 4], 0xd
call fcn.00413430
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.00409ed0
mov esi, 0x10
cmp dword [ebp - 0xa8], esi
jb 0x410c0f
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0049acb7
add esp, 4
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
cmp dword [ebp - 0x70], esi
jb 0x410c35
mov eax, dword [ebp - 0x84]
push eax
call fcn.0049acb7
add esp, 4
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x1c], esi
jb 0x410c52
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049acb7
add esp, 4
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x410c70
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0049acb7
add esp, 4
mov esi, dword [ebp - 0x25c]
movzx eax, word [esi + 8]
cmp ax, 2
jne 0x410d7d
push 0x10
push str.IPv4_Addresses:
lea ecx, [ebp - 0x68]
call fcn.00409fc0
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
je 0x410d6c
xor ecx, ecx
jmp 0x410ca8
mov ecx, dword [ebp - 0x258]
mov eax, dword [ecx + eax]
mov eax, dword [eax]
add ecx, 4
push eax
mov dword [ebp - 0x258], ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x410cd0
sub ecx, edi
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00408570
push 0x517830
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x84]
push edx
mov byte [ebp - 4], 0xf
call fcn.00413430
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x10
call fcn.00409ed0
mov esi, 0x10
cmp dword [ebp - 0x70], esi
jb 0x410d28
mov eax, dword [ebp - 0x84]
push eax
call fcn.0049acb7
add esp, 4
mov byte [ebp - 4], 7
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x38], esi
jb 0x410d4d
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0049acb7
add esp, 4
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x258]
mov edi, 0xf
cmp dword [ecx + eax], ebx
jne 0x410ca2
mov esi, edx
push 1
push 0x517834
lea ecx, [ebp - 0x68]
call fcn.00409fc0
jmp 0x410d91
cmp ax, 0x17
jne 0x410d91
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0xa0]
call fcn.00410460
push 9
push str.Aliases:
lea ecx, [ebp - 0x68]
call fcn.00409fc0
mov esi, dword [esi + 4]
mov al, 1
cmp dword [esi], ebx
je 0x410de4
cmp al, bl
jne 0x410dbc
push 2
push 0x517910
lea ecx, [ebp - 0x68]
call fcn.00409fc0
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410dc3
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.00409fc0
add esi, 4
xor al, al
cmp dword [esi], ebx
jne 0x410da9
mov edi, 0xf
push 1
push 0x517834
lea ecx, [ebp - 0x68]
call fcn.00409fc0
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x68]
call fcn.00461f50
add esp, 4
push 3
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.004182c0
add esp, 4
cmp dword [ebp - 0x70], 8
jb 0x410e2a
mov eax, dword [ebp - 0x84]
push eax
call fcn.0049acb7
add esp, 4
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jb 0x410e40
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0049acb7
add esp, 4
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x8c], esi
jb 0x410e66
mov edx, dword [ebp - 0xa0]
push edx
call fcn.0049acb7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret