Function at 0x457d7c
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get hostname
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
xor eax, eax
xor edx, edx
mov byte [0x4d14ba], 0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test esi, esi
je 0x457db9
cmp dword [ebp + 0x10], 0
je 0x457db9
mov ecx, dword [esi]
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov dword [esi], eax
cmp dword [ebp - 8], 0
jne 0x457ed2
cmp dword [ebx + 8], 0xffffffff
je 0x457ed2
mov dword [ebp - 0xc], 0x10
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], ebx
cmp dword [0x4bef08], 0
jne 0x457df3
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x80]
push edx
push ecx
push edi
call sub.WSOCK32.dll_getsockname
jmp 0x457e05
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x80]
push edx
push edi
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00459d54
inc eax
je 0x457ed2
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x457e28
mov edx, dword [ebp - 0x14]
push edx
call sub.WSOCK32.dll_inet_ntoa
jmp 0x457e32
mov ecx, dword [ebp - 0x14]
push ecx
push edi
call fcn.0045a224
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4d14ba
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.0.0.0.0
and ecx, 3
mov eax, 0x4d14ba
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x457e80
test cl, cl
je 0x457ed2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x457e80
add eax, 2
add edx, 2
test cl, cl
jne 0x457e64
je 0x457ed2
cmp byte [0x4d14ba], 0
je 0x457ed2
cmp dword [ebp - 8], 0
je 0x457ec8
cmp dword [ebp - 4], 1
jl 0x457ec8
mov eax, dword [ebp + 0x10]
mov edi, 0x4d14ba
mov edx, dword [eax]
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 1
mov eax, 0x4d14ba
jmp 0x458324
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x457eea
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
jmp 0x457ef6
push 0
push 2
push 2
push edi
call fcn.0045aa74
cmp dword [ebp - 8], 0
mov edi, eax
jne 0x4581b6
cmp edi, 0xffffffff
je 0x4581b6
mov dword [ebp - 0x18], 1
mov eax, edi
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x457f30
lea ecx, [ebp - 0x18]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
jmp 0x457f40
lea ecx, [ebp - 0x18]
push ecx
push 0x8004667e
push eax
push edx
call fcn.00459bb0
mov word [ebp - 0x80], 2
mov dword [ebp - 0x1c], ebx
cmp dword [0x4bef08], 0
jne 0x457f5b
push 0
call sub.WSOCK32.dll_htons
jmp 0x457f66
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045a15c
mov word [ebp - 0x7e], ax
mov dword [ebp - 0x20], ebx
cmp dword [0x4bef08], 0
jne 0x457f7f
push 0
call sub.WSOCK32.dll_htonl
jmp 0x457f8a
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.0045a0fc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
cmp dword [0x4bef08], 0
jne 0x457fad
push 0x10
lea eax, [ebp - 0x80]
push eax
mov edx, dword [ebp - 0x24]
push edx
call sub.WSOCK32.dll_bind
jmp 0x457fc0
push 0x10
lea ecx, [ebp - 0x80]
push ecx
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.004599f8
inc eax
je 0x4581b6
mov word [ebp - 0x80], 2
mov dword [ebp - 0x2c], ebx
cmp dword [0x4bef08], 0
jne 0x457fe5
push 0x5ba0
call sub.WSOCK32.dll_htons
jmp 0x457ff3
push 0x5ba0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0045a15c
mov word [ebp - 0x7e], ax
mov dword [ebp - 0x30], ebx
cmp dword [0x4bef08], 0
jne 0x45800f
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x45801d
push str.127.0.0.1
mov eax, dword [ebp - 0x30]
push eax
call fcn.0045a1c4
mov dword [ebp - 0x7c], eax
mov eax, edi
mov dword [ebp - 0x34], ebx
cmp dword [0x4bef08], 0
jne 0x45803c
push 0x10
lea edx, [ebp - 0x80]
push edx
push eax
call sub.WSOCK32.dll_connect
jmp 0x45804c
push 0x10
lea ecx, [ebp - 0x80]
push ecx
push eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00459b18
mov eax, edi
mov dword [ebp - 0x44], ebx
cmp dword [0x4bef08], 0
jne 0x45806a
push 0
lea edx, [ebp - 0x40]
push 9
push edx
push eax
call sub.WSOCK32.dll_recv
jmp 0x45807c
push 0
push 9
lea ecx, [ebp - 0x40]
push ecx
push eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.0045a3dc
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
cmp dword [0x4bef08], 0
jne 0x4580a5
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x80]
push edx
push ecx
mov eax, dword [ebp - 0x4c]
push eax
call sub.WSOCK32.dll_getsockname
jmp 0x4580ba
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x80]
push edx
push ecx
mov eax, dword [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0x50]
push edx
call fcn.00459d54
inc eax
je 0x4581b6
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
cmp dword [0x4bef08], 0
jne 0x4580de
mov eax, dword [ebp - 0x54]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x4580eb
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0045a224
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4d14ba
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.0.0.0.0
and ecx, 3
mov eax, 0x4d14ba
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x45813d
test cl, cl
je 0x4581b6
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x45813d
add eax, 2
add edx, 2
test cl, cl
jne 0x45811d
je 0x4581b6
cmp byte [0x4d14ba], 0
je 0x4581b6
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
cmp dword [0x4bef08], 0
jne 0x458162
mov eax, dword [ebp - 0x5c]
push eax
call sub.WSOCK32.dll_closesocket
jmp 0x45816f
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00459a90
cmp dword [ebp - 8], 0
je 0x4581ac
cmp dword [ebp - 4], 1
jl 0x4581ac
mov eax, dword [ebp + 0x10]
mov edi, 0x4d14ba
mov edx, dword [eax]
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 1
mov eax, 0x4d14ba
jmp 0x458324
cmp edi, 0xffffffff
je 0x4581d7
mov eax, edi
mov edx, ebx
cmp dword [0x4bef08], 0
jne 0x4581d0
push eax
call sub.WSOCK32.dll_closesocket
jmp 0x4581d7
push eax
push edx
call fcn.00459a90
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x4581f2
push 0x63
lea ecx, [ebp - 0xe4]
push ecx
call sub.WSOCK32.dll_gethostname
jmp 0x458201
push 0x63
lea eax, [ebp - 0xe4]
push eax
push edi
call fcn.0045ac10
inc eax
jne 0x45820e
mov eax, 0x4bf28f
jmp 0x458324
mov edi, ebx
cmp dword [0x4bef08], 0
jne 0x458227
lea edx, [ebp - 0xe4]
push edx
call sub.WSOCK32.dll_gethostbyname
jmp 0x458234
lea ecx, [ebp - 0xe4]
push ecx
push edi
call fcn.0045ab88
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x458245
mov eax, 0x4bf28f
jmp 0x458324
push 0x10
mov edi, ebx
mov edx, dword [ebp - 0x64]
cmp dword [0x4bef08], 0
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
jne 0x45826a
mov ecx, dword [ebp - 0x68]
push ecx
call sub.WSOCK32.dll_inet_ntoa
jmp 0x458274
mov eax, dword [ebp - 0x68]
push eax
push edi
call fcn.0045a224
push eax
push 0x4d14ba
call fcn.004989f4
add esp, 0xc
mov byte [0x4d14ca], 0
push 0x4d14ba
call fcn.004987e8
pop ecx
cmp eax, 0xf
jbe 0x4582a3
mov eax, 0x4bf28f
jmp 0x458324
cmp dword [ebp - 8], 0
je 0x45831f
jmp 0x45830c
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0xc]
mov eax, dword [esi]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ebx
cmp dword [0x4bef08], 0
jne 0x4582d2
mov eax, dword [ebp - 0x6c]
push eax
call sub.WSOCK32.dll_inet_ntoa
jmp 0x4582df
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0045a224
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + edi*4]
push esi
push edi
mov edi, eax
xor eax, eax
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
inc dword [esi]
mov eax, dword [ebp - 0x64]
mov edx, dword [eax + 0xc]
mov edi, dword [esi]
cmp dword [edx + edi*4], 0
je 0x45831f
cmp edi, dword [ebp - 4]
jl 0x4582ab
mov eax, 0x4d14ba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret