Function at 0x457b24
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, 0xfffffed0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x4c030c
call fcn.0049d698
mov byte [0x4d3236], 0
xor edx, edx
mov dword [ebp - 0x38], edx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
test esi, esi
je 0x457b6b
cmp dword [ebp + 0x10], 0
je 0x457b6b
mov eax, dword [esi]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 1
mov dword [esi], edx
cmp dword [ebp - 0x3c], 0
jne 0x457c95
cmp dword [ebx + 0xc], 0xffffffff
je 0x457c95
mov dword [ebp - 0x40], 0x10
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x44], ebx
cmp dword [0x4c0168], 0
jne 0x457ba8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0xcc]
push ecx
push eax
push edi
call sub.WSOCK32.dll_getsockname
jmp 0x457bbc
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0xcc]
push ecx
push edi
push dword [ebp - 0x44]
call fcn.00459d12
inc eax
je 0x457c95
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
cmp dword [0x4c0168], 0
jne 0x457be2
push dword [ebp - 0x48]
call sub.WSOCK32.dll_inet_ntoa
jmp 0x457bed
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0045a1fb
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x4d3236
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
mov eax, 0x4d3236
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.0.0.0.0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x457c39
test cl, cl
je 0x457c95
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x457c39
add eax, 2
add edx, 2
test cl, cl
jne 0x457c1d
je 0x457c95
cmp byte [0x4d3236], 0
je 0x457c95
cmp dword [ebp - 0x3c], 0
je 0x457c81
cmp dword [ebp - 0x38], 1
jl 0x457c81
mov eax, dword [ebp + 0x10]
mov edi, 0x4d3236
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, 0x4d3236
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x45822e
mov dword [ebp - 0x50], ebx
cmp dword [0x4c0168], 0
jne 0x457cb0
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
jmp 0x457cc0
push 0
push 2
push 2
push dword [ebp - 0x50]
call fcn.0045aa64
mov edi, eax
cmp edi, 0xffffffff
je 0x457d14
mov word [ebp - 0x24], 0xc
xor ecx, ecx
lea edx, [ebp - 8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
inc dword [ebp - 0x18]
push edx
push 0x4d3004
push ecx
call fcn.0045cfd0
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], eax
add esp, 0xc
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 1]
dec dword [ebp - 0x18]
add ecx, 0x10
add ecx, 4
dec dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov dword [ecx], eax
cmp dword [ebp - 0x3c], 0
jne 0x45804f
cmp edi, 0xffffffff
je 0x45804f
mov dword [ebp - 0x60], 1
mov eax, edi
mov edx, ebx
cmp dword [0x4c0168], 0
jne 0x457d4c
lea ecx, [ebp - 0x60]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
jmp 0x457d5c
lea ecx, [ebp - 0x60]
push ecx
push 0x8004667e
push eax
push edx
call fcn.00459b63
mov word [ebp - 0xcc], 2
mov dword [ebp - 0x64], ebx
cmp dword [0x4c0168], 0
jne 0x457d7a
push 0
call sub.WSOCK32.dll_htons
jmp 0x457d84
push 0
push dword [ebp - 0x64]
call fcn.0045a124
mov word [ebp - 0xca], ax
mov dword [ebp - 0x68], ebx
cmp dword [0x4c0168], 0
jne 0x457da0
push 0
call sub.WSOCK32.dll_htonl
jmp 0x457daa
push 0
push dword [ebp - 0x68]
call fcn.0045a0bc
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
cmp dword [0x4c0168], 0
jne 0x457dd2
push 0x10
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x6c]
call sub.WSOCK32.dll_bind
jmp 0x457de6
push 0x10
lea edx, [ebp - 0xcc]
push edx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004599a1
inc eax
je 0x45804f
mov word [ebp - 0xcc], 2
mov dword [ebp - 0x74], ebx
cmp dword [0x4c0168], 0
jne 0x457e0e
push 0x5ba0
call sub.WSOCK32.dll_htons
jmp 0x457e1b
push 0x5ba0
push dword [ebp - 0x74]
call fcn.0045a124
mov word [ebp - 0xca], ax
mov dword [ebp - 0x78], ebx
cmp dword [0x4c0168], 0
jne 0x457e3a
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x457e47
push str.127.0.0.1
push dword [ebp - 0x78]
call fcn.0045a193
mov dword [ebp - 0xc8], eax
mov eax, edi
mov dword [ebp - 0x7c], ebx
cmp dword [0x4c0168], 0
jne 0x457e6c
push 0x10
lea edx, [ebp - 0xcc]
push edx
push eax
call sub.WSOCK32.dll_connect
jmp 0x457e7e
push 0x10
lea ecx, [ebp - 0xcc]
push ecx
push eax
push dword [ebp - 0x7c]
call fcn.00459ac9
mov eax, edi
mov dword [ebp - 0x8c], ebx
cmp dword [0x4c0168], 0
jne 0x457ea2
push 0
lea edx, [ebp - 0x88]
push 9
push edx
push eax
call sub.WSOCK32.dll_recv
jmp 0x457eb9
push 0
push 9
lea ecx, [ebp - 0x88]
push ecx
push eax
push dword [ebp - 0x8c]
call fcn.0045a3cb
mov dword [ebp - 0x90], 0x10
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
cmp dword [0x4c0168], 0
jne 0x457ef3
lea eax, [ebp - 0x90]
lea edx, [ebp - 0xcc]
push eax
push edx
push dword [ebp - 0x94]
call sub.WSOCK32.dll_getsockname
jmp 0x457f12
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0xcc]
push ecx
push eax
push dword [ebp - 0x94]
push dword [ebp - 0x98]
call fcn.00459d12
inc eax
je 0x45804f
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], ebx
cmp dword [0x4c0168], 0
jne 0x457f41
push dword [ebp - 0x9c]
call sub.WSOCK32.dll_inet_ntoa
jmp 0x457f52
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
call fcn.0045a1fb
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4d3236
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 eax, 0x4d3236
and ecx, 3
mov edx, str.0.0.0.0
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x457fa4
test cl, cl
je 0x45804f
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x457fa4
add eax, 2
add edx, 2
test cl, cl
jne 0x457f84
je 0x45804f
cmp byte [0x4d3236], 0
je 0x45804f
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
lea eax, [ebp - 0xa4]
push eax
push 0x4d3004
call fcn.0045d8d0
add esp, 8
cmp dword [0x4c0168], 0
jne 0x457fed
push dword [ebp - 0xa4]
call sub.WSOCK32.dll_closesocket
jmp 0x457ffe
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
call fcn.00459a3b
cmp dword [ebp - 0x3c], 0
je 0x45803b
cmp dword [ebp - 0x38], 1
jl 0x45803b
mov edx, dword [ebp + 0x10]
xor eax, eax
mov edi, 0x4d3236
mov ecx, dword [edx]
push esi
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 esi
mov dword [esi], 1
mov eax, 0x4d3236
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x45822e
cmp edi, 0xffffffff
je 0x458092
mov dword [ebp - 0xac], edi
lea eax, [ebp - 0xac]
push eax
push 0x4d3004
mov edi, ebx
call fcn.0045d8d0
add esp, 8
cmp dword [0x4c0168], 0
jne 0x458086
push dword [ebp - 0xac]
call sub.WSOCK32.dll_closesocket
jmp 0x458092
push dword [ebp - 0xac]
push edi
call fcn.00459a3b
mov edi, ebx
cmp dword [0x4c0168], 0
jne 0x4580ad
push 0x63
lea edx, [ebp - 0x130]
push edx
call sub.WSOCK32.dll_gethostname
jmp 0x4580bc
push 0x63
lea ecx, [ebp - 0x130]
push ecx
push edi
call fcn.0045ac10
inc eax
jne 0x4580d3
mov eax, 0x4c0b41
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x45822e
mov edi, ebx
cmp dword [0x4c0168], 0
jne 0x4580ec
lea ecx, [ebp - 0x130]
push ecx
call sub.WSOCK32.dll_gethostbyname
jmp 0x4580f9
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.0045ab82
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x458117
mov eax, 0x4c0b41
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x45822e
push 0x10
mov edi, ebx
mov ecx, dword [ebp - 0xb0]
cmp dword [0x4c0168], 0
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0xb4], ecx
jne 0x458144
push dword [ebp - 0xb4]
call sub.WSOCK32.dll_inet_ntoa
jmp 0x458150
push dword [ebp - 0xb4]
push edi
call fcn.0045a1fb
push eax
push 0x4d3236
call fcn.0049b180
add esp, 0xc
mov byte [0x4d3246], 0
push 0x4d3236
call fcn.0049af74
pop ecx
cmp eax, 0xf
jbe 0x458189
mov eax, 0x4c0b41
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x45822e
cmp dword [ebp - 0x3c], 0
je 0x45821f
jmp 0x458205
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx + 0xc]
mov edx, dword [esi]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], ebx
cmp dword [0x4c0168], 0
jne 0x4581c7
push dword [ebp - 0xb8]
call sub.WSOCK32.dll_inet_ntoa
jmp 0x4581d8
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
call fcn.0045a1fb
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 - 0xb0]
mov edx, dword [eax + 0xc]
mov edi, dword [esi]
cmp dword [edx + edi*4], 0
je 0x45821f
cmp edi, dword [ebp - 0x38]
jl 0x458195
mov eax, 0x4d3236
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret