Function at 0x44f850
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
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
push edi
lea edi, [ebp - 0xc4]
mov ecx, 0x31
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4b965c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x30], 1
mov esi, esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x44f8ab
or eax, 0xffffffff
jmp 0x44fd0b
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x18], cx
mov esi, esp
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x14], eax
xor edx, edx
mov word [ebp - 0x16], dx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + eax], 0xffffffff
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + eax], 0xffffffff
mov dword [ebp - 0x48], 1
mov esi, esp
push 4
lea edx, [ebp - 0x48]
push edx
push 0xfffffffffffffffb
push 0xffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004a09b1
cmp eax, 0xffffffff
jne 0x44f936
jmp 0x44fcb9
mov esi, esp
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.004a09b1
cmp eax, 0xffffffff
jne 0x44f959
jmp 0x44fcb9
mov esi, esp
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.004a09b1
cmp eax, 0xffffffff
je 0x44f97f
cmp dword [ebp - 0x28], 0x10
jge 0x44f984
jmp 0x44fcb9
mov esi, esp
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.004a09b1
cmp eax, 0xffffffff
jne 0x44f9a3
jmp 0x44fcb9
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004a09b1
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + eax], 0xffffffff
jne 0x44f9dc
jmp 0x44fcb9
mov esi, esp
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.004a09b1
cmp eax, 0xffffffff
jne 0x44fa0a
jmp 0x44fcb9
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00493850
add esp, 8
test eax, eax
jge 0x44fa21
jmp 0x44fcb9
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0x3c], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, 0x300
mov word [ebp + eax - 0x38], cx
mov edx, 8
imul eax, edx, 0
xor ecx, ecx
mov word [ebp + eax - 0x36], cx
push 0
push 0x3e8
push 1
lea edx, [ebp - 0x3c]
push edx
call fcn.0044d4b0
add esp, 0x10
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_accept]
cmp esi, esp
call fcn.004a09b1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0x14]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + eax], 0xffffffff
jne 0x44faa6
jmp 0x44fcb9
lea edx, [ebp - 0xac]
push edx
call fcn.00419fa0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x54], edx
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x88]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], 9
push 9
lea eax, [ebp - 0x74]
push eax
push 0
call fcn.004508e0
add esp, 0xc
test eax, eax
je 0x44fb04
jmp 0x44fcb9
mov esi, esp
push 0
push 9
lea ecx, [ebp - 0x74]
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004a09b1
mov eax, 4
shl eax, 0
mov ecx, 8
imul edx, ecx, 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax]
mov dword [ebp + edx - 0x3c], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, 0x300
mov word [ebp + edx - 0x38], ax
mov ecx, 8
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x36], ax
push 0
push 0x3e8
push 1
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0044d4b0
add esp, 0x10
mov esi, esp
push 0
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xffffffff
jne 0x44fc50
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x9c], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00419fa0
add esp, 0xfffffff4
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
call fcn.0041a0f0
add esp, 0x20
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
jl 0x44fc40
jg 0x44fc3e
cmp dword [ebp - 0xc4], 0xea60
jbe 0x44fc40
jmp 0x44fcb9
cmp dword [ebp - 0x9c], 0x2733
jne 0x44fc4e
jmp 0x44fc95
jmp 0x44fcb9
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x98]
mov dword [ebp - 0x94], ecx
je 0x44fc78
mov edx, dword [ebp - 0x90]
add edx, dword [ebp - 0x98]
mov dword [ebp - 0x90], edx
jmp 0x44fc95
push 9
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x74]
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x44fc93
jmp 0x44fcb9
jmp 0x44fca2
mov edx, 1
test edx, edx
jne 0x44fb2a
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004a09b1
xor eax, eax
jmp 0x44fd0b
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004a09b1
mov edx, 4
imul eax, edx, 0
mov esi, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004a09b1
mov eax, 4
shl eax, 0
mov esi, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004a09b1
or eax, 0xffffffff
push edx
mov ecx, ebp
push eax
lea edx, [0x44fd3c]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
add esp, 0xc4
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret