Function at 0x102a43f
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x1e8], eax
mov esi, dword [0x1077004]
mov ebx, 0x1077004
cmp esi, ebx
je 0x102a49f
test dword [esi + 0x1c], 0x100
je 0x102a49f
cmp byte [esi + 0x19], 5
jb 0x102a49f
push 0x1007300
push 0x3c
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01015bb9
mov esi, dword [0x1077004]
push 0x40
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.msvcrt.dll_memset
and dword [ebp - 0x20c], 0
add esp, 0xc
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x1e0], edi
cmp dword [ebp - 0x1e8], edi
jne 0x102a504
cmp esi, ebx
je 0x102a4fc
test dword [esi + 0x1c], 0x100
je 0x102a4fc
cmp byte [esi + 0x19], 2
jb 0x102a4fc
push 0x1007300
push 0x3d
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01015bb9
push 0x57
pop edi
jmp 0x102a6fa
push dword [ebp - 0x1dc]
call fcn.01020fea
mov dword [ebp - 0x1e4], eax
test eax, eax
jne 0x102a551
cmp dword [ebp - 0x1dc], eax
je 0x102a551
mov eax, dword [0x1077004]
cmp eax, ebx
je 0x102a6a5
test dword [eax + 0x1c], 0x100
je 0x102a6a5
cmp byte [eax + 0x19], 2
jb 0x102a6a5
push 0x1007300
push 0x3e
jmp 0x102a69a
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x102a57a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x102a6e6
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x1e4]
mov dword [ebp - 0x204], 1
mov dword [ebp - 0x200], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x102a5fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [0x1077004]
cmp eax, ebx
je 0x102a6e6
test dword [eax + 0x1c], 0x100
je 0x102a6e6
cmp byte [eax + 0x19], 2
jb 0x102a6e6
push edi
push 0x1007300
push 0x3f
jmp 0x102a6db
mov eax, dword [ebp - 0x1e0]
push 0x41
pop esi
mov dword [ebp - 0x1ec], esi
test eax, eax
je 0x102a6b4
cmp dword [eax + 0x18], 0
je 0x102a6b4
lea ecx, [ebp - 0x1ec]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
test eax, eax
je 0x102a66e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [0x1077004]
cmp eax, ebx
je 0x102a6e6
test dword [eax + 0x1c], 0x100
je 0x102a6e6
cmp byte [eax + 0x19], 2
jb 0x102a6e6
push edi
push 0x1007300
push 0x40
jmp 0x102a6db
lea eax, [ebp - 0x48]
push eax
call fcn.010214f4
test eax, eax
jne 0x102a6aa
mov eax, dword [0x1077004]
cmp eax, ebx
je 0x102a6a5
test dword [eax + 0x1c], 0x100
je 0x102a6a5
cmp byte [eax + 0x19], 2
jb 0x102a6a5
push 0x1007300
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
push 8
pop edi
jmp 0x102a6e6
mov ecx, dword [ebp - 0x1e8]
mov dword [ecx], eax
jmp 0x102a6e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [0x1077004]
cmp eax, ebx
je 0x102a6e6
test dword [eax + 0x1c], 0x100
je 0x102a6e6
cmp byte [eax + 0x19], 2
jb 0x102a6e6
push edi
push 0x1007300
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
cmp dword [ebp - 0x1e4], 0
je 0x102a6fa
push dword [ebp - 0x1e4]
call fcn.0101e9ef
cmp dword [ebp - 0x1e0], 0
je 0x102a70f
push dword [ebp - 0x1e0]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x1dc], 0
jne 0x102a71e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 0xc