Function at 0x1001e510
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100435d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
push edi
push 0x190
mov edi, ecx
lea eax, [ebp - 0x228]
push 0
mov dword [ebp - 0x1c], edi
push eax
mov dword [ebp - 0x18], 1
call fcn.100268f0
add esp, 0xc
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1001e568
or eax, 0xffffffff
jmp 0x1001e595
push str.WSAStartup
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e587
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e595
lea ecx, [ebp - 0x228]
push ecx
push 0x202
call eax
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
test eax, eax
je 0x1001e5ec
push 0
push 0x1004e0a4
mov ecx, edi
call fcn.10008e10
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [0x10056bec], 0xf
mov eax, 0x10056bd8
movups xmmword [ebp - 0x54], xmm0
cmova eax, dword [0x10056bd8]
push str.ws2_32.dll
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1001e631
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e659
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e64a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001e661
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push dword [ebp - 0x10]
call eax
test eax, eax
jne 0x1001e5cc
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001e711
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 1
cmp dword [esi + 4], 2
jne 0x1001e6ff
mov eax, dword [esi + 0x18]
add eax, 4
mov dword [ebp - 0x10], eax
je 0x1001e6ff
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001e6db
push str.inet_ntop
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e6cb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001e6db
push 0x41
lea ecx, [ebp - 0x98]
push ecx
push dword [ebp - 0x10]
push 2
call eax
lea ecx, [ebp - 0x98]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e6e4
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x98]
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.10008e10
mov byte [ebp - 4], 0
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1001e670
mov esi, dword [ebp - 0x14]
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001e741
push str.freeaddrinfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e73e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001e741
push esi
call eax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1001e783
push str.WSACleanup
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001e781
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call eax
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret