Function at 0x5737ae
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.005836e0
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 0x573a8a
push eax
call fcn.00596970
pop ecx
cmp eax, 1
jbe 0x573a82
push edi
call fcn.00596970
pop ecx
push 0x41
pop ecx
cmp eax, ecx
jb 0x573861
push edi
call fcn.00596970
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 0x573880
push 0x1b
jmp 0x573ff4
mov al, byte [edi]
cmp al, 0x5b
jne 0x5738c2
lea eax, [edi + 1]
push 0x5d
push edi
mov dword [ebp - 0x99c], eax
call fcn.005834e0
mov edi, eax
mov dword [ebp - 0x98c], edi
pop ecx
pop ecx
test edi, edi
je 0x5738d0
mov eax, dword [ebp - 0x99c]
mov ecx, edi
sub ecx, eax
push ecx
push eax
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d660
add esp, 0xc
jmp 0x5738d6
cmp al, 0x3a
jne 0x573953
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 0x5739c2
push 0x3a
push eax
call fcn.005834e0
and dword [ebp - 0x98c], 0
xor edx, edx
mov dword [ebp - 0x99c], eax
pop ecx
pop ecx
test eax, eax
je 0x5739c2
push 0xa
push edx
lea ecx, [eax + 1]
push ecx
call fcn.0058c6f8
push eax
call fcn.005674b3
push 0x2d
push dword [ebp - 0x99c]
movzx eax, ax
mov dword [ebp - 0x98c], eax
call fcn.005834e0
add esp, 0x18
test eax, eax
je 0x5739b9
push 0xa
inc eax
push 0
push eax
call fcn.0058c6f8
push eax
call fcn.005674b3
add esp, 0x10
jmp 0x5739bf
push 0x3a
push edi
call fcn.005834e0
mov dword [ebp - 0x98c], eax
pop ecx
pop ecx
test eax, eax
je 0x5739a5
lea eax, [ebp - 0x988]
push eax
push edi
push 0x17
pop eax
push eax
call fcn.00568335
add esp, 0xc
cmp eax, 1
jne 0x573996
push edi
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d560
pop ecx
pop ecx
xor eax, eax
jmp 0x5738dc
mov eax, dword [ebp - 0x98c]
sub eax, edi
push eax
push edi
jmp 0x5738b1
push edi
mov edi, dword [ebp - 0x9a0]
push edi
call fcn.0059d560
pop ecx
pop ecx
jmp 0x5738d6
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 0x573a50
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.0057c074
pop ecx
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call fcn.0040cd30
add esp, 0x18
sub eax, 0
je 0x573a46
sub eax, 1
je 0x573ff2
sub eax, 1
jne 0x573a54
lea eax, [ebp - 0x508]
jmp 0x573a48
mov eax, edi
mov dword [ebp - 0x990], eax
jmp 0x573a5a
xor eax, eax
jmp 0x573a48
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 0x573b25
jmp 0x573a8c
mov edi, dword [ebp - 0x9a0]
jmp 0x573a8c
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 0x573adc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a638
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0055e94b
push edi
call dword [0x624064]
add esp, 0x18
jmp 0x573ff2
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.0056aebe
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.00556c9b
add esp, 0x10
cmp eax, 1
jne 0x573b4c
lea eax, [ebp - 0x9b0]
push eax
push esi
call fcn.0055647f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9b0]
test ecx, ecx
je 0x573b6f
mov eax, dword [ecx]
push ecx
push ebx
mov dword [ebp - 0x98c], eax
call fcn.00556de0
mov eax, dword [ebp - 0x98c]
pop ecx
pop ecx
jmp 0x573b77
xor eax, eax
mov dword [ebp - 0x98c], eax
test eax, eax
jne 0x573b99
mov eax, dword [ebp - 0x990]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.0055e94b
push edi
call dword [0x624064]
jmp 0x573fef
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.0055f732
mov edi, eax
add esp, 0x10
test edi, edi
je 0x573bdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x990], eax
test ebx, ebx
jne 0x573bae
jmp 0x573be2
mov eax, dword [ebp - 0x990]
mov dword [ebp - 0x98c], ebx
test ebx, ebx
mov ebx, dword [ebp - 0x9b4]
jne 0x573c0d
push eax
push esi
call fcn.0056a638
push eax
push str.socket_failure:__s
push ebx
call fcn.0055e94b
add esp, 0x14
jmp 0x573ff2
mov eax, dword [ebp - 0x98c]
push dword [eax + 0x10]
push dword [eax + 0x18]
lea eax, [ebp - 0x988]
push eax
call fcn.00583840
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 0x573fd8
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 0x573d7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x991], 0
je 0x573cfc
mov ecx, 0x2741
cmp eax, ecx
jne 0x573cfc
push ecx
push esi
call fcn.0056a638
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.0055e9e6
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 0x573d1d
mov eax, dword [ebp - 0x99c]
movzx eax, ax
mov byte [ebp - 0x991], 0
jmp 0x573d0f
cmp eax, 0x2740
je 0x573d08
cmp eax, 0xd
jne 0x573d4a
mov eax, dword [ebp - 0x990]
inc eax
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
jmp 0x573c49
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a638
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0055e94b
push dword [ebp - 0x998]
push esi
call fcn.0055f057
add esp, 0x1c
jmp 0x573ff2
push eax
push esi
call fcn.0056a638
push eax
mov eax, dword [ebp - 0x990]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push ebx
call fcn.0055e94b
push dword [ebp - 0x998]
push esi
call fcn.0055f057
add esp, 0x20
jmp 0x573ff2
mov eax, dword [ebp - 0x990]
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
ja 0x573fd8
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 0x573d1d
push 1
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x573de6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.0056a638
push eax
push str.socket_failure:__s
jmp 0x573d30
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x98c]
call fcn.00556c59
add esp, 0xc
cmp byte [esi + 0x369], 0
jne 0x573e19
cmp byte [esi + 0x35f], 0
je 0x573e19
mov byte [esi + 0x369], 1
mov edx, dword [ebp - 0x9ac]
push 2
pop eax
cmp edx, eax
je 0x573fac
mov cx, word [ebp - 0x988]
cmp byte [esi + 0x369], 0
jne 0x573e3e
test edx, edx
je 0x573e88
cmp edx, 1
jne 0x573e48
cmp cx, ax
jne 0x573e88
movzx eax, cx
dec eax
sub eax, 1
je 0x573e56
sub eax, 0x15
jne 0x573e85
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 0x573f34
cmp edx, 1
je 0x573e98
mov cx, word [ebp - 0x988]
push 2
pop eax
inc edx
mov dword [ebp - 0x9ac], edx
cmp edx, eax
jne 0x573e31
jmp 0x573fac
lea edx, [ebp - 0x908]
lea edi, [ebp - 0x104]
mov cl, byte [edi]
test cl, cl
je 0x573ec9
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 0x573ea4
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.005686e9
lea eax, [ebp - 0x908]
push eax
push str.PORT
lea eax, [esi + 0x5c0]
push 0x5f239c
push eax
call fcn.0057f6d7
mov edi, eax
add esp, 0x24
test edi, edi
je 0x573fa6
push edi
call fcn.0056a70e
push eax
push str.Failure_sending_PORT_command:__s
push ebx
call fcn.0055e94b
push dword [ebp - 0x998]
push esi
call fcn.0055f057
jmp 0x573f97
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.0057f6d7
mov edi, eax
add esp, 0x18
test edi, edi
je 0x573fa6
push edi
call fcn.0056a70e
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.0055e94b
push dword [ebp - 0x998]
push esi
call fcn.0055f057
mov dword [esi + 0x61c], 1
push 0
push esi
call fcn.00571919
add esp, 0x20
mov eax, edi
jmp 0x573ff5
mov edx, dword [ebp - 0x9ac]
push esi
mov dword [esi + 0x61c], edx
call fcn.0057192a
mov eax, dword [ebp - 0x998]
push 0x1c
push esi
mov dword [esi + 0x194], eax
mov byte [esi + 0x362], 1
call fcn.00571919
add esp, 0xc
jmp 0x573fa2
push str.bind___failed__we_ran_out_of_ports_
push ebx
call fcn.0055e94b
push dword [ebp - 0x998]
push esi
call fcn.0055f057
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f3d2
leave
ret