Function at 0x4223ea
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x20
call fcn.0043e388
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.0043e388
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x46e811
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.0043e388
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x46ec44
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422497
push 0x1d
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4224c0
push 0x30
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
push 0
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4224ee
push 0x43
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
push 0x46f9a9
xor eax, eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42251c
push 0x9f
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x422533
mov eax, 0
jmp 0x42298f
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa04
call fcn.00441770
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 4]
push eax
push 0x190
call fcn.0043e388
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422614
push 0x12b
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0043ec80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x422661
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x42265f
imul eax, dword [edi]
jmp 0x422654
mov ecx, eax
cmp ecx, 0x101
jle 0x42266e
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0043ec80
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4226ac
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4226aa
imul eax, dword [edi]
jmp 0x42269f
mov ecx, eax
cmp ecx, 0x81
jle 0x4226b9
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x422741
mov dword [ebp - 0x10], esp
push 0x46f9a9
xor eax, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422737
push 0x15a
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov eax, 0xffffffff
jmp 0x42298f
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 6
push 1
push 2
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422788
push 0x1d1
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4228c7
mov dword [ebp - 0x10], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x46f9ad
push 0x10
mov eax, 0x46ec14
test eax, eax
je 0x4227c1
add eax, 8
push eax
push 0xc8000006
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4227f0
push 0x26a
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x42286a
mov dword [ebp - 0x10], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x46f9b1
push 0x10
mov eax, 0x46ec2c
test eax, eax
je 0x422829
add eax, 8
push eax
push 0xc8000006
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422858
push 0x378
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x42286a
jmp 0x422928
mov dword [ebp - 0x10], esp
push 2
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_shutdown]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42289b
push 0x487
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4228c7
push 0x4aa
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4228f0
push 0x4c6
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
push 0x46f9a9
xor eax, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42291e
push 0x4d9
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov eax, 0xffffffff
jmp 0x42298f
mov dword [ebp - 0x10], esp
push 2
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_shutdown]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422959
push 0x526
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422985
push 0x549
push 0x402e62e
push 6
call fcn.0043e37c
add esp, 0xc
mov eax, 0
jmp 0x42298f
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
call fcn.0043e38e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret