Function at 0x1010c2c9
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x101c6444]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x320
mov eax, 0x1018e653
call fcn.1015d10b
mov eax, dword [ebp + 0x70]
mov ebx, dword [ebp + 0x74]
and dword [ebp - 0x18], 0
push 0
xor esi, esi
inc esi
push esi
push 2
mov dword [ebp + 0xc], ecx
mov dword [ebp + 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1010c353
push str.socket_create_fail
lea ecx, [ebp - 0x50]
call fcn.100019a0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], esi
call fcn.1010c256
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.1010bf79
push 0x101b8f64
lea eax, [ebp - 0xa8]
push eax
call fcn.101586f6
lea eax, [ebp]
push eax
push 0x8004667e
push edi
mov dword [ebp], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
add ebx, 0x38
push ebx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1010c561
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1010c4f9
and dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010c410
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xa
jge 0x1010c419
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x10], 0xc350
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1010c40d
lea eax, [ebp - 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1010c477
lea eax, [ebp - 0x32c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1010c49b
push esi
call ebx
mov eax, dword [ebp + 0x78]
mov al, byte [eax]
test al, al
jne 0x1010c399
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x48]
push eax
call fcn.1010c256
cmp dword [0x101c7cf4], esi
mov dword [ebp - 4], 5
jne 0x1010c43b
push 0xbb8
call ebx
push edi
call fcn.1010bdbf
lea ecx, [ebp - 0x34]
mov dword [esp], str.socket_connect_timeout
call fcn.100019a0
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.1010bf79
push 0x101b8f64
lea eax, [ebp - 0xc8]
jmp 0x1010c34d
push 0x10
call fcn.101582b6
test eax, eax
pop ecx
je 0x1010c48f
push 0
push edi
mov ecx, eax
call fcn.1010bdd1
jmp 0x1010c491
xor eax, eax
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
jmp 0x1010c580
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.1010c256
cmp dword [0x101c7cf4], esi
mov dword [ebp - 4], 3
jne 0x1010c4bd
push 0xbb8
call ebx
push edi
call fcn.1010bdbf
lea ecx, [ebp - 0x6c]
mov dword [esp], str.socket_connect_exception
call fcn.100019a0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.1010bf79
push 0x101b8f64
lea eax, [ebp - 0x108]
jmp 0x1010c34d
cmp dword [0x101c7cf4], esi
jne 0x1010c50c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x2c]
push eax
call fcn.1010c256
push edi
mov dword [ebp - 4], 7
call fcn.1010bdbf
lea ecx, [ebp - 0x88]
mov dword [esp], str.socket_connect_fail
call fcn.100019a0
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 8
call fcn.1010bf79
push 0x101b8f64
lea eax, [ebp - 0xe8]
jmp 0x1010c34d
push 0x10
call fcn.101582b6
test eax, eax
pop ecx
je 0x1010c579
push 0
push edi
mov ecx, eax
call fcn.1010bdd1
jmp 0x1010c57b
xor eax, eax
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.101586e7
add ebp, 0x68
leave
ret 0x10