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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, 0x100322b1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10002438
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100031a0
push ebx
call fcn.100175ec
add esp, 4
mov dword [ebp - 8], esp
mov eax, dword [0x10032d82]
test eax, eax
je 0x100031af
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100031d6
push 0x2f
push 0x4023cfd
push 6
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x10003262
push 0x10032dae
push 4
mov eax, 2
call fcn.10017a40
add esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov ebx, dword [0x10032dae]
mov dword [ebp - 0xc], ebx
call fcn.10001838
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10003230
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0xc]
call fcn.100175f2
add esp, 8
mov dword [0x10032dae], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x10]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
jmp 0x100033b5
cmp dword [ebp + 0xc], 1
jne 0x100033b5
mov ebx, dword [0x10032dae]
call fcn.10001d04
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x10003362
mov ebx, dword [0x10032dae]
call fcn.10001838
mov eax, 0
cmp eax, ecx
jl 0x100032af
push 0x144
push 0x4023cfd
push 1
call fcn.100175fe
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 0x10032dae
push 4
mov eax, 2
call fcn.10017a40
add esp, 8
mov ebx, dword [0x10032dae]
mov dword [ebp - 0xc], ebx
call fcn.10001838
mov dword [ebp - 0x10], ecx
sub ecx, 0
jle 0x1000335b
cmp ecx, 1
jle 0x100032f9
mov ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jle 0x1000335b
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 8]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10003327
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
add edi, 8
mov eax, dword [ebp - 8]
shl eax, 2
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0
sub ecx, dword [ebp - 8]
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0xc]
push edi
push dword [ebp - 0xc]
call fcn.100175f2
add esp, 8
mov dword [0x10032dae], eax
mov eax, dword [ebp - 8]
jmp 0x1000335d
xor eax, eax
jmp 0x100033ae
mov dword [ebp - 8], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100033a9
push 0x1c6
push 0x4023cfd
push 6
call fcn.100175fe
add esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], esp
mov eax, dword [0x10032d82]
test eax, eax
je 0x100033c4
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100033eb
push 0x246
push 0x4023cfd
push 6
call fcn.100175fe
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100033f3
mov esp, ebp
pop ebp
ret 8