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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x570400]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
mov esi, dword [esp + 0x66c]
push edi
push 0x2f
push 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
add eax, 0x3f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x30], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [esi + 0x55c]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ebp, ebp
je 0x52ed4a
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52eb78
sub ecx, edx
cmp ecx, 1
jbe 0x52ed4a
mov al, byte [ebp]
cmp al, 0x5b
jne 0x52ebb7
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x52ebf5
mov eax, dword [esp + 0x14]
mov edi, ebp
sub edi, eax
mov dword [esp + 0x30], eax
jmp 0x52ebf5
cmp al, 0x3a
je 0x52ebfb
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebp
test eax, eax
je 0x52ec56
mov edi, eax
lea eax, [esp + 0x44]
push eax
push ebp
push 0x17
sub edi, ebp
call fcn.00521cc0
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x14]
xor edx, edx
test ebp, ebp
je 0x52ec6b
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x52ec6d
push 0xa
inc eax
push ebp
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.004f5170
push 0x2d
push dword [esp + 0x28]
movzx ebp, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x52ec52
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.004f5170
add esp, 0x10
movzx edx, ax
jmp 0x52ec6d
mov edx, ebp
jmp 0x52ec6d
mov edi, ebp
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x52ec60
sub edi, ecx
xor edx, edx
xor ebp, ebp
xor ecx, ecx
movzx eax, dx
cmp bp, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp bp, dx
mov dword [esp + 0x1c], eax
movzx eax, bp
cmovbe ecx, eax
movzx ebp, cx
test edi, edi
je 0x52ed39
cmp edi, 0x32
jae 0x52f2a4
push edi
push dword [esp + 0x34]
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0xec], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x264]
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x4c8]
add eax, 0x10
push eax
call fcn.0053b420
add esp, 4
push eax
mov eax, dword [edi + 0x24]
push dword [eax]
call fcn.004182e0
add esp, 0x18
sub eax, 0
je 0x52ed13
sub eax, 1
je 0x52f2a4
sub eax, 1
jne 0x52ed1c
lea edi, [esp + 0x264]
jmp 0x52ed1e
lea edi, [esp + 0xec]
jmp 0x52ed1e
xor edi, edi
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx ebp, ax
mov dword [esp + 0x1c], ebp
test edi, edi
jne 0x52edde
jmp 0x52ed4a
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x52ed9d
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0051c950
push eax
push str.getsockname___failed:__s
push esi
call fcn.004f54f0
add esp, 0x18
jmp 0x52f2a4
cmp word [esp + 0x3c], 0x17
lea edx, [esp + 0x44]
movzx eax, word [esp + 0x3c]
lea ecx, [esp + 0x40]
cmove ecx, edx
lea edx, [esp + 0x264]
push 0x401
push edx
push ecx
push eax
call fcn.00538200
add esp, 0x10
test eax, eax
je 0x52f2a4
lea edi, [esp + 0x264]
mov byte [esp + 0x13], 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push edi
push esi
call fcn.005150c0
add esp, 0x14
cmp eax, 1
jne 0x52ee04
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004fbc10
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52f295
mov ebp, dword [eax]
push eax
push esi
call fcn.00515660
add esp, 8
test ebp, ebp
je 0x52f295
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word [eax + eax]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebp
push esi
call fcn.00511cd0
add esp, 0x14
test eax, eax
je 0x52ee81
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x52ee30
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0051c950
push eax
push str.socket_failure:__s
push esi
call fcn.004f54f0
add esp, 0x18
jmp 0x52f2a4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x52ee98
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x554f80]
jmp 0x52ee9d
mov eax, 0x555200
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.004f5730
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x1c]
movzx edi, ax
ja 0x52f285
mov eax, dword [sym.imp.WS2_32.dll_htons]
push edi
call eax
push dword [esp + 0x20]
movzx eax, ax
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x52efc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x52ef7e
cmp eax, 0x2741
jne 0x52ef7e
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.0051c950
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.004f55c0
add esp, 0x1c
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x52ed70
mov eax, dword [esp + 0x14]
movzx edi, ax
cmp di, word [esp + 0x1c]
mov byte [esp + 0x13], 0
jmp 0x52eecf
cmp eax, 0x2740
je 0x52ef8a
cmp eax, 0xd
jne 0x52ef95
inc edi
cmp di, word [esp + 0x1c]
jmp 0x52eecf
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0051c950
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.004f54f0
add esp, 0x1c
jmp 0x52f2a4
cmp di, word [esp + 0x1c]
ja 0x52f285
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x52ed70
mov eax, dword [esi + 0x18]
test eax, eax
je 0x52f006
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x554f80]
jmp 0x52f00b
mov eax, 0x555200
movzx edi, di
push edi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.004f5730
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x52f05b
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0051c950
push eax
push str.socket_failure:__s
push esi
call fcn.004f54f0
add esp, 0x18
jmp 0x52f2a4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x52f072
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x554f80]
jmp 0x52f077
mov eax, 0x555200
push edi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.004f5730
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.00515070
mov ebp, dword [esp + 0x44]
add esp, 0x1c
cmp byte [ebp + 0x251], 0
jne 0x52f0b4
cmp byte [ebp + 0x24c], 0
je 0x52f0b4
mov byte [ebp + 0x251], 1
lea eax, [esp + 0x24]
push eax
push 1
push ebp
push esi
call fcn.00511a80
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x52f2a4
mov dword [esp + 0x24], 0xffffffff
cmp ebx, 2
je 0x52f13e
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax + eax]
cmp byte [ebp + 0x251], 0
jne 0x52f0fd
test ebx, ebx
je 0x52f134
cmp ebx, 1
jne 0x52f108
cmp cx, 2
jne 0x52f134
movzx eax, cx
sub eax, 2
je 0x52f115
sub eax, 0x15
jne 0x52f134
push dword [esp + 0x3e]
call edi
movzx ebp, ax
test ebx, ebx
je 0x52f205
cmp ebx, 1
je 0x52f174
mov cx, word [esp + 0x3c]
mov ebp, dword [esp + 0x28]
inc ebx
cmp ebx, 2
jne 0x52f0f0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov dword [edi + 0xa0], ebx
mov edi, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov al, byte [edi + 0x49e]
cmp al, 0x1c
je 0x52f278
test edi, edi
je 0x52f25b
movzx eax, al
mov eax, dword [eax*4 + 0x554f80]
jmp 0x52f260
lea edx, [esp + 0x120]
mov esi, 0x2c
lea edi, [esp + 0xbc]
mov cl, byte [edi]
test cl, cl
je 0x52f19e
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x52f187
movzx ecx, bp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.004f3b50
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x134]
mov esi, dword [esp + 0x4c]
push eax
push 0x555011
push 0x554ad0
push edi
push esi
call fcn.00541f90
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x52f142
push ecx
call fcn.0051cac0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.004f54f0
add esp, 0x10
jmp 0x52f2a4
mov edi, dword [esp + 0x2c]
movzx eax, bp
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push esi
call fcn.00541f90
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x52f142
push ecx
call fcn.0051cac0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.004f54f0
add esp, 0x10
jmp 0x52f2a4
mov eax, 0x555200
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.004f5730
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov byte [edi + 0x49e], 0x1c
test ecx, ecx
je 0x52f2e5
jmp 0x52f2a4
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.004f54f0
add esp, 8
jmp 0x52f2a4
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.004f54f0
add esp, 0xc
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x49e]
test al, al
je 0x52f2da
test edi, edi
je 0x52f2c1
movzx eax, al
mov eax, dword [eax*4 + 0x554f80]
jmp 0x52f2c6
mov eax, 0x555200
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.004f5730
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov byte [edi + 0x49e], 0
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x52f302
push eax
push dword [esp + 0x2c]
push esi
call fcn.00511ca0
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x52f304
mov eax, ecx
mov ecx, dword [esp + 0x668]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054507b
add esp, 0x65c
ret