Function at 0x10019210
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x1003a2dc]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [eax], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], 0x17
mov dword [ecx], 0xffffffff
mov dword [esp + 0x14], edi
jmp 0x10019262
xor edi, edi
push 0x80
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10022be0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + eax*4 + 0x2c]
lea eax, [esp + eax*4 + 0x2c]
add esp, 0xc
cmp esi, 2
jne 0x100192a7
movzx ebx, si
push 0x7f000001
mov word [esp + 0x2c], bx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], 0x10
jmp 0x100192e7
cmp esi, 0x17
jne 0x10019504
mov ecx, dword [0x100339a8]
mov edx, dword [0x100339ac]
mov eax, dword [0x100339b0]
movzx ebx, si
mov dword [esp + 0x30], ecx
mov ecx, dword [0x100339b4]
mov word [esp + 0x28], bx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xc], 0x1c
push 6
push 1
push esi
mov word [esp + 0x36], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x100194a8
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10019324
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100194a8
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1001933e
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100194a8
push 0x80
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.10022be0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1001937b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100194a8
cmp esi, 2
jne 0x1001939e
push 0x7f000001
mov word [esp + 0x2c], bx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], 0x10
jmp 0x100193d7
cmp esi, 0x17
jne 0x100193d7
mov ecx, dword [0x100339a8]
mov edx, dword [0x100339ac]
mov eax, dword [0x100339b0]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x100339b4]
mov word [esp + 0x28], bx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xc], 0x1c
push 6
push 1
push esi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x100193f7
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100194a8
lea esi, [esp + 0x10]
call fcn.100191d0
test eax, eax
je 0x10019410
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100194a8
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x10019452
call fcn.1001e4a1
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
call fcn.1001e4a1
cmp dword [eax], 0x2734
je 0x10019452
call fcn.1001e4a1
cmp dword [eax], 0x2733
jne 0x1001949c
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x1001948f
call fcn.1001e4a1
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
call fcn.1001e4a1
cmp dword [eax], 0x2734
je 0x1001948f
call fcn.1001e4a1
cmp dword [eax], 0x2733
jne 0x1001949c
lea esi, [esp + 0x10]
call fcn.100191d0
test eax, eax
je 0x100194d6
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x10019260
mov eax, 0xd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1001b9a0
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [ecx], ebx
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1001b9a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 3
call fcn.1001b9a0
mov esp, ebp
pop ebp
ret