Function at 0x57bf00
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59c9b9
push eax
mov al, byte [0x8d3c10]
mov edx, dword [str.__HPWsock__]
mov dword fs:[0], esp
sub esp, 0x18c
test al, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x57bf4f
mov bl, al
mov edi, edx
or bl, 1
or ecx, 0xffffffff
xor eax, eax
mov byte [0x8d3c10], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x8d3c14], ecx
jmp 0x57bf55
mov ecx, dword [0x8d3c14]
mov esi, dword [esp + 0x1b0]
cmp esi, ecx
jle 0x57c778
mov edi, dword [esp + 0x1ac]
push ecx
push edx
push edi
call fcn.00588640
add esp, 0xc
test eax, eax
jne 0x57c778
mov eax, dword [0x8d3c14]
sub esi, eax
cmp esi, 0x4f
jl 0x57bf8f
mov esi, 0x4f
mov byte [esp + 0x7c], 0
add eax, edi
push esi
push eax
lea eax, [esp + 0x84]
xor ebx, ebx
push eax
mov dword [esp + 0x1b0], ebx
call fcn.00587dd0
mov edx, dword [str.TCPReq]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov byte [esp + esi + 0x88], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x8c]
push edx
push ecx
call fcn.00588640
add esp, 0x18
test eax, eax
jne 0x57c28e
mov ecx, ebp
call fcn.00585d20
cmp eax, 4
jne 0x57c75c
push ebx
mov word [esp + 0x40], 2
call dword [sym.imp.WSOCK32.dll_htonl]
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [ebp + 0x938]
mov word [esp + 0x3e], ax
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov edx, dword [esp + 0x3e]
mov esi, eax
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
cmp esi, ebx
mov word [esp + 0x3e], ax
jne 0x57c75c
mov edi, dword [str.TCPReq]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x918]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x7c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x57c086
test cl, cl
je 0x57c082
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x57c086
add eax, 2
add esi, 2
test cl, cl
jne 0x57c062
xor eax, eax
jmp 0x57c08b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x57c17d
mov esi, 2
mov ecx, dword [str.TCPDeny]
mov edx, dword [str.__HPWsock__]
push esi
push ecx
push edx
lea eax, [esp + 0x128]
push str._s_s_d
push eax
mov byte [esp + 0x130], 0
call fcn.0058815f
add esp, 0x14
cmp esi, 2
mov dword [esp + 0x10], eax
jne 0x57c12c
lea eax, [ebp + 0x918]
lea ecx, [esp + 0xcc]
push eax
push str.___s_
push ecx
call fcn.0058815f
mov edx, eax
lea edi, [esp + 0xd8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea ebx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov esi, dword [edx + 4]
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x4e]
mov edi, dword [edx + 8]
push ecx
mov ebx, dword [edx + 0xc]
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x4e], ax
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push 0x10
push eax
push 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
push ecx
jmp 0x57c272
push ebx
push ebx
mov ecx, ebp
call fcn.00585220
test al, al
jne 0x57c19b
mov al, byte [ebp + 0x5d]
neg al
sbb eax, eax
add eax, 4
mov esi, eax
jmp 0x57c098
mov esi, dword [esp + 0x1b4]
mov byte [esp + 0x11c], 0
mov ax, word [esi + 2]
mov cl, byte [esi + 7]
mov dl, byte [esi + 6]
mov byte [esp + 0x1c], cl
mov cl, byte [esi + 5]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x34], dl
mov dl, byte [esi + 4]
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x34]
and eax, 0xff
mov byte [esp + 0x3c], dl
mov edx, dword [esp + 0x38]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4a]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [str.TCPInfo]
and ecx, 0xffff
push eax
mov eax, dword [str.__HPWsock__]
push ecx
push edx
push eax
lea ecx, [esp + 0x13c]
push str._s_s__d__d._d._d._d:_d
push ecx
call fcn.0058815f
mov edx, dword [esi]
mov ebx, dword [esi + 4]
add esp, 0x28
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x22]
mov edi, eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WSOCK32.dll_htons]
lea ecx, [esp + 0x4c]
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push 0x10
push ecx
push 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
push edi
mov eax, dword [ebp + 0x93c]
lea edx, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
mov al, 1
jmp 0x57c77a
mov edx, dword [str.TCPInfo]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x80]
push edx
push ecx
call fcn.00588640
add esp, 0xc
test eax, eax
jne 0x57c661
mov ecx, ebp
call fcn.00585d20
cmp eax, 1
jne 0x57c75c
mov esi, dword [sym.imp.WSOCK32.dll_htonl]
push ebx
call esi
mov edi, dword [sym.imp.WSOCK32.dll_htons]
push ebx
call edi
push ebx
mov word [esp + 0x40], 2
call esi
push ebx
mov dword [esp + 0x44], eax
call edi
mov edx, dword [esp + 0x1b4]
mov word [esp + 0x3e], ax
mov edi, dword [str.TCPInfo]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x28], eax
xor eax, eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
lea eax, [esp + ecx + 0x80]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
push edx
push ecx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x28]
push edx
push ecx
push str.__d__d._d._d._d:_d
push eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], ebx
call fcn.005887ed
mov dl, byte [esp + 0x7c]
mov al, byte [esp + 0x58]
mov cl, byte [esp + 0x54]
mov byte [esp + 0x60], dl
mov dl, byte [esp + 0x50]
mov byte [esp + 0x61], al
mov ax, word [esp + 0x3c]
mov byte [esp + 0x62], cl
mov cx, word [esp + 0x38]
add esp, 0x20
mov byte [esp + 0x43], dl
mov word [esp + 0x3e], ax
mov word [esp + 0x22], cx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
mov ecx, ebp
call fcn.0057bee0
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x57c3af
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dx, word [ebp + 0x910]
lea ecx, [edx + ecx + 0x32]
push ecx
push eax
mov ecx, ebp
call fcn.0057c7b0
mov eax, dword [esp + 0x22]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x68], edx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x66], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x4c]
push 0x10
push edx
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x57c465
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x57c64c
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x32
mov dword [esp + 0x14], eax
jg 0x57c64c
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, ebp
call fcn.0057c8e0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57c3af
push 2
mov ecx, ebp
call fcn.00585cd0
mov eax, dword [ebp + 0xbec]
lea esi, [ebp + 0xbcc]
test eax, eax
je 0x57c49a
mov edx, dword [esi + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57c494
cmp eax, 0x80
jne 0x57c49a
mov dword [esp + 0x14], esi
jmp 0x57c4a2
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
xor esi, esi
lea edi, [eax + 0x10]
mov ecx, edi
call fcn.004ba780
mov eax, dword [edi + 8]
test eax, eax
je 0x57c4cf
mov esi, dword [eax]
push 1
push esi
mov ecx, edi
mov byte [eax + 8], 0
call fcn.005817a0
test al, al
jne 0x57c4cf
xor esi, esi
test esi, esi
mov ebx, esi
jne 0x57c518
push 4
call fcn.00587c03
add esp, 4
mov dword [esp + 0x78], eax
test eax, eax
mov byte [esp + 0x1a4], 1
je 0x57c4f9
push esi
mov ecx, eax
call fcn.005830c0
jmp 0x57c4fb
xor eax, eax
mov ecx, dword [esp + 0x14]
push 0
push eax
mov byte [esp + 0x1ac], 0
call fcn.00583530
mov ecx, edi
call fcn.00582eb0
mov ebx, eax
mov eax, dword [ebp + 0xbec]
test eax, eax
je 0x57c529
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.004979c0
mov dword [esp + 0x60], 0x10
call fcn.0057b6a0
lea edx, [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x10]
push edx
push edi
push eax
call dword [sym.imp.WSOCK32.dll_getpeername]
mov ecx, dword [esp + 0x1b4]
push ecx
mov ecx, ebx
call fcn.0057b680
mov eax, dword [ebp + 0x640]
lea esi, [ebp + 0x624]
test eax, eax
je 0x57c58e
mov edx, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57c58a
cmp eax, 0x80
jne 0x57c58e
mov ecx, esi
jmp 0x57c590
xor ecx, ecx
call fcn.005870e0
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x57c5a3
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x58]
push 0xffffffffffffffff
push 2
mov esi, eax
push 1
push 6
push 0
mov ecx, esi
call fcn.00586800
lea ecx, [esp + 0x3c]
push 0x10
push ecx
mov ecx, esi
call fcn.00586a00
mov ecx, dword [esi + 0x48]
push edi
call fcn.0057afa0
push esi
mov ecx, ebp
call fcn.00584c70
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x58]
push 0xffffffffffffffff
push 2
mov esi, eax
push 1
push 3
push 0
mov ecx, esi
call fcn.00586800
mov ecx, ebp
call fcn.00585020
test eax, eax
jne 0x57c609
mov byte [esp + 0x64], al
jmp 0x57c61e
push 0x10
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00587dd0
add esp, 0xc
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x64]
push 0x11
push ecx
mov ecx, esi
call fcn.00586a00
mov ecx, dword [esi + 0x48]
push edi
call fcn.0057afa0
push esi
mov ecx, ebp
call fcn.00584c70
push ebx
mov ecx, ebp
call fcn.0057dc10
mov al, 1
jmp 0x57c77a
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, ebp
call fcn.0057c8e0
mov al, 1
jmp 0x57c77a
mov edx, dword [str.TCPDeny]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x7c]
push ecx
push edx
push eax
call fcn.00588640
add esp, 0xc
test eax, eax
jne 0x57c75c
mov ecx, ebp
call fcn.00585d20
cmp eax, 1
jne 0x57c75c
push ebx
mov ecx, ebp
call fcn.00585cd0
mov edi, dword [str.TCPDeny]
lea ecx, [esp + 0xcc]
push ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xd0], 0
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
push str._d___
lea eax, [esp + ecx + 0x88]
push eax
call fcn.005887ed
mov eax, dword [ebp + 0x618]
add ebp, 0x5c4
add esp, 0x10
cmp eax, ebx
je 0x57c70a
mov ecx, dword [ebp + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x57c706
cmp eax, 0x80
jne 0x57c70a
mov ecx, ebp
jmp 0x57c70c
xor ecx, ecx
mov edx, dword [esp + 0x18]
lea eax, [edx - 2]
cmp eax, 3
ja case.default.0x57c718
jmp dword [eax*4 + 0x57c798]
mov dword [ecx], 2
lea edx, [ecx + 4]
lea ecx, [esp + 0xcc]
lea eax, [esp + 0xcc]
sub edx, ecx
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x57c738
jmp 0x57c74e
mov dword [ecx], 3
mov byte [ecx + 4], 0
mov eax, dword [ebp + 0x54]
cmp eax, ebx
je 0x57c75c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
jmp 0x57c77a
mov dword [ecx], 4
jmp 0x57c74a
mov dword [ecx], 5
jmp 0x57c74a
mov dword [ecx], 1
jmp 0x57c74a
xor al, al
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x198
ret 0xc