Function at 0x441549
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x461fa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x7a4]
push eax
mov esi, ecx
xor ebx, ebx
push 0x203
mov dword [ebp - 0x7c8], esi
mov dword [ebp - 0x7a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x7a8], eax
test eax, eax
je 0x4415b3
push 0x41beec
push 1
call fcn.00435adb
mov eax, dword [ebp - 0x7a8]
test eax, eax
jle 0x4417f1
and eax, 0xffff
or eax, 0x80070000
jmp 0x4417f1
add esi, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x7ac], ebx
jb 0x4415c6
mov eax, dword [esi]
jmp 0x4415c8
mov eax, esi
lea ecx, [ebp - 0x7ac]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov dword [ebp - 0x7a8], eax
test eax, eax
je 0x4415f8
lea eax, [ebp - 0x7a8]
push eax
push esi
push 0x41bf30
push 1
call fcn.00441b2c
jmp 0x441596
mov eax, dword [ebp - 0x7ac]
mov edx, ebx
mov dword [ebp - 0x7bc], ebx
test eax, eax
je 0x441618
mov eax, dword [eax + 0x1c]
inc edx
test eax, eax
jne 0x44160a
mov dword [ebp - 0x7bc], edx
push edi
xor ecx, ecx
push 0x1c
mov eax, edx
pop esi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445f1c
pop ecx
mov ecx, eax
mov dword [ebp - 0x7b4], ecx
test ecx, ecx
jne 0x441675
push 0x41bf88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58
lea ecx, [ebp - 0x614]
call fcn.00441b95
mov esi, eax
push 0x457f20
lea eax, [ebp - 0x30c]
mov ecx, 0xc2
lea edi, [ebp - 0x30c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00444df7
mov eax, dword [ebp - 0x7ac]
push 2
mov dword [ebp - 0x7c0], eax
pop edi
test eax, eax
je 0x4416e7
mov edx, ecx
mov dword [ebp - 0x7b8], edx
cmp dword [eax + 4], edi
jne 0x4416b6
mov ecx, dword [eax + 0x18]
movzx eax, word [ecx + 2]
push eax
push ebx
lea eax, [ecx + 4]
push eax
push edx
call fcn.004419af
mov edx, dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x7c0]
jmp 0x4416cc
cmp dword [eax + 4], 0x17
jne 0x44172a
mov esi, dword [eax + 0x18]
push 7
pop ecx
push 0x1c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
pop esi
push 2
pop edi
mov eax, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 0x7b8], edx
mov dword [ebp - 0x7c0], eax
test eax, eax
jne 0x441690
mov ecx, dword [ebp - 0x7b4]
lea eax, [ebp - 0x7c4]
push eax
lea eax, [ebp - 0x7b0]
push eax
push ebx
push dword [ebp - 0x7bc]
mov dword [ebp - 0x7b0], ebx
push ecx
push ebx
push ebx
mov dword [ebp - 0x7c4], ebx
call sub.IPHLPAPI.DLL_CreateSortedAddressPairs
test eax, eax
je 0x441755
push 0x41c008
push 1
call fcn.00424c29
mov eax, 0x80004005
jmp 0x4417f0
push dword [ebp - 0x7b4]
call fcn.00445f27
mov dword [esp], 0x41bfdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58
lea ecx, [ebp - 0x614]
call fcn.00434740
jmp 0x441655
mov esi, dword [ebp - 0x7b0]
push 0x7e
lea eax, [ebp - 0x846]
push ebx
push eax
call fcn.004456bd
mov ebx, dword [esi + 4]
add esp, 0xc
lea esi, [ebx + 8]
push esi
call fcn.00441848
test al, al
je 0x44178f
mov eax, dword [ebx + 0x14]
mov word [ebp - 0x848], di
mov dword [ebp - 0x844], eax
jmp 0x4417ac
push 0x17
pop eax
mov word [ebp - 0x848], ax
mov eax, dword [ebx + 0x18]
lea edi, [ebp - 0x840]
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 - 0x830], eax
mov ax, word [ebx + 2]
mov edi, dword [ebp - 0x7c8]
push 0x20
pop ecx
push dword [ebp - 0x7b0]
mov word [ebp - 0x846], ax
add edi, 0x28
lea esi, [ebp - 0x848]
rep movsd dword es:[edi], dword [esi]
call sub.IPHLPAPI.DLL_FreeMibTable
push dword [ebp - 0x7ac]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
push dword [ebp - 0x7b4]
call fcn.00445f27
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00444de9
leave
ret