Function at 0x1010d77d
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 [0x101cd7b4]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x320
mov eax, 0x10190738
call fcn.1015e3cb
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 0x1010d807
push str.socket_create_fail
lea ecx, [ebp - 0x50]
call fcn.10006620
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], esi
call fcn.1010d70a
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.1010d42d
push 0x101bfcf8
lea eax, [ebp - 0xa8]
push eax
call fcn.10159cdd
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 0x1010da15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1010d9ad
and dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010d8c4
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xa
jge 0x1010d8cd
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 0x1010d8c1
lea eax, [ebp - 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1010d92b
lea eax, [ebp - 0x32c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1010d94f
push esi
call ebx
mov eax, dword [ebp + 0x78]
mov al, byte [eax]
test al, al
jne 0x1010d84d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x48]
push eax
call fcn.1010d70a
cmp dword [0x101cef0c], esi
mov dword [ebp - 4], 5
jne 0x1010d8ef
push 0xbb8
call ebx
push edi
call fcn.1010d273
lea ecx, [ebp - 0x34]
mov dword [esp], str.socket_connect_timeout
call fcn.10006620
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.1010d42d
push 0x101bfcf8
lea eax, [ebp - 0xc8]
jmp 0x1010d801
push 0x10
call fcn.1015989d
test eax, eax
pop ecx
je 0x1010d943
push 0
push edi
mov ecx, eax
call fcn.1010d285
jmp 0x1010d945
xor eax, eax
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
jmp 0x1010da34
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.1010d70a
cmp dword [0x101cef0c], esi
mov dword [ebp - 4], 3
jne 0x1010d971
push 0xbb8
call ebx
push edi
call fcn.1010d273
lea ecx, [ebp - 0x6c]
mov dword [esp], str.socket_connect_exception
call fcn.10006620
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.1010d42d
push 0x101bfcf8
lea eax, [ebp - 0x108]
jmp 0x1010d801
cmp dword [0x101cef0c], esi
jne 0x1010d9c0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x2c]
push eax
call fcn.1010d70a
push edi
mov dword [ebp - 4], 7
call fcn.1010d273
lea ecx, [ebp - 0x88]
mov dword [esp], str.socket_connect_fail
call fcn.10006620
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 8
call fcn.1010d42d
push 0x101bfcf8
lea eax, [ebp - 0xe8]
jmp 0x1010d801
push 0x10
call fcn.1015989d
test eax, eax
pop ecx
je 0x1010da2d
push 0
push edi
mov ecx, eax
call fcn.1010d285
jmp 0x1010da2f
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.10159cce
add ebp, 0x68
leave
ret 0x10