Function at 0x10012cc0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006820c
mov eax, dword fs:[0]
push eax
mov eax, 0x4898
call fcn.100459a0
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
push ebx
push 0x1006eb14
lea ecx, [ebp - 0x485c]
mov dword [ebp - 0x48a4], edi
mov dword [ebp - 0x489c], eax
mov dword [ebp - 0x4848], 0xf
mov dword [ebp - 0x484c], ebx
mov byte [ebp - 0x485c], bl
call fcn.10002d90
mov dword [ebp - 4], ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x487c], esi
cmp esi, 0xffffffff
jne 0x10012d51
mov eax, 0x20002739
jmp 0x10013234
lea edx, [edi + 0x60]
push edx
mov ecx, 2
mov dword [ebp - 0x4840], ebx
push 5
mov dword [ebp - 0x483c], ebx
mov dword [ebp - 0x4838], ebx
mov dword [ebp - 0x4834], ebx
mov word [ebp - 0x4840], cx
call fcn.1000dd50
add esp, 8
mov dword [ebp - 0x4860], eax
cmp eax, 0x2fffffff
jne 0x1001321a
push 0x100ad3b8
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x483c], eax
movzx eax, word [0x100ad3c8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 4
lea ecx, [ebp - 0x48a0]
push ecx
push 0x1005
push 0xffff
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov word [ebp - 0x483e], ax
mov dword [ebp - 0x48a0], 0xea60
call esi
cmp eax, 0xffffffff
jne 0x10012df4
mov dword [ebp - 0x4860], 0x2000273d
jmp 0x1001321a
mov eax, dword [ebp - 0x487c]
push 4
lea edx, [ebp - 0x48a0]
push edx
push 0x1006
push 0xffff
push eax
call esi
cmp eax, 0xffffffff
jne 0x10012e24
mov dword [ebp - 0x4860], 0x2000273d
jmp 0x1001321a
mov edx, dword [ebp - 0x487c]
mov esi, 0x10
push esi
lea ecx, [ebp - 0x4840]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10012e51
mov dword [ebp - 0x4860], 0x20002733
jmp 0x1001321a
lea eax, [ebp - 0x4830]
push eax
call fcn.1001edc0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4830]
cmp dword [ebp - 0x481c], esi
jae 0x10012e78
lea eax, [ebp - 0x4830]
mov edx, edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10012e80
mov edx, dword [0x100ad2d8]
mov edi, dword [0x100ad2d4]
push 0x1000
mov dword [ebp - 0x4874], 0x1801c4b6
mov dword [ebp - 0x4868], edx
mov dword [ebp - 0x4890], ebx
mov dword [ebp - 0x488c], ebx
mov dword [ebp - 0x4894], 0x1000
call fcn.10042ee1
add esp, 4
mov dword [ebp - 0x4898], eax
mov word [ebp - 0x4888], bx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4874]
mov edx, dword [ebp - 0x4868]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x48a4]
mov dword [eax + 4], esi
mov dword [eax + 8], edi
push 0x84
mov dword [eax + 0xc], edx
push ecx
add eax, 0x10
push eax
mov dword [ebp - 0x488c], 0x10
call fcn.100434e0
add esp, 0xc
lea edx, [ebp - 0x4880]
push edx
lea eax, [ebp - 0x4898]
push eax
mov ecx, 0x10
mov dword [ebp - 0x488c], 0x94
mov dword [ebp - 0x4880], ebx
call fcn.1001e830
mov edx, dword [ebp - 0x4890]
mov esi, dword [ebp - 0x4898]
mov eax, dword [ebp - 0x4880]
mov edi, dword [ebp - 0x487c]
lea ecx, [edx + esi]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x488c]
sub eax, edx
push eax
push ecx
push edi
call fcn.1001e0d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10012f9d
mov dword [ebp - 0x4860], 0x20002738
mov byte [ebp - 4], 1
lea esi, [ebp - 0x4898]
call fcn.1001e6d0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4830]
call fcn.100011e0
jmp 0x1001321a
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10012fd0
push esi
call fcn.10043e3b
mov dword [ebp - 0x4898], ebx
add esp, 4
mov dword [ebp - 0x4890], ebx
mov dword [ebp - 0x488c], ebx
mov dword [ebp - 0x4894], 0x1000
mov dword [ebp - 0x4898], ebx
push 0x47ff
lea ecx, [ebp - 0x4813]
push ebx
push ecx
mov byte [ebp - 0x4814], bl
call fcn.10043bc0
add esp, 0xc
lea edx, [ebp - 0x4814]
push edx
push edi
call fcn.1001e250
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100131df
cmp esi, 0x2746
je 0x100131df
cmp esi, 0xffffffff
jne 0x10013033
mov dword [ebp - 0x4860], 0x20002738
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4830]
call fcn.100011e0
jmp 0x1001321a
mov eax, 0xc4b6
cmp ax, word [ebp - 0x4814]
je 0x1001305e
mov dword [ebp - 0x4860], 0x20002735
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4830]
call fcn.100011e0
jmp 0x1001321a
cmp byte [ebp - 0x4812], 1
je 0x10013084
mov dword [ebp - 0x4860], 0x20002736
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4830]
call fcn.100011e0
jmp 0x1001321a
cmp byte [ebp - 0x4811], 0x19
je 0x100130aa
mov dword [ebp - 0x4860], 0x20002737
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4830]
call fcn.100011e0
jmp 0x1001321a
push 0x1000
mov dword [ebp - 0x4870], ebx
mov dword [ebp - 0x486c], ebx
mov dword [ebp - 0x4874], 0x1000
call fcn.10042ee1
mov dword [ebp - 0x4878], eax
add esp, 4
mov dword [ebp - 0x4880], eax
mov word [ebp - 0x4868], bx
mov byte [ebp - 4], 8
cmp esi, 0x1000
jbe 0x1001313d
mov edi, esi
cmp esi, 0x1800
jae 0x100130fb
mov edi, 0x1800
push edi
call fcn.10042ee1
mov ecx, dword [ebp - 0x4880]
add esp, 4
push ecx
mov dword [ebp - 0x4884], eax
call fcn.10043e3b
mov eax, dword [ebp - 0x4884]
mov dword [ebp - 0x4878], ebx
add esp, 4
mov dword [ebp - 0x4870], ebx
mov dword [ebp - 0x486c], ebx
mov dword [ebp - 0x4874], edi
mov dword [ebp - 0x4878], eax
push esi
lea edx, [ebp - 0x4814]
push edx
push eax
call fcn.100434e0
mov ecx, dword [ebp - 0x4810]
add esp, 0xc
lea eax, [ebp - 0x4884]
push eax
push ecx
mov ecx, dword [ebp - 0x48a4]
lea edx, [ebp - 0x4878]
push edx
mov edx, 0x10
mov dword [ebp - 0x486c], esi
mov dword [ebp - 0x4884], ebx
call fcn.1001ead0
mov ecx, dword [ebp - 0x4870]
mov eax, dword [ebp - 0x4878]
mov edx, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x489c]
mov dword [ecx], edx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x100131ca
push eax
call fcn.10043e3b
mov dword [ebp - 0x4878], ebx
add esp, 4
mov dword [ebp - 0x4870], ebx
mov dword [ebp - 0x486c], ebx
mov dword [ebp - 0x4874], 0x1000
mov dword [ebp - 0x4878], ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x481c], 0x10
jb 0x10013204
mov edx, dword [ebp - 0x4830]
push edx
jmp 0x100131fc
mov dword [ebp - 0x4860], 0x2000273b
mov byte [ebp - 4], bl
cmp dword [ebp - 0x481c], 0x10
jb 0x10013204
mov eax, dword [ebp - 0x4830]
push eax
call fcn.100434c7
add esp, 4
mov byte [ebp - 0x4830], bl
mov dword [ebp - 0x4820], ebx
mov dword [ebp - 0x481c], 0xf
mov ecx, dword [ebp - 0x487c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x4860]
cmp eax, 0x2fffffff
je 0x1001323c
mov edx, dword [ebp - 0x489c]
mov dword [edx], eax
xor ecx, ecx
cmp eax, 0x2fffffff
sete cl
cmp ecx, ebx
setne byte [ebp - 0x4861]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4848], 0x10
jb 0x1001326e
mov edx, dword [ebp - 0x485c]
push edx
call fcn.100434c7
add esp, 4
mov al, byte [ebp - 0x4861]
mov dword [ebp - 0x4848], 0xf
mov dword [ebp - 0x484c], ebx
mov byte [ebp - 0x485c], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret