Function at 0x57392e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x998], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x104]
mov ebx, dword [esi]
push 0
push eax
mov dword [ebp - 0x9b4], ebx
call fcn.00583860
mov edi, dword [ebx + 0x3a0]
xor ecx, ecx
mov dword [ebp - 0x9b0], ecx
add esp, 0xc
mov eax, dword [ebx + 0x3a0]
mov dword [ebp - 0x990], ecx
mov dword [ebp - 0x99c], ecx
mov dword [ebp - 0x9a8], ecx
mov byte [ebp - 0x991], 1
mov dword [ebp - 0x9a0], ecx
mov dword [ebp - 0x9b8], 0x17
test eax, eax
je 0x573c0a
push eax
call fcn.00596af0
pop ecx
cmp eax, 1
jbe 0x573c02
push edi
call fcn.00596af0
pop ecx
push 0x41
pop ecx
cmp eax, ecx
jb 0x5739e1
push edi
call fcn.00596af0
pop ecx
mov ecx, eax
lea eax, [ecx + 1]
push 1
push eax
call dword [0x624070]
mov dword [ebp - 0x9a0], eax
pop ecx
pop ecx
test eax, eax
jne 0x573a00
push 0x1b
jmp 0x574174
mov al, byte [edi]
cmp al, 0x5b
jne 0x573a42
lea eax, [edi + 1]
push 0x5d
push edi
mov dword [ebp - 0x99c], eax
call fcn.00583660
mov edi, eax
mov dword [ebp - 0x98c], edi
pop ecx
pop ecx
test edi, edi
je 0x573a50
mov eax, dword [ebp - 0x99c]
mov ecx, edi
sub ecx, eax
push ecx
push eax
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d7e0
add esp, 0xc
jmp 0x573a56
cmp al, 0x3a
jne 0x573ad3
mov dword [ebp - 0x98c], edi
mov edi, dword [ebp - 0x9a0]
mov eax, dword [ebp - 0x98c]
and dword [ebp - 0x98c], 0
xor edx, edx
test eax, eax
je 0x573b42
push 0x3a
push eax
call fcn.00583660
and dword [ebp - 0x98c], 0
xor edx, edx
mov dword [ebp - 0x99c], eax
pop ecx
pop ecx
test eax, eax
je 0x573b42
push 0xa
push edx
lea ecx, [eax + 1]
push ecx
call fcn.0058c878
push eax
call fcn.00567633
push 0x2d
push dword [ebp - 0x99c]
movzx eax, ax
mov dword [ebp - 0x98c], eax
call fcn.00583660
add esp, 0x18
test eax, eax
je 0x573b39
push 0xa
inc eax
push 0
push eax
call fcn.0058c878
push eax
call fcn.00567633
add esp, 0x10
jmp 0x573b3f
push 0x3a
push edi
call fcn.00583660
mov dword [ebp - 0x98c], eax
pop ecx
pop ecx
test eax, eax
je 0x573b25
lea eax, [ebp - 0x988]
push eax
push edi
push 0x17
pop eax
push eax
call fcn.005684b5
add esp, 0xc
cmp eax, 1
jne 0x573b16
push edi
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d6e0
pop ecx
pop ecx
xor eax, eax
jmp 0x573a5c
mov eax, dword [ebp - 0x98c]
sub eax, edi
push eax
push edi
jmp 0x573a31
push edi
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d6e0
pop ecx
pop ecx
jmp 0x573a56
mov eax, dword [ebp - 0x98c]
movzx edx, ax
xor ecx, ecx
movzx eax, dx
cmp word [ebp - 0x98c], dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp word [ebp - 0x98c], dx
mov dword [ebp - 0x9a8], eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
cmovbe ecx, eax
cmp byte [edi], 0
movzx eax, cx
mov dword [ebp - 0x99c], eax
je 0x573bd0
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x4c]
push edi
push dword [esi + 0x88]
push dword [eax + 0x18]
call fcn.0057c1f7
pop ecx
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call fcn.0040cea0
add esp, 0x18
sub eax, 0
je 0x573bc6
sub eax, 1
je 0x574172
sub eax, 1
jne 0x573bd4
lea eax, [ebp - 0x508]
jmp 0x573bc8
mov eax, edi
mov dword [ebp - 0x990], eax
jmp 0x573bda
xor eax, eax
jmp 0x573bc8
mov eax, dword [ebp - 0x990]
mov ecx, dword [ebp - 0x99c]
movzx edx, cx
mov ecx, dword [ebp - 0x9a8]
movzx ecx, cx
mov dword [ebp - 0x99c], edx
mov dword [ebp - 0x9a8], ecx
test eax, eax
jne 0x573ca5
jmp 0x573c0c
mov edi, dword [ebp - 0x9a0]
jmp 0x573c0c
mov edi, ecx
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x573c5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a7b8
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0055eacb
push edi
call dword [0x624064]
add esp, 0x18
jmp 0x574172
mov ax, word [ebp - 0x988]
lea edx, [ebp - 0x980]
cmp ax, word [ebp - 0x9b8]
lea ecx, [ebp - 0x984]
push 0x401
cmove ecx, edx
movzx eax, ax
lea edx, [ebp - 0x508]
push edx
push ecx
push eax
call fcn.0056b03e
lea eax, [ebp - 0x508]
mov byte [ebp - 0x991], 0
add esp, 0x10
mov dword [ebp - 0x990], eax
lea ecx, [ebp - 0x9b0]
push ecx
push 0
push eax
push esi
call fcn.00556e1b
add esp, 0x10
cmp eax, 1
jne 0x573ccc
lea eax, [ebp - 0x9b0]
push eax
push esi
call fcn.005565ff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9b0]
test ecx, ecx
je 0x573cef
mov eax, dword [ecx]
push ecx
push ebx
mov dword [ebp - 0x98c], eax
call fcn.00556f60
mov eax, dword [ebp - 0x98c]
pop ecx
pop ecx
jmp 0x573cf7
xor eax, eax
mov dword [ebp - 0x98c], eax
test eax, eax
jne 0x573d19
mov eax, dword [ebp - 0x990]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.0055eacb
push edi
call dword [0x624064]
jmp 0x57416f
push edi
call dword [0x624064]
and dword [ebp - 0x990], 0
mov ebx, dword [ebp - 0x98c]
pop ecx
lea eax, [ebp - 0x998]
push eax
push 0
push ebx
push esi
call fcn.0055f8b2
mov edi, eax
add esp, 0x10
test edi, edi
je 0x573d5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x990], eax
test ebx, ebx
jne 0x573d2e
jmp 0x573d62
mov eax, dword [ebp - 0x990]
mov dword [ebp - 0x98c], ebx
test ebx, ebx
mov ebx, dword [ebp - 0x9b4]
jne 0x573d8d
push eax
push esi
call fcn.0056a7b8
push eax
push str.socket_failure:__s
push ebx
call fcn.0055eacb
add esp, 0x14
jmp 0x574172
mov eax, dword [ebp - 0x98c]
push dword [eax + 0x10]
push dword [eax + 0x18]
lea eax, [ebp - 0x988]
push eax
call fcn.005839c0
mov eax, dword [ebp - 0x98c]
add esp, 0xc
mov edx, dword [ebp - 0x99c]
mov ecx, dword [ebp - 0x9a8]
cmp dx, cx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x9a4], eax
movzx eax, dx
mov dword [ebp - 0x990], eax
ja 0x574158
push 2
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x9a4]
movzx eax, ax
mov word [ebp - 0x986], ax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x573efb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x991], 0
je 0x573e7c
mov ecx, 0x2741
cmp eax, ecx
jne 0x573e7c
push ecx
push esi
call fcn.0056a7b8
push eax
mov eax, dword [ebp - 0x990]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push ebx
call fcn.0055eb66
add esp, 0x18
mov dword [ebp - 0x9a4], 0x80
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x573e9d
mov eax, dword [ebp - 0x99c]
movzx eax, ax
mov byte [ebp - 0x991], 0
jmp 0x573e8f
cmp eax, 0x2740
je 0x573e88
cmp eax, 0xd
jne 0x573eca
mov eax, dword [ebp - 0x990]
inc eax
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
jmp 0x573dc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a7b8
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0055eacb
push dword [ebp - 0x998]
push esi
call fcn.0055f1d7
add esp, 0x1c
jmp 0x574172
push eax
push esi
call fcn.0056a7b8
push eax
mov eax, dword [ebp - 0x990]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push ebx
call fcn.0055eacb
push dword [ebp - 0x998]
push esi
call fcn.0055f1d7
add esp, 0x20
jmp 0x574172
mov eax, dword [ebp - 0x990]
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
ja 0x574158
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x573e9d
push 1
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x573f66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a7b8
push eax
push str.socket_failure:__s
jmp 0x573eb0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x98c]
call fcn.00556dd9
add esp, 0xc
cmp byte [esi + 0x369], 0
jne 0x573f99
cmp byte [esi + 0x35f], 0
je 0x573f99
mov byte [esi + 0x369], 1
mov edx, dword [ebp - 0x9ac]
push 2
pop eax
cmp edx, eax
je 0x57412c
mov cx, word [ebp - 0x988]
cmp byte [esi + 0x369], 0
jne 0x573fbe
test edx, edx
je 0x574008
cmp edx, 1
jne 0x573fc8
cmp cx, ax
jne 0x574008
movzx eax, cx
dec eax
sub eax, 1
je 0x573fd6
sub eax, 0x15
jne 0x574005
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x9ac]
movzx eax, ax
mov dword [ebp - 0x99c], eax
test edx, edx
je 0x5740b4
cmp edx, 1
je 0x574018
mov cx, word [ebp - 0x988]
push 2
pop eax
inc edx
mov dword [ebp - 0x9ac], edx
cmp edx, eax
jne 0x573fb1
jmp 0x57412c
lea edx, [ebp - 0x908]
lea edi, [ebp - 0x104]
mov cl, byte [edi]
test cl, cl
je 0x574049
cmp cl, 0x2e
movzx eax, cl
mov dword [ebp - 0x9b4], 0x2c
cmove eax, dword [ebp - 0x9b4]
mov byte [edx], al
inc edx
add edi, 1
jne 0x574024
mov eax, dword [ebp - 0x99c]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push 0x5f2cb8
push 0x14
push edx
mov byte [edx], 0
call fcn.00568869
lea eax, [ebp - 0x908]
push eax
push str.PORT
lea eax, [esi + 0x5c0]
push 0x5f239c
push eax
call fcn.0057f85c
mov edi, eax
add esp, 0x24
test edi, edi
je 0x574126
push edi
call fcn.0056a88e
push eax
push str.Failure_sending_PORT_command:__s
push ebx
call fcn.0055eacb
push dword [ebp - 0x998]
push esi
call fcn.0055f1d7
jmp 0x574117
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
push eax
push 2
pop ecx
xor eax, eax
cmp word [ebp - 0x988], cx
setne al
inc eax
push eax
push str.EPRT
lea eax, [esi + 0x5c0]
push str._s__d_s_hu
push eax
call fcn.0057f85c
mov edi, eax
add esp, 0x18
test edi, edi
je 0x574126
push edi
call fcn.0056a88e
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.0055eacb
push dword [ebp - 0x998]
push esi
call fcn.0055f1d7
mov dword [esi + 0x61c], 1
push 0
push esi
call fcn.00571a99
add esp, 0x20
mov eax, edi
jmp 0x574175
mov edx, dword [ebp - 0x9ac]
push esi
mov dword [esi + 0x61c], edx
call fcn.00571aaa
mov eax, dword [ebp - 0x998]
push 0x1c
push esi
mov dword [esi + 0x194], eax
mov byte [esi + 0x362], 1
call fcn.00571a99
add esp, 0xc
jmp 0x574122
push str.bind___failed__we_ran_out_of_ports_
push ebx
call fcn.0055eacb
push dword [ebp - 0x998]
push esi
call fcn.0055f1d7
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret