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

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4ad514]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x67c]
push edi
mov edi, dword [esp + 0x684]
push 0x2f
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], eax
add eax, 0x438
mov dword [esp + 0x30], eax
lea eax, [esp + 0xd0]
push 0
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], 0xffffffff
call fcn.004625a0
mov ebp, dword [esi + 0x57c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x447bb5
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4479e6
sub ecx, edx
cmp ecx, 1
jbe 0x447bb5
mov al, byte [ebp]
cmp al, 0x5b
jne 0x447a25
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x20], eax
call fcn.00462700
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x447a5f
mov eax, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov dword [esp + 0x34], eax
jmp 0x447a65
cmp al, 0x3a
je 0x447a65
push 0x3a
push ebp
call fcn.00462700
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebp
test eax, eax
je 0x447abe
mov ebx, eax
lea eax, [esp + 0x54]
push eax
push ebp
push 0x17
sub ebx, ebp
call fcn.0043abb0
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x18]
xor edx, edx
test ebp, ebp
je 0x447ace
push 0x3a
push ebp
call fcn.00462700
add esp, 8
mov dword [esp + 0x18], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x447ad0
push 0xa
inc eax
push ebp
push eax
call fcn.0046c929
push eax
call fcn.00421860
push 0x2d
push dword [esp + 0x2c]
movzx ebp, ax
call fcn.00462700
add esp, 0x18
test eax, eax
je 0x447aba
push 0xa
inc eax
push 0
push eax
call fcn.0046c929
push eax
call fcn.00421860
add esp, 0x10
movzx edx, ax
jmp 0x447ad0
mov edx, ebp
jmp 0x447ad0
mov ebx, ebp
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x447ac3
sub ebx, 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 ebx, ebx
je 0x447ba4
cmp ebx, 0x32
jae 0x447e70
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0x104]
push eax
call fcn.00462970
add esp, 0xc
mov byte [esp + ebx + 0xfc], 0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x274]
push 0x401
push eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [ebx + 0x2c]
push dword [ebx + 0x50c]
add eax, 0x10
push eax
call fcn.00453ec0
add esp, 4
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax]
call fcn.004196d0
add esp, 0x18
sub eax, 0
je 0x447b7a
sub eax, 1
je 0x447e74
sub eax, 1
jne 0x447b87
lea eax, [esp + 0x274]
mov dword [esp + 0x30], eax
jmp 0x447b89
lea eax, [esp + 0xfc]
mov dword [esp + 0x30], eax
jmp 0x447b89
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
movzx ebp, cx
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x447c4d
jmp 0x447bb9
mov ecx, dword [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x18], eax
movzx eax, cx
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x447c08
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040d410
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041e090
add esp, 0x18
jmp 0x447e74
cmp word [esp + 0x4c], 0x17
lea edx, [esp + 0x54]
movzx eax, word [esp + 0x4c]
lea ecx, [esp + 0x50]
cmove ecx, edx
lea edx, [esp + 0x274]
push 0x401
push edx
push ecx
push eax
call fcn.004529c0
add esp, 0x10
test eax, eax
je 0x447e74
lea eax, [esp + 0x274]
mov byte [esp + 0x17], 0
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push eax
push esi
call fcn.0042b270
add esp, 0x14
cmp eax, 1
jne 0x447c73
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004151e0
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x448162
mov ebp, dword [ebp]
test ebp, ebp
je 0x448162
nop word [eax + eax]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebx + 0x516]
push eax
push 0
push ebp
push esi
call fcn.00426240
add esp, 0x14
test eax, eax
je 0x447ce1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x447c90
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.0040d410
push eax
push str.socket_failure:__s
push esi
call fcn.0041e090
add esp, 0x18
jmp 0x447e74
mov eax, dword [esi + 0x18]
test eax, eax
je 0x447cf8
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x494a90]
jmp 0x447cfd
mov eax, 0x494cf0
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.0041e2d0
push dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push dword [ebp + 0x18]
push eax
call fcn.00462970
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp ax, word [esp + 0x1c]
movzx ebx, ax
ja 0x44814f
mov eax, dword [sym.imp.WS2_32.dll_htons]
push ebx
call eax
push dword [esp + 0x20]
movzx eax, ax
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x447e1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x17], 0
je 0x447dde
cmp eax, 0x2741
jne 0x447dde
push 0x100
lea eax, [esp + 0x178]
push eax
push 0x2741
call fcn.0040d410
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0041e160
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x447bdb
mov eax, dword [esp + 0x18]
movzx ebx, ax
cmp bx, word [esp + 0x1c]
mov byte [esp + 0x17], 0
jmp 0x447d2f
cmp eax, 0x2740
je 0x447dea
cmp eax, 0xd
jne 0x447df5
inc ebx
cmp bx, word [esp + 0x1c]
jmp 0x447d2f
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.0040d410
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0041e090
add esp, 0x1c
jmp 0x447e70
cmp bx, word [esp + 0x1c]
ja 0x44814f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x447ebe
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040d410
push eax
push str.getsockname___failed:__s
push esi
call fcn.0041e090
add esp, 0x18
mov ebx, dword [esp + 0x10]
mov ebp, 0x1e
cmp dword [esp + 0x28], 0
je 0x447e8e
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0042b7a0
add esp, 8
test ebp, ebp
je 0x44819c
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
test al, al
je 0x448193
test edi, edi
je 0x44817a
movzx eax, al
mov eax, dword [eax*4 + 0x494a90]
jmp 0x44817f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x447ed5
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x494a90]
jmp 0x447eda
mov eax, 0x494cf0
movzx ebx, bx
push ebx
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.0041e2d0
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x447f21
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040d410
push eax
push str.socket_failure:__s
jmp 0x447e67
mov eax, dword [esi + 0x18]
test eax, eax
je 0x447f38
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x494a90]
jmp 0x447f3d
mov eax, 0x494cf0
push ebx
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.0041e2d0
push 0x2f
lea eax, [esp + 0xe0]
push eax
push ebp
call fcn.0042b220
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp byte [eax + 0x2a0], 0
jne 0x447f7a
cmp byte [eax + 0x29b], 0
je 0x447f7a
mov byte [eax + 0x2a0], 1
cmp edi, 2
je 0x447fda
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x4c]
nop word [eax + eax]
cmp byte [eax + 0x2a0], 0
jne 0x447f9d
test edi, edi
je 0x447fd4
cmp edi, 1
jne 0x447fa8
cmp cx, 2
jne 0x447fd4
movzx eax, cx
sub eax, 2
je 0x447fb5
sub eax, 0x15
jne 0x447fd0
push dword [esp + 0x4e]
call ebp
movzx ebx, ax
test edi, edi
je 0x4480aa
cmp edi, 1
je 0x44800c
mov cx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x447f90
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
cmp al, 0x1c
je 0x44811c
test edi, edi
je 0x448103
movzx eax, al
mov eax, dword [eax*4 + 0x494a90]
jmp 0x448108
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x130]
test cl, cl
je 0x448047
lea ebp, [esp + 0xcc]
mov eax, edx
sub ebp, eax
mov esi, 0x2c
nop
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
mov cl, byte [edx + ebp]
test cl, cl
jne 0x448030
mov esi, dword [esp + 0x38]
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.004232c0
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x144]
push eax
push 0x494b21
push 0x494350
push ebx
push esi
call fcn.0045b7a0
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x447fde
push ebp
call fcn.0040d580
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0041e090
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x447e79
movzx eax, bx
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xd0]
push eax
xor eax, eax
cmp word [esp + 0x54], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push esi
call fcn.0045b7a0
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x447fde
push ebp
call fcn.0040d580
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0041e090
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x447e79
mov eax, 0x494cf0
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.0041e2d0
add esp, 0x10
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 1
push ebx
push esi
mov byte [edi + 0x4e6], 0x1c
call fcn.00425e80
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x447e79
mov dword [esp + 0x24], 0xffffffff
jmp 0x447e79
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0041e090
add esp, 8
jmp 0x447e70
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0041e090
add esp, 0xc
jmp 0x447e74
mov eax, 0x494cf0
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.0041e2d0
add esp, 0x10
mov byte [edi + 0x4e6], 0
jmp 0x448200
cmp byte [ebx + 0x2a1], 0
je 0x4481cb
cmp byte [esi + 0x6a2], 0
je 0x4481cb
push 1
push ebx
call fcn.0041db20
add esp, 8
test al, al
jne 0x4481cb
push 1
push ebx
push esi
call fcn.0041a9b0
add esp, 0xc
mov ebp, eax
mov eax, dword [esi + 0x18]
push 0xa
push esi
mov byte [eax + 0x29c], 0
lea eax, [esp + 0x44]
push eax
call fcn.004322c0
mov eax, dword [esi + 0x4d4]
mov ecx, 0xea60
test eax, eax
push 0xd
cmovne ecx, eax
push 0
push ecx
push esi
call fcn.00411090
add esp, 0x1c
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x448214
push eax
push ebx
push esi
call fcn.00426220
add esp, 0xc
mov ecx, dword [esp + 0x678]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460ae4
add esp, 0x66c
ret