Function at 0x1003cad0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f250
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 1
push eax
call fcn.1003c870
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x264]
test al, al
je 0x1003ce04
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x1003ce04
lea ecx, [ebp - 0x26c]
mov byte [ebp - 0x251], 0
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x26c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1003cd84
xorps xmm0, xmm0
mov eax, 2
push 0x1bb
movlpd qword [ebp - 0x30], xmm0
mov word [ebp - 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0xf
mov word [ebp - 0x36], ax
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1003cd84
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x270], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cc00
sub ecx, dword [ebp - 0x270]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003200
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push 0x10
push eax
push dword [ebp - 0x258]
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x27c]
push ecx
push 0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x27c], 1
push ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x278], 0
push ecx
push eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1003cce7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1003ccd6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cccc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cec2
push ecx
push edx
call fcn.100666c9
add esp, 8
push dword [ebp - 0x258]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1003cd99
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0x10
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp - 0x44]
test eax, eax
je 0x1003cd13
test edx, edx
je 0x1003cd4c
mov eax, esi
cmp eax, edi
je 0x1003cd4c
nop dword [eax]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x1003cd2b
cmp ecx, edx
je 0x1003cd36
add eax, 0x8c
cmp eax, edi
jne 0x1003cd20
jmp 0x1003cd4c
mov ecx, dword [ebp - 0x268]
push eax
add ecx, 4
call fcn.1003ced0
mov byte [ebp - 0x251], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1003cd84
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cd7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cec2
push ecx
push edx
call fcn.100666c9
add esp, 8
push dword [ebp - 0x258]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [ebp - 0x251], 0
jne 0x1003ce0b
mov ecx, edi
mov eax, 0xea0ea0eb
sub ecx, dword [ebp - 0x264]
xor esi, esi
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1003cdd6
mov eax, dword [ebp - 0x264]
sub eax, 0xffffff80
cmp dword [eax - 4], 0
je 0x1003cdcc
cmp dword [eax], 0
jne 0x1003cdde
inc esi
add eax, 0x8c
cmp esi, ecx
jb 0x1003cdc1
mov esi, dword [ebp - 0x264]
jmp 0x1003ce0b
mov ecx, dword [ebp - 0x268]
imul eax, esi, 0x8c
mov esi, dword [ebp - 0x264]
lea ecx, [ecx + 4]
add eax, esi
push eax
call fcn.1003ced0
mov byte [ebp - 0x251], 1
jmp 0x1003ce0b
mov byte [ebp - 0x251], 0
test esi, esi
je 0x1003ce6f
cmp esi, edi
je 0x1003ce24
mov ecx, esi
call fcn.1003bc40
add esi, 0x8c
cmp esi, edi
jne 0x1003ce13
mov ecx, dword [ebp - 0x25c]
mov eax, 0xea0ea0eb
mov esi, dword [ebp - 0x264]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x8c
mov eax, esi
cmp ecx, 0x1000
jb 0x1003ce65
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cec7
push ecx
push esi
call fcn.100666c9
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1003ce9f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ce95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cec7
push ecx
push edx
call fcn.100666c9
add esp, 8
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0x18
call fcn.10070c0f
call fcn.10070c0f
int3